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