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