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