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