Remove RPM bug workaround
This commit is contained in:
parent
43cf3192ac
commit
c8e5c34cd7
@ -11,8 +11,10 @@ Group: Development/Libraries
|
|||||||
URL: http://commons.apache.org/%{base_name}/
|
URL: http://commons.apache.org/%{base_name}/
|
||||||
Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
|
Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: jpackage-utils >= 0:1.7.2
|
|
||||||
BuildRequires: java-devel >= 1:1.6.0
|
BuildRequires: java-devel
|
||||||
|
BuildRequires: jpackage-utils
|
||||||
|
BuildRequires: maven
|
||||||
BuildRequires: maven-doxia-sitetools
|
BuildRequires: maven-doxia-sitetools
|
||||||
BuildRequires: maven-changes-plugin
|
BuildRequires: maven-changes-plugin
|
||||||
BuildRequires: maven-surefire-provider-junit
|
BuildRequires: maven-surefire-provider-junit
|
||||||
@ -20,12 +22,13 @@ BuildRequires: maven-surefire-provider-junit4
|
|||||||
BuildRequires: maven-plugin-build-helper
|
BuildRequires: maven-plugin-build-helper
|
||||||
BuildRequires: apache-commons-parent
|
BuildRequires: apache-commons-parent
|
||||||
|
|
||||||
Requires: java >= 1:1.6.0
|
Requires: java
|
||||||
Requires: jpackage-utils >= 0:1.7.2
|
Requires: jpackage-utils
|
||||||
|
|
||||||
Provides: jakarta-%{short_name} = 0:%{version}-%{release}
|
Provides: jakarta-%{short_name} = 0:%{version}-%{release}
|
||||||
Obsoletes: jakarta-%{short_name} < 0:2.0-3
|
Obsoletes: jakarta-%{short_name} < 0:2.0-3
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This is an Internet protocol suite Java library originally developed by
|
This is an Internet protocol suite Java library originally developed by
|
||||||
ORO, Inc. This version supports Finger, Whois, TFTP, Telnet, POP3, FTP,
|
ORO, Inc. This version supports Finger, Whois, TFTP, Telnet, POP3, FTP,
|
||||||
@ -62,7 +65,6 @@ install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
|
|||||||
install -p -m 644 target/%{short_name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
|
install -p -m 644 target/%{short_name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
|
||||||
ln -s %{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{short_name}.jar
|
ln -s %{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{short_name}.jar
|
||||||
|
|
||||||
|
|
||||||
# pom
|
# pom
|
||||||
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
|
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
|
||||||
install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
|
install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
|
||||||
@ -73,11 +75,6 @@ install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|||||||
cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
||||||
|
|
||||||
|
|
||||||
%pre javadoc
|
|
||||||
# workaround for rpm bug, can be removed in F-17
|
|
||||||
[ $1 -gt 1 ] && [ -L %{_javadocdir}/%{name} ] && \
|
|
||||||
rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || :
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc LICENSE.txt NOTICE.txt
|
%doc LICENSE.txt NOTICE.txt
|
||||||
%{_javadir}/*
|
%{_javadir}/*
|
||||||
@ -91,6 +88,7 @@ rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || :
|
|||||||
%changelog
|
%changelog
|
||||||
* Tue Jun 19 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.1-1
|
* Tue Jun 19 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.1-1
|
||||||
- Update to upstream 3.1
|
- Update to upstream 3.1
|
||||||
|
- Remove RPM bug workaround
|
||||||
|
|
||||||
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-4
|
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-4
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||||
|
Loading…
Reference in New Issue
Block a user