Install with XMvn
This commit is contained in:
parent
27af4d9645
commit
3f26c145dd
@ -32,20 +32,20 @@
|
|||||||
|
|
||||||
Name: jakarta-oro
|
Name: jakarta-oro
|
||||||
Version: 2.0.8
|
Version: 2.0.8
|
||||||
Release: 20%{?dist}
|
Release: 21%{?dist}
|
||||||
Epoch: 0
|
Epoch: 0
|
||||||
Summary: Full regular expressions API
|
Summary: Full regular expressions API
|
||||||
License: ASL 1.1
|
License: ASL 1.1
|
||||||
Group: Development/Libraries
|
|
||||||
Source0: http://archive.apache.org/dist/jakarta/oro/%{name}-%{version}.tar.gz
|
Source0: http://archive.apache.org/dist/jakarta/oro/%{name}-%{version}.tar.gz
|
||||||
Source1: MANIFEST.MF
|
Source1: MANIFEST.MF
|
||||||
Source2: http://repo1.maven.org/maven2/%{base_name}/%{base_name}/%{version}/%{base_name}-%{version}.pom
|
Source2: http://repo1.maven.org/maven2/%{base_name}/%{base_name}/%{version}/%{base_name}-%{version}.pom
|
||||||
Patch1: %{name}-build-xml.patch
|
Patch1: %{name}-build-xml.patch
|
||||||
URL: http://jakarta.apache.org/oro
|
URL: http://jakarta.apache.org/oro
|
||||||
|
|
||||||
BuildRequires: javapackages-local
|
BuildRequires: javapackages-local
|
||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
Requires: jpackage-utils
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The Jakarta-ORO Java classes are a set of text-processing Java classes
|
The Jakarta-ORO Java classes are a set of text-processing Java classes
|
||||||
@ -56,9 +56,7 @@ successor to the OROMatcher, AwkTools, PerlTools, and TextTools
|
|||||||
libraries from ORO, Inc. (www.oroinc.com).
|
libraries from ORO, Inc. (www.oroinc.com).
|
||||||
|
|
||||||
%package javadoc
|
%package javadoc
|
||||||
Group: Documentation
|
|
||||||
Summary: Javadoc for %{name}
|
Summary: Javadoc for %{name}
|
||||||
Requires: jpackage-utils
|
|
||||||
|
|
||||||
%description javadoc
|
%description javadoc
|
||||||
Javadoc for %{name}.
|
Javadoc for %{name}.
|
||||||
@ -78,30 +76,22 @@ cp %{SOURCE1} .
|
|||||||
ant -Dfinal.name=%{base_name} jar javadocs
|
ant -Dfinal.name=%{base_name} jar javadocs
|
||||||
|
|
||||||
%install
|
%install
|
||||||
#jars
|
%mvn_file : %{name} %{base_name}
|
||||||
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
|
%mvn_artifact %{SOURCE2} %{base_name}.jar
|
||||||
install -m 644 %{base_name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
|
|
||||||
(cd $RPM_BUILD_ROOT%{_javadir} && ln -sf %{name}.jar %{base_name}.jar)
|
|
||||||
#javadoc
|
|
||||||
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
||||||
cp -pr docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
||||||
rm -rf docs/api
|
|
||||||
|
|
||||||
# POM and depmap
|
%mvn_install -J docs/api
|
||||||
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
|
|
||||||
install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
|
|
||||||
%add_maven_depmap
|
|
||||||
|
|
||||||
%files -f .mfiles
|
%files -f .mfiles
|
||||||
%doc COMPILE ISSUES README TODO CHANGES CONTRIBUTORS LICENSE STYLE
|
%doc COMPILE ISSUES README TODO CHANGES CONTRIBUTORS STYLE
|
||||||
# symlink, not in .mfiles
|
%license LICENSE
|
||||||
%{_javadir}/%{base_name}.jar
|
|
||||||
|
|
||||||
%files javadoc
|
%files javadoc -f .mfiles-javadoc
|
||||||
%doc LICENSE
|
%license LICENSE
|
||||||
%{_javadocdir}/%{name}
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 22 2017 Michael Simacek <msimacek@redhat.com> - 0:2.0.8-21
|
||||||
|
- Install with XMvn
|
||||||
|
|
||||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.0.8-20
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.0.8-20
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user