Install with XMvn

This commit is contained in:
Michael Simacek 2017-02-23 14:24:26 +01:00
parent e54e99c586
commit 5013f04727

View File

@ -4,7 +4,7 @@
Name: xerces-j2 Name: xerces-j2
Version: 2.11.0 Version: 2.11.0
Release: 25%{?dist} Release: 26%{?dist}
Summary: Java XML parser Summary: Java XML parser
Group: Development/Libraries Group: Development/Libraries
License: ASL 2.0 License: ASL 2.0
@ -37,17 +37,15 @@ Patch2: xerces-j2-CVE-2013-4002.patch
BuildArch: noarch BuildArch: noarch
BuildRequires: java-devel >= 1:1.6.0 BuildRequires: javapackages-local
BuildRequires: jpackage-utils BuildRequires: ant
BuildRequires: apache-parent
BuildRequires: xalan-j2 >= 2.7.1 BuildRequires: xalan-j2 >= 2.7.1
BuildRequires: xml-commons-apis >= 1.4.01 BuildRequires: xml-commons-apis >= 1.4.01
BuildRequires: xml-commons-resolver >= 1.2 BuildRequires: xml-commons-resolver >= 1.2
BuildRequires: ant
BuildRequires: jaxp_parser_impl BuildRequires: jaxp_parser_impl
BuildRequires: dejavu-sans-fonts BuildRequires: dejavu-sans-fonts
BuildRequires: xerces-j2 BuildRequires: xerces-j2
Requires: java-headless
Requires: jpackage-utils
Requires: xalan-j2 >= 2.7.1 Requires: xalan-j2 >= 2.7.1
Requires: xml-commons-apis >= 1.4.01 Requires: xml-commons-apis >= 1.4.01
Requires: xml-commons-resolver >= 1.2 Requires: xml-commons-resolver >= 1.2
@ -131,6 +129,10 @@ find -name '*.jar' -exec rm -f '{}' \;
sed -i 's/\r//' LICENSE README NOTICE sed -i 's/\r//' LICENSE README NOTICE
# legacy aliases for compatability
%mvn_alias : xerces:xerces xerces:xmlParserAPIs apache:xerces-j2
%mvn_file : %{name}
%build %build
pushd tools pushd tools
@ -154,9 +156,10 @@ ant -Djavac.source=1.5 -Djavac.target=1.5 \
-Dbuild.compiler=modern \ -Dbuild.compiler=modern \
clean jars javadocs clean jars javadocs
%mvn_artifact %{SOURCE7} build/xercesImpl.jar
%install %install
# jars %mvn_install
install -pD -T build/xercesImpl.jar %{buildroot}%{_javadir}/%{name}.jar
# javadoc # javadoc
mkdir -p %{buildroot}%{_javadocdir}/%{name} mkdir -p %{buildroot}%{_javadocdir}/%{name}
@ -183,12 +186,6 @@ install -p -m 644 %{SOURCE12} %{buildroot}%{_mandir}/man1
install -pD -T build/xercesSamples.jar %{buildroot}%{_datadir}/%{name}/%{name}-samples.jar install -pD -T build/xercesSamples.jar %{buildroot}%{_datadir}/%{name}/%{name}-samples.jar
cp -pr data %{buildroot}%{_datadir}/%{name} cp -pr data %{buildroot}%{_datadir}/%{name}
# Pom
install -pD -T -m 644 %{SOURCE7} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
# Depmap with legacy depmaps for compatability
%add_maven_depmap JPP-%{name}.pom %{name}.jar -a "xerces:xerces,xerces:xmlParserAPIs,apache:xerces-j2"
# jaxp_parser_impl ghost symlink # jaxp_parser_impl ghost symlink
ln -s %{_sysconfdir}/alternatives \ ln -s %{_sysconfdir}/alternatives \
%{buildroot}%{_javadir}/jaxp_parser_impl.jar %{buildroot}%{_javadir}/jaxp_parser_impl.jar
@ -205,7 +202,6 @@ update-alternatives --install %{_javadir}/jaxp_parser_impl.jar \
%files -f .mfiles %files -f .mfiles
%doc LICENSE NOTICE README %doc LICENSE NOTICE README
%{_javadir}/%{name}*
%{_bindir}/* %{_bindir}/*
%{_mandir}/*/* %{_mandir}/*/*
%ghost %{_javadir}/jaxp_parser_impl.jar %ghost %{_javadir}/jaxp_parser_impl.jar
@ -217,6 +213,9 @@ update-alternatives --install %{_javadir}/jaxp_parser_impl.jar \
%{_datadir}/%{name} %{_datadir}/%{name}
%changelog %changelog
* Thu Feb 23 2017 Michael Simacek <msimacek@redhat.com> - 2.11.0-26
- Install with XMvn
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.11.0-25 * Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.11.0-25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild