2010-06-08 07:48:12 +00:00
|
|
|
|
|
|
|
%global base_name daemon
|
|
|
|
%global short_name commons-%{base_name}
|
|
|
|
|
|
|
|
Name: apache-%{short_name}
|
2013-04-05 02:42:04 +00:00
|
|
|
Version: 1.0.15
|
2018-09-17 15:26:25 +00:00
|
|
|
Release: 18.2.riscv64%{?dist}
|
2010-06-08 07:48:12 +00:00
|
|
|
Summary: Defines API to support an alternative invocation mechanism
|
|
|
|
License: ASL 2.0
|
|
|
|
Group: Applications/System
|
|
|
|
URL: http://commons.apache.org/%{base_name}
|
|
|
|
Source0: http://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
|
2012-03-29 23:16:18 +00:00
|
|
|
Patch1: apache-commons-daemon-JAVA_OS.patch
|
2013-09-26 13:13:12 +00:00
|
|
|
# backport from https://fisheye6.atlassian.com/changelog/commons?cs=1458896
|
|
|
|
Patch2: apache-commons-daemon-secondary.patch
|
2013-11-25 13:33:50 +00:00
|
|
|
# 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
|
2018-09-17 13:20:00 +00:00
|
|
|
Patch4: commons-daemon-1.0.15-src-riscv64.patch
|
2013-02-07 08:42:01 +00:00
|
|
|
BuildRequires: maven-local
|
2010-06-08 07:48:12 +00:00
|
|
|
BuildRequires: java-devel >= 1:1.6.0
|
2010-10-22 01:01:48 +00:00
|
|
|
BuildRequires: jpackage-utils
|
2011-01-18 14:10:05 +00:00
|
|
|
BuildRequires: apache-commons-parent
|
2011-07-20 09:43:45 +00:00
|
|
|
BuildRequires: maven-surefire-provider-junit
|
2010-06-08 07:48:12 +00:00
|
|
|
BuildRequires: xmlto
|
2017-01-31 21:50:14 +00:00
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: make
|
2018-09-17 13:45:47 +00:00
|
|
|
# For autoreconf
|
|
|
|
BuildRequires: autoconf
|
2010-06-08 07:48:12 +00:00
|
|
|
|
|
|
|
%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
|
|
|
|
Group: Applications/System
|
|
|
|
Provides: jsvc = 1:%{version}-%{release}
|
|
|
|
|
|
|
|
%description jsvc
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: API documentation for %{name}
|
|
|
|
Group: Documentation
|
|
|
|
Requires: jpackage-utils
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{short_name}-%{version}-src
|
2012-03-29 23:16:18 +00:00
|
|
|
%patch1 -p1 -b .java_os
|
2013-09-26 13:13:12 +00:00
|
|
|
%patch2 -p1 -b .secondary
|
2013-11-25 13:33:50 +00:00
|
|
|
%patch3 -p1 -b .aarch64
|
2018-09-17 13:20:00 +00:00
|
|
|
%patch4 -p1 -b .riscv64
|
2010-06-08 07:48:12 +00:00
|
|
|
|
2018-09-17 13:45:47 +00:00
|
|
|
# Needed to get RISC-V (riscv64) support
|
2018-09-17 15:26:25 +00:00
|
|
|
pushd src/native/unix
|
2018-09-17 13:45:47 +00:00
|
|
|
autoreconf -fiv
|
2018-09-17 15:26:25 +00:00
|
|
|
popd
|
2018-09-17 13:45:47 +00:00
|
|
|
|
2010-10-26 21:56:56 +00:00
|
|
|
# remove java binaries from sources
|
|
|
|
rm -rf src/samples/build/
|
|
|
|
|
2010-06-08 07:48:12 +00:00
|
|
|
chmod 644 src/samples/*
|
|
|
|
cd src/native/unix
|
|
|
|
xmlto man man/jsvc.1.xml
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
# build native jsvc
|
|
|
|
pushd src/native/unix
|
|
|
|
%configure --with-java=%{java_home}
|
|
|
|
# this is here because 1.0.2 archive contains old *.o
|
|
|
|
make clean
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
popd
|
|
|
|
|
|
|
|
# build jars
|
2013-01-15 13:54:23 +00:00
|
|
|
%mvn_file : %{short_name} %{name}
|
|
|
|
%mvn_alias : org.apache.commons:%{short_name}
|
|
|
|
%mvn_build
|
2010-06-08 07:48:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
2013-01-15 13:54:23 +00:00
|
|
|
%mvn_install
|
2010-06-08 07:48:12 +00:00
|
|
|
|
|
|
|
|
2013-01-15 13:54:23 +00:00
|
|
|
%files -f .mfiles
|
2010-06-08 07:48:12 +00:00
|
|
|
%doc LICENSE.txt PROPOSAL.html NOTICE.txt RELEASE-NOTES.txt src/samples
|
|
|
|
%doc src/docs/*
|
|
|
|
|
|
|
|
|
|
|
|
%files jsvc
|
2013-01-24 14:56:26 +00:00
|
|
|
%doc LICENSE.txt NOTICE.txt
|
2010-06-08 07:48:12 +00:00
|
|
|
%{_bindir}/jsvc
|
|
|
|
%{_mandir}/man1/jsvc.1*
|
|
|
|
|
|
|
|
|
2013-01-15 13:54:23 +00:00
|
|
|
%files javadoc -f .mfiles-javadoc
|
2013-01-24 14:56:26 +00:00
|
|
|
%doc LICENSE.txt NOTICE.txt
|
2010-06-08 07:48:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2018-09-17 15:26:25 +00:00
|
|
|
* Mon Sep 17 2018 David Abdurachmanov <david.abdurachmanov@gmail.com> - 1.0.15-18.2.riscv64
|
2018-09-17 13:45:47 +00:00
|
|
|
- Rebuild build scripts
|
|
|
|
|
2018-09-17 13:20:00 +00:00
|
|
|
* Mon Sep 17 2018 David Abdurachmanov <david.abdurachmanov@gmail.com> - 1.0.15-18.0.riscv64
|
|
|
|
- Add support for RISC-V (riscv64)
|
|
|
|
|
2018-07-12 20:18:32 +00:00
|
|
|
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.15-18
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-02-07 02:26:01 +00:00
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.15-17
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-08-23 10:59:39 +00:00
|
|
|
* Wed Aug 23 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0.15-16
|
|
|
|
- Correct host-cpu values on PowerPC
|
|
|
|
- Resolves: rhbz#1484366
|
|
|
|
|
2017-08-02 17:37:20 +00:00
|
|
|
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.15-15
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-26 02:58:12 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.15-14
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-10 06:03:22 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.15-13
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2017-01-31 21:50:14 +00:00
|
|
|
* Tue Jan 31 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0.15-12
|
|
|
|
- Add missing build-requires on GCC
|
|
|
|
|
2016-02-03 16:16:29 +00:00
|
|
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.15-11
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-06-17 00:01:26 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.15-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2014-10-14 06:56:38 +00:00
|
|
|
* Tue Oct 14 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0.15-9
|
|
|
|
- Remove legacy Obsoletes/Provides for jakarta-commons
|
|
|
|
|
2014-08-15 20:40:56 +00:00
|
|
|
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.15-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-07 00:53:27 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.15-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-03-04 08:05:28 +00:00
|
|
|
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0.15-6
|
|
|
|
- Use Requires: java-headless rebuild (#1067528)
|
|
|
|
|
2013-11-25 13:33:50 +00:00
|
|
|
* Mon Nov 25 2013 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 1.0.15-5
|
|
|
|
- Add AArch64 support from upstream - Resolves: rhbz #1034162
|
|
|
|
|
2013-09-26 13:13:12 +00:00
|
|
|
* Thu Sep 26 2013 Dan Horák <dan[at]danny.cz> - 1.0.15-4
|
|
|
|
- add back support for secondary arches (s390x, ppc64)
|
|
|
|
|
2013-08-03 00:59:37 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.15-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-04-05 03:20:07 +00:00
|
|
|
* Fri Apr 5 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0.15-2
|
|
|
|
- Bump release number
|
|
|
|
|
2013-04-05 02:42:04 +00:00
|
|
|
* Fri Apr 5 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 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)
|
|
|
|
|
2013-02-13 09:50:44 +00:00
|
|
|
* Wed Feb 13 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0.13-1
|
|
|
|
- Update to upstream version 1.0.13
|
|
|
|
|
2013-02-06 18:30:27 +00:00
|
|
|
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.0.12-2
|
|
|
|
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
|
|
|
|
- Replace maven BuildRequires with maven-local
|
|
|
|
|
2013-01-24 14:56:26 +00:00
|
|
|
* Thu Jan 24 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0.12-1
|
|
|
|
- Update to upstream version 1.0.12
|
|
|
|
- Install NOTICE files
|
|
|
|
|
2013-01-15 13:54:23 +00:00
|
|
|
* Tue Jan 15 2013 Michal Srb <msrb@redhat.com> - 1.0.11-2
|
|
|
|
- Build with xmvn
|
|
|
|
- Spec file cleanup
|
|
|
|
|
2012-12-11 15:06:01 +00:00
|
|
|
* Tue Dec 11 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0.11-1
|
|
|
|
- Update to upstream version 1.0.11
|
|
|
|
|
2012-08-17 14:48:06 +00:00
|
|
|
* Fri Aug 17 2012 Karsten Hopp <karsten@redhat.com> 1.0.10-5
|
2012-08-17 14:43:50 +00:00
|
|
|
- add ppc64 as known arch
|
|
|
|
|
2012-07-18 16:12:28 +00:00
|
|
|
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.10-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-04-23 10:41:15 +00:00
|
|
|
* Mon Apr 23 2012 Dan Horák <dan[at]danny.cz> - 1.0.10-3
|
|
|
|
- add s390x as known arch
|
|
|
|
|
2012-03-29 23:16:18 +00:00
|
|
|
* Thu Mar 29 2012 Dennis Gilmore <dennis@ausil.us> - 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
|
|
|
|
|
2012-02-28 15:03:18 +00:00
|
|
|
* Thu Jan 26 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0.10-1
|
|
|
|
- Update to latest upstream (1.0.10)
|
|
|
|
- Several bugfixes concerning libcap and building upstream
|
|
|
|
|
2012-01-26 15:54:36 +00:00
|
|
|
* Thu Jan 26 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0.8-1
|
|
|
|
- Update to latest upstream (1.0.8)
|
|
|
|
- Drop s390/ppc patches (upstream seems to already include them)
|
|
|
|
|
2012-01-12 21:33:51 +00:00
|
|
|
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.7-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-08-15 08:28:37 +00:00
|
|
|
* Mon Aug 15 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0.7-1
|
|
|
|
- Update to latest upstream (1.0.7)
|
|
|
|
- Fix CVE-2011-2729
|
|
|
|
|
2011-07-20 09:18:00 +00:00
|
|
|
* Wed Jul 20 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0.6-1
|
|
|
|
- Update to latest upstream (1.0.6)
|
2011-07-20 09:43:45 +00:00
|
|
|
- Cleanups according to new guidelines
|
2011-07-20 09:18:00 +00:00
|
|
|
|
2011-05-09 09:21:56 +00:00
|
|
|
* Mon May 9 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0.5-5
|
|
|
|
- Use mvn-rpmbuild instead of mvn-local (changes in maven)
|
|
|
|
|
2011-05-04 14:27:14 +00:00
|
|
|
* Wed May 4 2011 Dan Horák <dan[at]danny.cz> - 1.0.5-4
|
|
|
|
- updated the s390x patch
|
|
|
|
|
2011-02-08 01:26:38 +00:00
|
|
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.5-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2011-02-01 15:45:24 +00:00
|
|
|
* Tue Feb 1 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0.5-2
|
|
|
|
- Fix bug 669259 (execve warning segfault)
|
|
|
|
|
2011-01-18 14:10:05 +00:00
|
|
|
* Tue Jan 18 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0.5-1
|
|
|
|
- Update to latest version
|
|
|
|
- Use maven 3 to build
|
|
|
|
- Versionless jars & javadocs
|
|
|
|
- Use apache-commons-parent for BR
|
|
|
|
|
2010-10-26 21:56:56 +00:00
|
|
|
* Tue Oct 26 2010 Chris Spike <chris.spike@arcor.de> 1.0.4-2
|
|
|
|
- Added fix to remove java binaries from sources
|
|
|
|
|
2010-10-26 18:27:14 +00:00
|
|
|
* Tue Oct 26 2010 Chris Spike <chris.spike@arcor.de> 1.0.4-1
|
|
|
|
- Updated to 1.0.4
|
|
|
|
|
2010-10-22 01:01:48 +00:00
|
|
|
* Fri Oct 22 2010 Chris Spike <chris.spike@arcor.de> 1.0.3-1
|
|
|
|
- Updated to 1.0.3
|
|
|
|
- Cleaned up BRs
|
|
|
|
|
2010-07-08 13:18:53 +00:00
|
|
|
* Thu Jul 8 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0.2-4
|
|
|
|
- Add license to javadoc subpackage
|
|
|
|
|
2010-06-08 07:48:12 +00:00
|
|
|
* Fri Jun 4 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0.2-3
|
|
|
|
- Make javadoc subpackage noarch
|
|
|
|
|
|
|
|
* Tue Jun 1 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 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 <sochotnicky@redhat.com> - 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 <rel-eng@lists.fedoraproject.org> - 1:1.0.1-8.8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
|
|
|
* Tue Mar 03 2009 Karsten Hopp <karsten@redhat.com> 1.0.1-7.8
|
|
|
|
- ppc needs a similar patch
|
|
|
|
|
|
|
|
* Tue Mar 03 2009 Karsten Hopp <karsten@redhat.com> 1.0.1-7.7
|
|
|
|
- add configure patch for s390x
|
|
|
|
|
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0.1-7.6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
|
|
|
* Wed Jul 9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1:1.0.1-6.6
|
|
|
|
- drop repotag
|
|
|
|
|
|
|
|
* Fri Feb 08 2008 Permaine Cheung <pcheung@redhat.com> - 1:1.0.1-6jpp.5
|
|
|
|
- Add configure patch for ia64 from Doug Chapman
|
|
|
|
|
|
|
|
* Mon Sep 24 2007 Permaine Cheung <pcheung@redhat.com> - 1:1.0.1-6jpp.4
|
|
|
|
- Add execve path warning patch from James Ralston
|