2010-05-19 09:22:19 +00:00
|
|
|
|
|
|
|
%global base_name net
|
|
|
|
%global short_name commons-%{base_name}
|
|
|
|
|
|
|
|
Name: apache-%{short_name}
|
2010-12-10 15:33:04 +00:00
|
|
|
Version: 2.2
|
2011-11-24 15:20:42 +00:00
|
|
|
Release: 3%{?dist}
|
2010-05-19 09:22:19 +00:00
|
|
|
Summary: Internet protocol suite Java library
|
|
|
|
License: ASL 2.0
|
|
|
|
Group: Development/Libraries
|
|
|
|
URL: http://commons.apache.org/%{base_name}/
|
|
|
|
Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: jpackage-utils >= 0:1.7.2
|
|
|
|
BuildRequires: java-devel >= 1:1.6.0
|
|
|
|
BuildRequires: maven-doxia-sitetools
|
2010-12-10 15:33:04 +00:00
|
|
|
BuildRequires: maven-changes-plugin
|
2010-05-19 09:22:19 +00:00
|
|
|
BuildRequires: maven-surefire-provider-junit
|
2010-12-10 15:33:04 +00:00
|
|
|
BuildRequires: maven-surefire-provider-junit4
|
|
|
|
BuildRequires: maven-plugin-build-helper
|
|
|
|
BuildRequires: apache-commons-parent
|
2010-05-19 09:22:19 +00:00
|
|
|
|
|
|
|
Requires: java >= 1:1.6.0
|
|
|
|
Requires: jpackage-utils >= 0:1.7.2
|
|
|
|
|
|
|
|
Provides: jakarta-%{short_name} = 0:%{version}-%{release}
|
|
|
|
Obsoletes: jakarta-%{short_name} < 0:2.0-3
|
|
|
|
|
|
|
|
%description
|
|
|
|
This is an Internet protocol suite Java library originally developed by
|
|
|
|
ORO, Inc. This version supports Finger, Whois, TFTP, Telnet, POP3, FTP,
|
|
|
|
NNTP, SMTP, and some miscellaneous protocols like Time and Echo as well
|
|
|
|
as BSD R command support. The purpose of the library is to provide
|
|
|
|
fundamental protocol access, not higher-level abstractions.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: API documentation for %{name}
|
|
|
|
Group: Documentation
|
|
|
|
Requires: jpackage-utils
|
|
|
|
|
|
|
|
Obsoletes: jakarta-%{short_name}-javadoc < 0:2.0-3
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{short_name}-%{version}-src
|
|
|
|
sed -i 's/\r//' NOTICE.txt LICENSE.txt
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
|
|
|
|
mkdir -p $MAVEN_REPO_LOCAL
|
2010-05-19 09:57:21 +00:00
|
|
|
# test.failure.ignore added because package would not build on koji
|
|
|
|
# with TimeTCPClientTest failing
|
2011-11-24 15:20:42 +00:00
|
|
|
mvn-rpmbuild -Dmaven.test.failure.ignore=true \
|
|
|
|
install javadoc:aggregate
|
2010-05-19 09:22:19 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
# jars
|
|
|
|
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
|
2010-12-10 15:33:04 +00:00
|
|
|
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
|
2010-05-19 09:22:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
# pom
|
|
|
|
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
|
2010-12-10 15:33:04 +00:00
|
|
|
install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
|
2011-11-24 15:20:42 +00:00
|
|
|
%add_maven_depmap JPP-%{name}.pom %{name}.jar -a "org.apache.commons:%{short_name}"
|
2010-05-19 09:22:19 +00:00
|
|
|
|
|
|
|
# javadoc
|
2010-12-10 15:33:04 +00:00
|
|
|
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
|
|
cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
2010-05-19 09:22:19 +00:00
|
|
|
|
|
|
|
|
2010-12-10 15:33:04 +00:00
|
|
|
%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} || :
|
|
|
|
|
2010-05-19 09:22:19 +00:00
|
|
|
%files
|
|
|
|
%doc LICENSE.txt NOTICE.txt
|
|
|
|
%{_javadir}/*
|
2010-12-10 15:33:04 +00:00
|
|
|
%{_mavenpomdir}/JPP-%{name}.pom
|
2011-11-24 15:20:42 +00:00
|
|
|
%{_mavendepmapfragdir}/%{name}
|
2010-05-19 09:22:19 +00:00
|
|
|
|
|
|
|
%files javadoc
|
2010-07-08 14:02:55 +00:00
|
|
|
%doc %{_javadocdir}/%{name}
|
|
|
|
%doc LICENSE.txt NOTICE.txt
|
2010-05-19 09:22:19 +00:00
|
|
|
|
|
|
|
%changelog
|
2011-11-24 15:20:42 +00:00
|
|
|
* Thu Nov 24 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.2-3
|
|
|
|
- Use maven 3 to build
|
|
|
|
- Packaging fixes according to latest guidelines
|
|
|
|
|
2011-02-09 18:08:21 +00:00
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-12-10 15:33:04 +00:00
|
|
|
* Fri Dec 10 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.2-1
|
|
|
|
- Replace maven plugins with apache-commons-parent for BR
|
|
|
|
- Versionless jars and javadocs
|
|
|
|
- Rebase to latest upstream version
|
|
|
|
|
2010-07-08 14:02:55 +00:00
|
|
|
* Thu Jul 8 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.0-6
|
|
|
|
- Add license to javadoc subpackage
|
|
|
|
|
2010-05-20 14:21:01 +00:00
|
|
|
* Thu May 20 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.0-5
|
|
|
|
- Fix maven depmap JPP name to short_name
|
|
|
|
|
2010-05-19 09:57:21 +00:00
|
|
|
* Wed May 19 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.0-4
|
|
|
|
- Ignore test failure
|
|
|
|
|
2010-05-19 09:22:19 +00:00
|
|
|
* Wed May 12 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.0-3
|
|
|
|
- Rename jakarta-commons-net to apache-commons-net and drop EPOCH
|
|
|
|
- Build with maven
|
|
|
|
- Clean up whole spec
|
|
|
|
|
|
|
|
* Thu Aug 13 2009 Alexander Kurtakov <akurtako@redhat.com> 0:2.0-2
|
|
|
|
- Set maven.repo.local.
|
|
|
|
|
|
|
|
* Thu Aug 13 2009 Alexander Kurtakov <akurtako@redhat.com> 0:2.0-1
|
|
|
|
- Update to upstream 2.0.
|
|
|
|
|