5d7f8f
5d7f8f
%global base_name    net
5d7f8f
%global short_name   commons-%{base_name}
5d7f8f
5d7f8f
Name:           apache-%{short_name}
5d7f8f
Version:        3.6
5d7f8f
Release:        3%{?dist}
5d7f8f
Summary:        Internet protocol suite Java library
5d7f8f
License:        ASL 2.0
5d7f8f
URL:            http://commons.apache.org/%{base_name}/
5d7f8f
Source0:        http://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
5d7f8f
BuildArch:      noarch
5d7f8f
5d7f8f
BuildRequires:  maven-local
5d7f8f
BuildRequires:  mvn(junit:junit)
5d7f8f
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
5d7f8f
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
5d7f8f
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
5d7f8f
BuildRequires:  mvn(org.codehaus.mojo:exec-maven-plugin)
5d7f8f
5d7f8f
5d7f8f
%description
5d7f8f
This is an Internet protocol suite Java library originally developed by
5d7f8f
ORO, Inc.  This version supports Finger, Whois, TFTP, Telnet, POP3, FTP,
5d7f8f
NNTP, SMTP, and some miscellaneous protocols like Time and Echo as well
5d7f8f
as BSD R command support. The purpose of the library is to provide
5d7f8f
fundamental protocol access, not higher-level abstractions.
5d7f8f
5d7f8f
%package javadoc
5d7f8f
Summary:    API documentation for %{name}
5d7f8f
5d7f8f
%description javadoc
5d7f8f
%{summary}.
5d7f8f
5d7f8f
%prep
5d7f8f
%setup -q -n %{short_name}-%{version}-src
5d7f8f
5d7f8f
# This test fails with "Connection timed out"
5d7f8f
rm src/test/java/org/apache/commons/net/time/TimeTCPClientTest.java
5d7f8f
# Fails in Koji with "Address already in use"
5d7f8f
rm src/test/java/org/apache/commons/net/tftp/TFTPServerPathTest.java
5d7f8f
5d7f8f
%mvn_file  : %{short_name} %{name}
5d7f8f
%mvn_alias : org.apache.commons:%{short_name}
5d7f8f
5d7f8f
%build
5d7f8f
%mvn_build
5d7f8f
5d7f8f
%install
5d7f8f
%mvn_install
5d7f8f
5d7f8f
5d7f8f
%files -f .mfiles
5d7f8f
%doc README.md RELEASE-NOTES.txt
5d7f8f
%license LICENSE.txt NOTICE.txt
5d7f8f
5d7f8f
%files javadoc -f .mfiles-javadoc
5d7f8f
%license LICENSE.txt NOTICE.txt
5d7f8f
5d7f8f
%changelog
5d7f8f
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.6-3
5d7f8f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5d7f8f
5d7f8f
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.6-2
5d7f8f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
5d7f8f
5d7f8f
* Tue Mar 28 2017 Michael Simacek <msimacek@redhat.com> - 3.6-1
5d7f8f
- Update to upstream version 3.6
5d7f8f
5d7f8f
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.5-2
5d7f8f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5d7f8f
5d7f8f
* Thu May  5 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.5-1
5d7f8f
- Update to upstream version 3.5
5d7f8f
5d7f8f
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.4-3
5d7f8f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5d7f8f
5d7f8f
* Mon Jan  4 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.4-2
5d7f8f
- Add workaround for suprious test failure (NET-586)
5d7f8f
5d7f8f
* Fri Nov 27 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.4-1
5d7f8f
- Update to upstream version 3.4
5d7f8f
5d7f8f
* Tue Aug 04 2015 Michael Simacek <msimacek@redhat.com> - 3.3-7
5d7f8f
- Disable failing test
5d7f8f
5d7f8f
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3-6
5d7f8f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
5d7f8f
5d7f8f
* Tue Oct 14 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.3-5
5d7f8f
- Remove legacy Obsoletes/Provides for jakarta-commons
5d7f8f
5d7f8f
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3-4
5d7f8f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
5d7f8f
5d7f8f
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.3-3
5d7f8f
- Use Requires: java-headless rebuild (#1067528)
5d7f8f
5d7f8f
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3-2
5d7f8f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
5d7f8f
5d7f8f
* Wed Jun 12 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.3-1
5d7f8f
- Update to upstream version 3.3
5d7f8f
5d7f8f
* Wed Jun 05 2013 Michal Srb <msrb@redhat.com> - 3.2-5
5d7f8f
- Enable tests
5d7f8f
- Install README, RELEASE-NOTES.txt files
5d7f8f
- Fix BR
5d7f8f
5d7f8f
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2-4
5d7f8f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5d7f8f
5d7f8f
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 3.2-3
5d7f8f
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
5d7f8f
- Replace maven BuildRequires with maven-local
5d7f8f
5d7f8f
* Wed Jan 16 2013 Michal Srb <msrb@redhat.com> - 3.2-2
5d7f8f
- Build with xmvn
5d7f8f
5d7f8f
* Mon Dec  3 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2-1
5d7f8f
- Update to upstream version 3.2
5d7f8f
5d7f8f
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-2
5d7f8f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5d7f8f
5d7f8f
* Tue Jun 19 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.1-1
5d7f8f
- Update to upstream 3.1
5d7f8f
- Remove RPM bug workaround
5d7f8f
- Remove BR on maven-changes-plugin
5d7f8f
5d7f8f
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-4
5d7f8f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
5d7f8f
5d7f8f
* Thu Nov 24 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.2-3
5d7f8f
- Use maven 3 to build
5d7f8f
- Packaging fixes according to latest guidelines
5d7f8f
5d7f8f
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-2
5d7f8f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
5d7f8f
5d7f8f
* Fri Dec 10 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.2-1
5d7f8f
- Replace maven plugins with apache-commons-parent for BR
5d7f8f
- Versionless jars and javadocs
5d7f8f
- Rebase to latest upstream version
5d7f8f
5d7f8f
* Thu Jul  8 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.0-6
5d7f8f
- Add license to javadoc subpackage
5d7f8f
5d7f8f
* Thu May 20 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.0-5
5d7f8f
- Fix maven depmap JPP name to short_name
5d7f8f
5d7f8f
* Wed May 19 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.0-4
5d7f8f
- Ignore test failure
5d7f8f
5d7f8f
* Wed May 12 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.0-3
5d7f8f
- Rename jakarta-commons-net to apache-commons-net and drop EPOCH
5d7f8f
- Build with maven
5d7f8f
- Clean up whole spec
5d7f8f
5d7f8f
* Thu Aug 13 2009 Alexander Kurtakov <akurtako@redhat.com> 0:2.0-2
5d7f8f
- Set maven.repo.local.
5d7f8f
5d7f8f
* Thu Aug 13 2009 Alexander Kurtakov <akurtako@redhat.com> 0:2.0-1
5d7f8f
- Update to upstream 2.0.
5d7f8f