diff --git a/apache-commons-net.spec b/apache-commons-net.spec new file mode 100644 index 0000000..bde87f5 --- /dev/null +++ b/apache-commons-net.spec @@ -0,0 +1,50 @@ +Name: apache-commons-net +Version: 3.6 +Release: 5 +Summary: Java library for Internet protocol +License: ASL 2.0 +URL: http://commons.apache.org/net/ +Source0: http://archive.apache.org/dist/commons/net/source/commons-net-3.6-src.tar.gz +BuildArch: noarch + +BuildRequires: maven-local mvn(junit:junit) mvn(org.apache.commons:commons-parent:pom:) +BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin) +BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) +BuildRequires: mvn(org.codehaus.mojo:exec-maven-plugin) + +%description +Apache Commons Net library contains a collection of network utilities and protocol implementations. +Supported protocols include: Echo, Finger, FTP, NNTP, NTP, POP3(S), SMTP(S), Telnet, Whois + +%package help +Summary: Help document for apache-commons-net +Provides: %{name}-javadoc = %{version}-%{release} +Obsoletes: %{name}-javadoc < %{version}-%{release} + +%description help +Help document for apache-commons-net. + +%prep +%autosetup -n commons-net-%{version}-src -p1 + +rm src/test/java/org/apache/commons/net/time/TimeTCPClientTest.java +rm src/test/java/org/apache/commons/net/tftp/TFTPServerPathTest.java + +%mvn_file : commons-net apache-commons-net +%mvn_alias : org.apache.commons:commons-net + +%build +%mvn_build + +%install +%mvn_install + +%files -f .mfiles +%license LICENSE.txt NOTICE.txt + +%files help -f .mfiles-javadoc +%doc README.md RELEASE-NOTES.txt + +%changelog +* Wed Dec 4 2019 shijian - 3.6-5 +- Package init diff --git a/commons-net-3.6-src.tar.gz b/commons-net-3.6-src.tar.gz new file mode 100644 index 0000000..a27a317 Binary files /dev/null and b/commons-net-3.6-src.tar.gz differ