| |
@@ -1,29 +1,27 @@
|
| |
-
|
| |
%global base_name daemon
|
| |
%global short_name commons-%{base_name}
|
| |
|
| |
- Name: apache-%{short_name}
|
| |
- Version: 1.0.15
|
| |
- Release: 19%{?dist}
|
| |
+ Name: apache-commons-daemon
|
| |
Summary: Defines API to support an alternative invocation mechanism
|
| |
+ Version: 1.2.0
|
| |
+ Release: 1%{?dist}
|
| |
License: ASL 2.0
|
| |
+
|
| |
URL: http://commons.apache.org/%{base_name}
|
| |
Source0: http://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
|
| |
- Patch1: apache-commons-daemon-JAVA_OS.patch
|
| |
- # backport from https://fisheye6.atlassian.com/changelog/commons?cs=1458896
|
| |
- Patch2: apache-commons-daemon-secondary.patch
|
| |
- # backport from http://svn.apache.org/viewvc?view=revision&revision=1533345
|
| |
- # https://issues.apache.org/jira/browse/DAEMON-308
|
| |
- Patch3: apache-commons-daemon-aarch64.patch
|
| |
- BuildRequires: maven-local
|
| |
- BuildRequires: java-devel >= 1:1.6.0
|
| |
- BuildRequires: jpackage-utils
|
| |
- BuildRequires: apache-commons-parent
|
| |
- BuildRequires: maven-surefire-provider-junit
|
| |
- BuildRequires: xmlto
|
| |
+
|
| |
+ Patch0: 00-configure-java-os.patch
|
| |
+
|
| |
+ BuildRequires: autoconf
|
| |
+ BuildRequires: dos2unix
|
| |
BuildRequires: gcc
|
| |
+ BuildRequires: java-devel >= 1:1.6.0
|
| |
BuildRequires: make
|
| |
+ BuildRequires: xmlto
|
| |
|
| |
+ BuildRequires: maven-local
|
| |
+ BuildRequires: mvn(junit:junit)
|
| |
+ BuildRequires: mvn(org.apache.commons:commons-parent:pom:)
|
| |
|
| |
%description
|
| |
The scope of this package is to define an API in line with the current
|
| |
@@ -33,12 +31,14 @@
|
| |
we define as Java daemons, or, in other words, non interactive
|
| |
Java applications.
|
| |
|
| |
+
|
| |
%package jsvc
|
| |
Summary: Java daemon launcher
|
| |
Provides: jsvc = 1:%{version}-%{release}
|
| |
|
| |
%description jsvc
|
| |
- %{summary}.
|
| |
+ Java daemon launcher.
|
| |
+
|
| |
|
| |
%package javadoc
|
| |
Summary: API documentation for %{name}
|
| |
@@ -46,31 +46,33 @@
|
| |
BuildArch: noarch
|
| |
|
| |
%description javadoc
|
| |
- %{summary}.
|
| |
+ API documentation for apache-commons-daemon.
|
| |
|
| |
|
| |
%prep
|
| |
%setup -q -n %{short_name}-%{version}-src
|
| |
- %patch1 -p1 -b .java_os
|
| |
- %patch2 -p1 -b .secondary
|
| |
- %patch3 -p1 -b .aarch64
|
| |
-
|
| |
- # remove java binaries from sources
|
| |
- rm -rf src/samples/build/
|
| |
+ %patch0 -p1
|
| |
|
| |
+ # mark example files as non-executable
|
| |
chmod 644 src/samples/*
|
| |
+
|
| |
+ # convert to correct end-of-line format
|
| |
+ dos2unix -k -n src/samples/ProcrunServiceInstall.cmd src/samples/ProcrunServiceInstall.cmd.new
|
| |
+ rm src/samples/ProcrunServiceInstall.cmd
|
| |
+ mv src/samples/ProcrunServiceInstall.cmd.new src/samples/ProcrunServiceInstall.cmd
|
| |
+
|
| |
+ # build manpage for jsvc
|
| |
cd src/native/unix
|
| |
xmlto man man/jsvc.1.xml
|
| |
|
| |
|
| |
%build
|
| |
-
|
| |
# build native jsvc
|
| |
pushd src/native/unix
|
| |
+ sh support/buildconf.sh
|
| |
+
|
| |
%configure --with-java=%{java_home}
|
| |
- # this is here because 1.0.2 archive contains old *.o
|
| |
- make clean
|
| |
- make %{?_smp_mflags}
|
| |
+ %make_build
|
| |
popd
|
| |
|
| |
# build jars
|
| |
@@ -91,18 +93,19 @@
|
| |
%doc LICENSE.txt PROPOSAL.html NOTICE.txt RELEASE-NOTES.txt src/samples
|
| |
%doc src/docs/*
|
| |
|
| |
-
|
| |
%files jsvc
|
| |
%doc LICENSE.txt NOTICE.txt
|
| |
%{_bindir}/jsvc
|
| |
%{_mandir}/man1/jsvc.1*
|
| |
|
| |
-
|
| |
%files javadoc -f .mfiles-javadoc
|
| |
%doc LICENSE.txt NOTICE.txt
|
| |
|
| |
|
| |
%changelog
|
| |
+ * Wed Jul 10 2019 Filipe Rosset <rosset.filipe@gmail.com> - 1.2.0-1
|
| |
+ - Update to 1.2.0
|
| |
+
|
| |
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.15-19
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
| |
|
| |
@@ -279,3 +282,4 @@
|
| |
|
| |
* Mon Sep 24 2007 Permaine Cheung <pcheung@redhat.com> - 1:1.0.1-6jpp.4
|
| |
- Add execve path warning patch from James Ralston
|
| |
+
|
| |
Based on https://src.fedoraproject.org/rpms/apache-commons-daemon/pull-request/1
Test rebuilds of dependent packages were done in COPR:
https://copr.fedorainfracloud.org/coprs/decathorpe/apache-commons-daemon-pr/monitor/
There were no new build failures compared to the current state of rawhide.