apache-commons-net/apache-commons-net.spec

83 lines
2.6 KiB
RPMSpec
Raw Normal View History

2019-12-05 16:15:29 +08:00
Name: apache-commons-net
2023-10-27 15:23:31 +08:00
Version: 3.10.0
Release: 1
2019-12-05 16:15:29 +08:00
Summary: Java library for Internet protocol
License: ASL 2.0
URL: http://commons.apache.org/net/
2023-10-27 15:23:31 +08:00
Source0: https://github.com/apache/commons-net/archive/refs/tags/rel/commons-net-%{version}.tar.gz
2019-12-05 16:15:29 +08:00
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)
2023-10-27 15:23:31 +08:00
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-api)
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-engine)
BuildRequires: mvn(org.junit.vintage:junit-vintage-engine)
BuildRequires: java-17-openjdk-devel
Requires: java-17-openjdk
2019-12-05 16:15:29 +08:00
%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
2023-10-27 15:23:31 +08:00
%autosetup -n commons-net-rel-commons-net-%{version} -p1
2019-12-05 16:15:29 +08:00
rm src/test/java/org/apache/commons/net/time/TimeTCPClientTest.java
rm src/test/java/org/apache/commons/net/tftp/TFTPServerPathTest.java
2023-10-27 15:23:31 +08:00
%pom_remove_dep org.apache.ftpserver:ftpserver-core
%pom_remove_plugin :maven-checkstyle-plugin
%pom_xpath_inject pom:build/pom:plugins "
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.1</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>"
rm \
src/test/java/org/apache/commons/net/ftp/FTPSClientTest.java \
src/test/java/org/apache/commons/net/ftp/AbstractFtpsTest.java \
src/test/java/org/apache/commons/net/ftp/NoProtocolSslConfigurationProxy.java
2019-12-05 16:15:29 +08:00
%mvn_file : commons-net apache-commons-net
%mvn_alias : org.apache.commons:commons-net
%build
2023-10-27 15:23:31 +08:00
export JAVA_HOME=%{_jvmdir}/java-17-openjdk
export CFLAGS="${RPM_OPT_FLAGS}"
export CXXFLAGS="${RPM_OPT_FLAGS}"
%mvn_build --xmvn-javadoc
2019-12-05 16:15:29 +08:00
%install
%mvn_install
%files -f .mfiles
%license LICENSE.txt NOTICE.txt
%files help -f .mfiles-javadoc
%doc README.md RELEASE-NOTES.txt
%changelog
2023-10-27 15:23:31 +08:00
* Fri Oct 27 2023 yaoxin <yao_xin001@hoperun.com> - 3.10.0-1
- Upgrade to 3.10.0
2023-06-05 16:05:15 +08:00
* Mon Jun 05 2023 wangkai <13474090681@163.com> - 3.6-6
- Remove TestConnectTimeout for ftp
2019-12-05 16:15:29 +08:00
* Wed Dec 4 2019 shijian <shijian16@huawei.com> - 3.6-5
- Package init