Name: apache-commons-daemon Version: 1.3.3 Release: 1 Summary: Defines API to support an alternative invocation mechanism License: ASL 2.0 URL: http://commons.apache.org/daemon Source0: http://archive.apache.org/dist/commons/daemon/source/commons-daemon-%{version}-src.tar.gz BuildRequires: maven-local java-devel >= 1:1.6.0 jpackage-utils apache-commons-parent BuildRequires: maven-surefire-provider-junit5 xmlto gcc make Provides: apache-commons-daemon-jsvc = %{version}-%{release} jsvc = 1:%{version}-%{release} Obsoletes: apache-commons-daemon-jsvc < %{version}-%{release} Patch0001: apache-commons-daemon-JAVA_OS.patch Patch0002: apache-commons-daemon-secondary.patch Patch0003: apache-commons-daemon-aarch64.patch Patch0004: 0001-Fix-build-failed-on-openEuler-RISC-V.patch %description The scope of this package is to define an API in line with the current Java Platform APIs to support an alternative invocation mechanism which could be used instead of the public static void main(String[]) method. This specification covers the behavior and life cycle of what we define as Java daemons, or, in other words, non interactive Java applications. %package help Requires: jpackage-utils BuildArch: noarch Summary: Help documents for apache-commons-daemon Provides: apache-commons-daemon-javadoc = %{version}-%{release} Obsoletes: apache-commons-daemon-javadoc < %{version}-%{release} %description help The apache-commons-daemon-help package conatins manual pages and API documents for apache-commons-daemon. %prep %autosetup -n commons-daemon-%{version}-src -p1 rm -rf src/samples/build/* cd src/native/unix xmlto man man/jsvc.1.xml %build cd src/native/unix %configure --with-java=%{java_home} make clean %make_build cd - %mvn_file : commons-daemon apache-commons-daemon %mvn_alias : org.apache.commons:commons-daemon %mvn_build -f %install install -Dpm 755 src/native/unix/jsvc $RPM_BUILD_ROOT%{_bindir}/jsvc install -Dpm 644 src/native/unix/jsvc.1 $RPM_BUILD_ROOT%{_mandir}/man1/jsvc.1 %mvn_install %files -f .mfiles %doc LICENSE.txt %{_bindir}/jsvc %files help -f .mfiles-javadoc %doc PROPOSAL.html NOTICE.txt RELEASE-NOTES.txt src/samples src/docs/* %{_mandir}/man1/jsvc.1* %changelog * Tue May 09 2023 Ge Wang - 1.3.3-1 - Update to version 1.3.3 * Wed Mar 22 2023 misaka00251 - 1.3.2-2 - Fix build failed on openEuler RISC-V * Sat Nov 12 2022 hua 1.3.2-1 - update to 1.3.2 * Mon Dec 2 2019 liujing - 1.0.15-19 - Package init