- Install a maven pom and depmap.

This commit is contained in:
mbooth 2010-09-19 19:38:02 +01:00
parent 7d0f74ae3f
commit b3a208ae38
3 changed files with 62 additions and 4 deletions

View File

@ -3,10 +3,10 @@ Bundle-RequiredExecutionEnvironment: J2SE-1.2
Main-Class: org.apache.xml.resolver.apps.resolver Main-Class: org.apache.xml.resolver.apps.resolver
Bundle-SymbolicName: org.apache.xml.resolver Bundle-SymbolicName: org.apache.xml.resolver
Bundle-ManifestVersion: 2 Bundle-ManifestVersion: 2
Bundle-Name: %Bundle-Name.0 Bundle-Name: XML Commons Resolver
Bundle-Localization: plugin Bundle-Localization: plugin
Bundle-Version: 1.2.0.v200806030312 Bundle-Version: 1.2.0.v200806030312
Bundle-Vendor: %Bundle-Vendor.0 Bundle-Vendor: Apache Software Foundation
Require-Bundle: system.bundle Require-Bundle: system.bundle
Export-Package: org.apache.env,org.apache.xml.resolver,org.apache.xml. Export-Package: org.apache.env,org.apache.xml.resolver,org.apache.xml.
resolver.apps,org.apache.xml.resolver.etc,org.apache.xml.resolver.hel resolver.apps,org.apache.xml.resolver.etc,org.apache.xml.resolver.hel

View File

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?><project>
<parent>
<artifactId>apache</artifactId>
<groupId>org.apache</groupId>
<version>3</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>xml-resolver</groupId>
<artifactId>xml-resolver</artifactId>
<name>XML Commons Resolver Component</name>
<version>1.2</version>
<description>xml-commons provides an Apache-hosted set of DOM, SAX, and
JAXP interfaces for use in other xml-based projects. Our hope is that we
can standardize on both a common version and packaging scheme for these
critical XML standards interfaces to make the lives of both our developers
and users easier.</description>
<url>http://xml.apache.org/commons/components/resolver/</url>
<issueManagement>
<system>bugzilla</system>
<url>http://issues.apache.org/bugzilla/</url>
</issueManagement>
<mailingLists>
<mailingList>
<name>XML Commons Developer's List</name>
<subscribe>commons-dev-subscribe@xml.apache.org</subscribe>
<unsubscribe>commons-dev-unsubscribe@xml.apache.org</unsubscribe>
<post>commons-dev@xml.apache.org</post>
<archive>http://mail-archives.apache.org/mod_mbox/xml-commons-dev/</archive>
</mailingList>
</mailingLists>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/xml/commons/tags/xml-commons-resolver-1_2/</connection>
<url>http://svn.apache.org/viewvc/xml/commons/tags/xml-commons-resolver-1_2/</url>
</scm>
<distributionManagement>
<status>deployed</status>
</distributionManagement>
</project>

View File

@ -1,6 +1,6 @@
Name: xml-commons-resolver Name: xml-commons-resolver
Version: 1.2 Version: 1.2
Release: 2%{?dist} Release: 3%{?dist}
Epoch: 0 Epoch: 0
Summary: Resolver subproject of xml-commons Summary: Resolver subproject of xml-commons
License: ASL 1.1 License: ASL 1.1
@ -10,11 +10,15 @@ Source1: xml-commons-resolver-resolver.sh
Source2: xml-commons-resolver-xread.sh Source2: xml-commons-resolver-xread.sh
Source3: xml-commons-resolver-xparse.sh Source3: xml-commons-resolver-xparse.sh
Source4: %{name}-MANIFEST.MF Source4: %{name}-MANIFEST.MF
Source5: %{name}-pom.xml
Requires: xml-commons-apis Requires: xml-commons-apis
Requires: jpackage-utils
Requires(post): jpackage-utils
Requires(postun): jpackage-utils
BuildRequires: java-devel >= 1:1.6.0 BuildRequires: java-devel >= 1:1.6.0
BuildRequires: ant BuildRequires: ant
BuildRequires: jpackage-utils >= 0:1.5 BuildRequires: jpackage-utils
BuildRequires: dos2unix BuildRequires: dos2unix
#BuildRequires: %{_bindir}/xsltproc #BuildRequires: %{_bindir}/xsltproc
#BuildRequires: docbook-style-xsl #BuildRequires: docbook-style-xsl
@ -28,6 +32,7 @@ Resolver subproject of xml-commons.
%package javadoc %package javadoc
Summary: Javadoc for %{name} Summary: Javadoc for %{name}
Group: Documentation Group: Documentation
Requires: jpackage-utils
# for /bin/rm and /bin/ln # for /bin/rm and /bin/ln
Requires(post): coreutils Requires(post): coreutils
Requires(postun): coreutils Requires(postun): coreutils
@ -84,9 +89,19 @@ cp %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/xml-resolver
cp %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/xml-xread cp %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/xml-xread
cp %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/xml-xparse cp %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/xml-xparse
# Pom
install -pD -T -m 644 %{SOURCE5} %{buildroot}%{_mavenpomdir}/JPP-xml-resolver.pom
%add_to_maven_depmap xml-resolver xml-resolver %{version} JPP xml-resolver
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%post
%update_maven_depmap
%postun
%update_maven_depmap
%post javadoc %post javadoc
rm -f %{_javadocdir}/%{name} rm -f %{_javadocdir}/%{name}
ln -s %{name}-%{version} %{_javadocdir}/%{name} ln -s %{name}-%{version} %{_javadocdir}/%{name}
@ -99,6 +114,8 @@ fi
%files %files
%defattr(0644,root,root,0755) %defattr(0644,root,root,0755)
%doc KEYS LICENSE.resolver.txt %doc KEYS LICENSE.resolver.txt
%{_mavendepmapfragdir}/*
%{_mavenpomdir}/*
%{_javadir}/* %{_javadir}/*
%attr(0755,root,root) %{_bindir}/* %attr(0755,root,root) %{_bindir}/*
@ -107,6 +124,9 @@ fi
%{_javadocdir}/%{name}-%{version} %{_javadocdir}/%{name}-%{version}
%changelog %changelog
* Sun Sep 19 2010 Mat Booth <fedora@matbooth.co.uk> 0:1.2-3
- Install a maven pom and depmap.
* Wed Apr 7 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.2-2 * Wed Apr 7 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.2-2
- No need to require jaxp_parser_impl now that we require java 1.5 or newer. - No need to require jaxp_parser_impl now that we require java 1.5 or newer.