%global base_name daemon %global short_name commons-%{base_name} Name: apache-commons-daemon Summary: Defines API to support an alternative invocation mechanism Version: 1.2.0 Release: 2%{?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 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 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 jsvc Summary: Java daemon launcher Provides: jsvc = 1:%{version}-%{release} %description jsvc Java daemon launcher. %package javadoc Summary: API documentation for %{name} Requires: jpackage-utils BuildArch: noarch %description javadoc API documentation for apache-commons-daemon. %prep %setup -q -n %{short_name}-%{version}-src %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} %make_build popd # build jars %mvn_file : %{short_name} %{name} %mvn_alias : org.apache.commons:%{short_name} %mvn_build %install # install native jsvc 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 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 24 2019 Fedora Release Engineering - 1.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed Jul 10 2019 Filipe Rosset - 1.2.0-1 - Update to 1.2.0 * Thu Jan 31 2019 Fedora Release Engineering - 1.0.15-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Jul 12 2018 Fedora Release Engineering - 1.0.15-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 07 2018 Fedora Release Engineering - 1.0.15-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Aug 23 2017 Mikolaj Izdebski - 1.0.15-16 - Correct host-cpu values on PowerPC - Resolves: rhbz#1484366 * Wed Aug 02 2017 Fedora Release Engineering - 1.0.15-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.0.15-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 1.0.15-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Jan 31 2017 Mikolaj Izdebski - 1.0.15-12 - Add missing build-requires on GCC * Wed Feb 03 2016 Fedora Release Engineering - 1.0.15-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 1.0.15-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Tue Oct 14 2014 Mikolaj Izdebski - 1.0.15-9 - Remove legacy Obsoletes/Provides for jakarta-commons * Fri Aug 15 2014 Fedora Release Engineering - 1.0.15-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.0.15-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Tue Mar 04 2014 Stanislav Ochotnicky - 1.0.15-6 - Use Requires: java-headless rebuild (#1067528) * Mon Nov 25 2013 Marcin Juszkiewicz - 1.0.15-5 - Add AArch64 support from upstream - Resolves: rhbz #1034162 * Thu Sep 26 2013 Dan Horák - 1.0.15-4 - add back support for secondary arches (s390x, ppc64) * Sat Aug 03 2013 Fedora Release Engineering - 1.0.15-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Fri Apr 5 2013 Mikolaj Izdebski - 1.0.15-2 - Bump release number * Fri Apr 5 2013 Mikolaj Izdebski - 1.0.15-1 - Update to upstream version 1.0.15 - Remove 0001-execve-path-warning.patch (fixed upstream) - Remove patches for s390x and ppc64 (accepted upstream in DAEMON-289) * Wed Feb 13 2013 Mikolaj Izdebski - 1.0.13-1 - Update to upstream version 1.0.13 * Wed Feb 06 2013 Java SIG - 1.0.12-2 - Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild - Replace maven BuildRequires with maven-local * Thu Jan 24 2013 Mikolaj Izdebski - 1.0.12-1 - Update to upstream version 1.0.12 - Install NOTICE files * Tue Jan 15 2013 Michal Srb - 1.0.11-2 - Build with xmvn - Spec file cleanup * Tue Dec 11 2012 Mikolaj Izdebski - 1.0.11-1 - Update to upstream version 1.0.11 * Fri Aug 17 2012 Karsten Hopp 1.0.10-5 - add ppc64 as known arch * Wed Jul 18 2012 Fedora Release Engineering - 1.0.10-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Mon Apr 23 2012 Dan Horák - 1.0.10-3 - add s390x as known arch * Thu Mar 29 2012 Dennis Gilmore - 1.0.10-2 - $supported_os and $JAVA_OS in configure do not always match - on arches that override supported_os to be the arch we can not find headers * Thu Jan 26 2012 Stanislav Ochotnicky - 1.0.10-1 - Update to latest upstream (1.0.10) - Several bugfixes concerning libcap and building upstream * Thu Jan 26 2012 Stanislav Ochotnicky - 1.0.8-1 - Update to latest upstream (1.0.8) - Drop s390/ppc patches (upstream seems to already include them) * Thu Jan 12 2012 Fedora Release Engineering - 1.0.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Mon Aug 15 2011 Stanislav Ochotnicky - 1.0.7-1 - Update to latest upstream (1.0.7) - Fix CVE-2011-2729 * Wed Jul 20 2011 Stanislav Ochotnicky - 1.0.6-1 - Update to latest upstream (1.0.6) - Cleanups according to new guidelines * Mon May 9 2011 Stanislav Ochotnicky - 1.0.5-5 - Use mvn-rpmbuild instead of mvn-local (changes in maven) * Wed May 4 2011 Dan Horák - 1.0.5-4 - updated the s390x patch * Mon Feb 07 2011 Fedora Release Engineering - 1.0.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Feb 1 2011 Stanislav Ochotnicky - 1.0.5-2 - Fix bug 669259 (execve warning segfault) * Tue Jan 18 2011 Stanislav Ochotnicky - 1.0.5-1 - Update to latest version - Use maven 3 to build - Versionless jars & javadocs - Use apache-commons-parent for BR * Tue Oct 26 2010 Chris Spike 1.0.4-2 - Added fix to remove java binaries from sources * Tue Oct 26 2010 Chris Spike 1.0.4-1 - Updated to 1.0.4 * Fri Oct 22 2010 Chris Spike 1.0.3-1 - Updated to 1.0.3 - Cleaned up BRs * Thu Jul 8 2010 Stanislav Ochotnicky - 1.0.2-4 - Add license to javadoc subpackage * Fri Jun 4 2010 Stanislav Ochotnicky - 1.0.2-3 - Make javadoc subpackage noarch * Tue Jun 1 2010 Stanislav Ochotnicky - 1.0.2-2 - Fix add_to_maven_depmap call - Added depmap for old groupId - Unified use of `install` * Wed May 12 2010 Stanislav Ochotnicky - 1.0.2-1 - Rename and rebase to apache-commons-daemon - Get rid of gcj, native conditional compilation - Build with maven - Update patches to cleanly apply on new version, remove unneeded - Clean up whole spec * Fri Jul 24 2009 Fedora Release Engineering - 1:1.0.1-8.8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Tue Mar 03 2009 Karsten Hopp 1.0.1-7.8 - ppc needs a similar patch * Tue Mar 03 2009 Karsten Hopp 1.0.1-7.7 - add configure patch for s390x * Wed Feb 25 2009 Fedora Release Engineering - 1:1.0.1-7.6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Wed Jul 9 2008 Tom "spot" Callaway - 1:1.0.1-6.6 - drop repotag * Fri Feb 08 2008 Permaine Cheung - 1:1.0.1-6jpp.5 - Add configure patch for ia64 from Doug Chapman * Mon Sep 24 2007 Permaine Cheung - 1:1.0.1-6jpp.4 - Add execve path warning patch from James Ralston