63054b
63054b
%global base_name    net
63054b
%global short_name   commons-%{base_name}
63054b
63054b
Name:           apache-%{short_name}
63054b
Version:        3.2
6e58ed
Release:        8%{?dist}
63054b
Summary:        Internet protocol suite Java library
63054b
License:        ASL 2.0
63054b
Group:          Development/Libraries
63054b
URL:            http://commons.apache.org/%{base_name}/
63054b
Source0:        http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
63054b
BuildArch:      noarch
63054b
63054b
BuildRequires:  maven-local
63054b
BuildRequires:  maven-plugin-build-helper
63054b
BuildRequires:  apache-commons-parent >= 26-7
63054b
# Test dependency
63054b
BuildRequires:  junit
63054b
63054b
Provides:       jakarta-%{short_name} = 0:%{version}-%{release}
63054b
Obsoletes:      jakarta-%{short_name} < 0:2.0-3
63054b
63054b
63054b
%description
63054b
This is an Internet protocol suite Java library originally developed by
63054b
ORO, Inc.  This version supports Finger, Whois, TFTP, Telnet, POP3, FTP,
63054b
NNTP, SMTP, and some miscellaneous protocols like Time and Echo as well
63054b
as BSD R command support. The purpose of the library is to provide
63054b
fundamental protocol access, not higher-level abstractions.
63054b
63054b
%package javadoc
63054b
Summary:    API documentation for %{name}
63054b
Group:      Documentation
63054b
Requires:   jpackage-utils
63054b
63054b
Provides:   jakarta-%{short_name}-javadoc = 0:%{version}-%{release}
63054b
Obsoletes:  jakarta-%{short_name}-javadoc < 0:2.0-3
63054b
63054b
%description javadoc
63054b
%{summary}.
63054b
63054b
%prep
63054b
%setup -q -n %{short_name}-%{version}-src
63054b
sed -i 's/\r//' NOTICE.txt LICENSE.txt README RELEASE-NOTES.txt
63054b
63054b
# This test fails with "Connection timed out"
63054b
rm src/test/java/org/apache/commons/net/time/TimeTCPClientTest.java
63054b
63054b
%mvn_file  : %{short_name} %{name}
63054b
%mvn_alias : org.apache.commons:%{short_name}
63054b
63054b
%build
63054b
%mvn_build
63054b
63054b
%install
63054b
%mvn_install
63054b
63054b
63054b
%files -f .mfiles
63054b
%doc LICENSE.txt NOTICE.txt README RELEASE-NOTES.txt
63054b
63054b
%files javadoc -f .mfiles-javadoc
63054b
%doc LICENSE.txt NOTICE.txt
63054b
63054b
%changelog
6e58ed
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.2-8
6e58ed
- Mass rebuild 2013-12-27
6e58ed
63054b
* Fri Sep 20 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2-7
63054b
- Add BuildRequires on apache-commons-parent >= 26-7
63054b
63054b
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2-6
63054b
- Rebuild to regenerate API documentation
63054b
- Resolves: CVE-2013-1571
63054b
63054b
* Wed Jun 05 2013 Michal Srb <msrb@redhat.com> - 3.2-5
63054b
- Enable tests
63054b
- Install README, RELEASE-NOTES.txt files
63054b
- Fix BR
63054b
63054b
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2-4
63054b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
63054b
63054b
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 3.2-3
63054b
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
63054b
- Replace maven BuildRequires with maven-local
63054b
63054b
* Wed Jan 16 2013 Michal Srb <msrb@redhat.com> - 3.2-2
63054b
- Build with xmvn
63054b
63054b
* Mon Dec  3 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2-1
63054b
- Update to upstream version 3.2
63054b
63054b
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-2
63054b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
63054b
63054b
* Tue Jun 19 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.1-1
63054b
- Update to upstream 3.1
63054b
- Remove RPM bug workaround
63054b
- Remove BR on maven-changes-plugin
63054b
63054b
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-4
63054b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
63054b
63054b
* Thu Nov 24 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.2-3
63054b
- Use maven 3 to build
63054b
- Packaging fixes according to latest guidelines
63054b
63054b
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-2
63054b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
63054b
63054b
* Fri Dec 10 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.2-1
63054b
- Replace maven plugins with apache-commons-parent for BR
63054b
- Versionless jars and javadocs
63054b
- Rebase to latest upstream version
63054b
63054b
* Thu Jul  8 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.0-6
63054b
- Add license to javadoc subpackage
63054b
63054b
* Thu May 20 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.0-5
63054b
- Fix maven depmap JPP name to short_name
63054b
63054b
* Wed May 19 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.0-4
63054b
- Ignore test failure
63054b
63054b
* Wed May 12 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.0-3
63054b
- Rename jakarta-commons-net to apache-commons-net and drop EPOCH
63054b
- Build with maven
63054b
- Clean up whole spec
63054b
63054b
* Thu Aug 13 2009 Alexander Kurtakov <akurtako@redhat.com> 0:2.0-2
63054b
- Set maven.repo.local.
63054b
63054b
* Thu Aug 13 2009 Alexander Kurtakov <akurtako@redhat.com> 0:2.0-1
63054b
- Update to upstream 2.0.
63054b