|
|
eb8f0f |
|
|
|
eb8f0f |
%global base_name daemon
|
|
|
eb8f0f |
%global short_name commons-%{base_name}
|
|
|
eb8f0f |
|
|
|
eb8f0f |
Name: apache-%{short_name}
|
|
|
eb8f0f |
Version: 1.0.13
|
|
|
0e8e35 |
Release: 6%{?dist}
|
|
|
eb8f0f |
Summary: Defines API to support an alternative invocation mechanism
|
|
|
eb8f0f |
License: ASL 2.0
|
|
|
eb8f0f |
Group: Applications/System
|
|
|
eb8f0f |
URL: http://commons.apache.org/%{base_name}
|
|
|
eb8f0f |
Source0: http://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
|
|
|
eb8f0f |
Patch0: 0001-execve-path-warning.patch
|
|
|
eb8f0f |
Patch1: apache-commons-daemon-JAVA_OS.patch
|
|
|
eb8f0f |
Patch2: apache-commons-daemon-s390x.patch
|
|
|
eb8f0f |
Patch3: apache-commons-daemon-ppc64.patch
|
|
|
eb8f0f |
Patch4: apache-commons-daemon-aarch64.patch
|
|
|
eb8f0f |
BuildRequires: maven-local
|
|
|
eb8f0f |
BuildRequires: java-devel >= 1:1.6.0
|
|
|
eb8f0f |
BuildRequires: jpackage-utils
|
|
|
eb8f0f |
BuildRequires: apache-commons-parent >= 26-7
|
|
|
eb8f0f |
BuildRequires: maven-surefire-provider-junit
|
|
|
eb8f0f |
BuildRequires: xmlto
|
|
|
eb8f0f |
|
|
|
eb8f0f |
|
|
|
eb8f0f |
Provides: jakarta-%{short_name} = 1:%{version}-%{release}
|
|
|
eb8f0f |
Obsoletes: jakarta-%{short_name} <= 1:1.0.1
|
|
|
eb8f0f |
|
|
|
eb8f0f |
|
|
|
eb8f0f |
%description
|
|
|
eb8f0f |
The scope of this package is to define an API in line with the current
|
|
|
eb8f0f |
Java Platform APIs to support an alternative invocation mechanism
|
|
|
eb8f0f |
which could be used instead of the public static void main(String[])
|
|
|
eb8f0f |
method. This specification covers the behavior and life cycle of what
|
|
|
eb8f0f |
we define as Java daemons, or, in other words, non interactive
|
|
|
eb8f0f |
Java applications.
|
|
|
eb8f0f |
|
|
|
eb8f0f |
%package jsvc
|
|
|
eb8f0f |
Summary: Java daemon launcher
|
|
|
eb8f0f |
Group: Applications/System
|
|
|
eb8f0f |
Provides: jsvc = 1:%{version}-%{release}
|
|
|
eb8f0f |
|
|
|
eb8f0f |
Provides: jakarta-%{short_name}-jsvc = 1:%{version}-%{release}
|
|
|
eb8f0f |
Obsoletes: jakarta-%{short_name}-jsvc <= 1:1.0.1
|
|
|
eb8f0f |
|
|
|
eb8f0f |
%description jsvc
|
|
|
eb8f0f |
%{summary}.
|
|
|
eb8f0f |
|
|
|
eb8f0f |
%package javadoc
|
|
|
eb8f0f |
Summary: API documentation for %{name}
|
|
|
eb8f0f |
Group: Documentation
|
|
|
eb8f0f |
Requires: jpackage-utils
|
|
|
eb8f0f |
BuildArch: noarch
|
|
|
eb8f0f |
|
|
|
eb8f0f |
Provides: jakarta-%{short_name}-javadoc = 1:%{version}-%{release}
|
|
|
eb8f0f |
Obsoletes: jakarta-%{short_name}-javadoc <= 1:1.0.1
|
|
|
eb8f0f |
|
|
|
eb8f0f |
%description javadoc
|
|
|
eb8f0f |
%{summary}.
|
|
|
eb8f0f |
|
|
|
eb8f0f |
|
|
|
eb8f0f |
%prep
|
|
|
eb8f0f |
%setup -q -n %{short_name}-%{version}-src
|
|
|
eb8f0f |
%patch0 -p1 -b .execve
|
|
|
eb8f0f |
%patch1 -p1 -b .java_os
|
|
|
eb8f0f |
%patch2 -p1 -b .s390x
|
|
|
eb8f0f |
%patch3 -p1 -b .ppc64
|
|
|
eb8f0f |
%patch4 -p1 -b .aarch64
|
|
|
eb8f0f |
|
|
|
eb8f0f |
# remove java binaries from sources
|
|
|
eb8f0f |
rm -rf src/samples/build/
|
|
|
eb8f0f |
|
|
|
eb8f0f |
chmod 644 src/samples/*
|
|
|
eb8f0f |
cd src/native/unix
|
|
|
eb8f0f |
xmlto man man/jsvc.1.xml
|
|
|
eb8f0f |
|
|
|
eb8f0f |
|
|
|
eb8f0f |
%build
|
|
|
eb8f0f |
|
|
|
eb8f0f |
# build native jsvc
|
|
|
eb8f0f |
pushd src/native/unix
|
|
|
eb8f0f |
%configure --with-java=%{java_home}
|
|
|
eb8f0f |
# this is here because 1.0.2 archive contains old *.o
|
|
|
eb8f0f |
make clean
|
|
|
eb8f0f |
make %{?_smp_mflags}
|
|
|
eb8f0f |
popd
|
|
|
eb8f0f |
|
|
|
eb8f0f |
# build jars
|
|
|
eb8f0f |
%mvn_file : %{short_name} %{name}
|
|
|
eb8f0f |
%mvn_alias : org.apache.commons:%{short_name}
|
|
|
eb8f0f |
%mvn_build
|
|
|
eb8f0f |
|
|
|
eb8f0f |
|
|
|
eb8f0f |
%install
|
|
|
eb8f0f |
# install native jsvc
|
|
|
eb8f0f |
install -Dpm 755 src/native/unix/jsvc $RPM_BUILD_ROOT%{_bindir}/jsvc
|
|
|
eb8f0f |
install -Dpm 644 src/native/unix/jsvc.1 $RPM_BUILD_ROOT%{_mandir}/man1/jsvc.1
|
|
|
eb8f0f |
|
|
|
eb8f0f |
%mvn_install
|
|
|
eb8f0f |
|
|
|
eb8f0f |
|
|
|
eb8f0f |
%files -f .mfiles
|
|
|
eb8f0f |
%doc LICENSE.txt PROPOSAL.html NOTICE.txt RELEASE-NOTES.txt src/samples
|
|
|
eb8f0f |
%doc src/docs/*
|
|
|
eb8f0f |
|
|
|
eb8f0f |
|
|
|
eb8f0f |
%files jsvc
|
|
|
eb8f0f |
%doc LICENSE.txt NOTICE.txt
|
|
|
eb8f0f |
%{_bindir}/jsvc
|
|
|
eb8f0f |
%{_mandir}/man1/jsvc.1*
|
|
|
eb8f0f |
|
|
|
eb8f0f |
|
|
|
eb8f0f |
%files javadoc -f .mfiles-javadoc
|
|
|
eb8f0f |
%doc LICENSE.txt NOTICE.txt
|
|
|
eb8f0f |
|
|
|
eb8f0f |
|
|
|
eb8f0f |
%changelog
|
|
|
0e8e35 |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.0.13-6
|
|
|
0e8e35 |
- Mass rebuild 2014-01-24
|
|
|
0e8e35 |
|
|
|
0e8e35 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.0.13-5
|
|
|
0e8e35 |
- Mass rebuild 2013-12-27
|
|
|
0e8e35 |
|
|
|
eb8f0f |
* Mon Nov 11 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0.13-4
|
|
|
eb8f0f |
- Add aarch64 support patch
|
|
|
eb8f0f |
- Resolves: rhbz#1028109
|
|
|
eb8f0f |
|
|
|
eb8f0f |
* Fri Sep 20 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0.13-3
|
|
|
eb8f0f |
- Add BuildRequires on apache-commons-parent >= 26-7
|
|
|
eb8f0f |
|
|
|
eb8f0f |
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0.13-2
|
|
|
eb8f0f |
- Rebuild to regenerate API documentation
|
|
|
eb8f0f |
- Resolves: CVE-2013-1571
|
|
|
eb8f0f |
|
|
|
eb8f0f |
* Wed Feb 13 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0.13-1
|
|
|
eb8f0f |
- Update to upstream version 1.0.13
|
|
|
eb8f0f |
|
|
|
eb8f0f |
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.0.12-2
|
|
|
eb8f0f |
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
|
|
|
eb8f0f |
- Replace maven BuildRequires with maven-local
|
|
|
eb8f0f |
|
|
|
eb8f0f |
* Thu Jan 24 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0.12-1
|
|
|
eb8f0f |
- Update to upstream version 1.0.12
|
|
|
eb8f0f |
- Install NOTICE files
|
|
|
eb8f0f |
|
|
|
eb8f0f |
* Tue Jan 15 2013 Michal Srb <msrb@redhat.com> - 1.0.11-2
|
|
|
eb8f0f |
- Build with xmvn
|
|
|
eb8f0f |
- Spec file cleanup
|
|
|
eb8f0f |
|
|
|
eb8f0f |
* Tue Dec 11 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0.11-1
|
|
|
eb8f0f |
- Update to upstream version 1.0.11
|
|
|
eb8f0f |
|
|
|
eb8f0f |
* Fri Aug 17 2012 Karsten Hopp <karsten@redhat.com> 1.0.10-5
|
|
|
eb8f0f |
- add ppc64 as known arch
|
|
|
eb8f0f |
|
|
|
eb8f0f |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.10-4
|
|
|
eb8f0f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
eb8f0f |
|
|
|
eb8f0f |
* Mon Apr 23 2012 Dan Horák <dan[at]danny.cz> - 1.0.10-3
|
|
|
eb8f0f |
- add s390x as known arch
|
|
|
eb8f0f |
|
|
|
eb8f0f |
* Thu Mar 29 2012 Dennis Gilmore <dennis@ausil.us> - 1.0.10-2
|
|
|
eb8f0f |
- $supported_os and $JAVA_OS in configure do not always match
|
|
|
eb8f0f |
- on arches that override supported_os to be the arch we can not find headers
|
|
|
eb8f0f |
|
|
|
eb8f0f |
* Thu Jan 26 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0.10-1
|
|
|
eb8f0f |
- Update to latest upstream (1.0.10)
|
|
|
eb8f0f |
- Several bugfixes concerning libcap and building upstream
|
|
|
eb8f0f |
|
|
|
eb8f0f |
* Thu Jan 26 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0.8-1
|
|
|
eb8f0f |
- Update to latest upstream (1.0.8)
|
|
|
eb8f0f |
- Drop s390/ppc patches (upstream seems to already include them)
|
|
|
eb8f0f |
|
|
|
eb8f0f |
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.7-2
|
|
|
eb8f0f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
eb8f0f |
|
|
|
eb8f0f |
* Mon Aug 15 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0.7-1
|
|
|
eb8f0f |
- Update to latest upstream (1.0.7)
|
|
|
eb8f0f |
- Fix CVE-2011-2729
|
|
|
eb8f0f |
|
|
|
eb8f0f |
* Wed Jul 20 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0.6-1
|
|
|
eb8f0f |
- Update to latest upstream (1.0.6)
|
|
|
eb8f0f |
- Cleanups according to new guidelines
|
|
|
eb8f0f |
|
|
|
eb8f0f |
* Mon May 9 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0.5-5
|
|
|
eb8f0f |
- Use mvn-rpmbuild instead of mvn-local (changes in maven)
|
|
|
eb8f0f |
|
|
|
eb8f0f |
* Wed May 4 2011 Dan Horák <dan[at]danny.cz> - 1.0.5-4
|
|
|
eb8f0f |
- updated the s390x patch
|
|
|
eb8f0f |
|
|
|
eb8f0f |
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.5-3
|
|
|
eb8f0f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
eb8f0f |
|
|
|
eb8f0f |
* Tue Feb 1 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0.5-2
|
|
|
eb8f0f |
- Fix bug 669259 (execve warning segfault)
|
|
|
eb8f0f |
|
|
|
eb8f0f |
* Tue Jan 18 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0.5-1
|
|
|
eb8f0f |
- Update to latest version
|
|
|
eb8f0f |
- Use maven 3 to build
|
|
|
eb8f0f |
- Versionless jars & javadocs
|
|
|
eb8f0f |
- Use apache-commons-parent for BR
|
|
|
eb8f0f |
|
|
|
eb8f0f |
* Tue Oct 26 2010 Chris Spike <chris.spike@arcor.de> 1.0.4-2
|
|
|
eb8f0f |
- Added fix to remove java binaries from sources
|
|
|
eb8f0f |
|
|
|
eb8f0f |
* Tue Oct 26 2010 Chris Spike <chris.spike@arcor.de> 1.0.4-1
|
|
|
eb8f0f |
- Updated to 1.0.4
|
|
|
eb8f0f |
|
|
|
eb8f0f |
* Fri Oct 22 2010 Chris Spike <chris.spike@arcor.de> 1.0.3-1
|
|
|
eb8f0f |
- Updated to 1.0.3
|
|
|
eb8f0f |
- Cleaned up BRs
|
|
|
eb8f0f |
|
|
|
eb8f0f |
* Thu Jul 8 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0.2-4
|
|
|
eb8f0f |
- Add license to javadoc subpackage
|
|
|
eb8f0f |
|
|
|
eb8f0f |
* Fri Jun 4 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0.2-3
|
|
|
eb8f0f |
- Make javadoc subpackage noarch
|
|
|
eb8f0f |
|
|
|
eb8f0f |
* Tue Jun 1 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0.2-2
|
|
|
eb8f0f |
- Fix add_to_maven_depmap call
|
|
|
eb8f0f |
- Added depmap for old groupId
|
|
|
eb8f0f |
- Unified use of `install`
|
|
|
eb8f0f |
|
|
|
eb8f0f |
* Wed May 12 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0.2-1
|
|
|
eb8f0f |
- Rename and rebase to apache-commons-daemon
|
|
|
eb8f0f |
- Get rid of gcj, native conditional compilation
|
|
|
eb8f0f |
- Build with maven
|
|
|
eb8f0f |
- Update patches to cleanly apply on new version, remove unneeded
|
|
|
eb8f0f |
- Clean up whole spec
|
|
|
eb8f0f |
|
|
|
eb8f0f |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0.1-8.8
|
|
|
eb8f0f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
eb8f0f |
|
|
|
eb8f0f |
* Tue Mar 03 2009 Karsten Hopp <karsten@redhat.com> 1.0.1-7.8
|
|
|
eb8f0f |
- ppc needs a similar patch
|
|
|
eb8f0f |
|
|
|
eb8f0f |
* Tue Mar 03 2009 Karsten Hopp <karsten@redhat.com> 1.0.1-7.7
|
|
|
eb8f0f |
- add configure patch for s390x
|
|
|
eb8f0f |
|
|
|
eb8f0f |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0.1-7.6
|
|
|
eb8f0f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
eb8f0f |
|
|
|
eb8f0f |
* Wed Jul 9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1:1.0.1-6.6
|
|
|
eb8f0f |
- drop repotag
|
|
|
eb8f0f |
|
|
|
eb8f0f |
* Fri Feb 08 2008 Permaine Cheung <pcheung@redhat.com> - 1:1.0.1-6jpp.5
|
|
|
eb8f0f |
- Add configure patch for ia64 from Doug Chapman
|
|
|
eb8f0f |
|
|
|
eb8f0f |
* Mon Sep 24 2007 Permaine Cheung <pcheung@redhat.com> - 1:1.0.1-6jpp.4
|
|
|
eb8f0f |
- Add execve path warning patch from James Ralston
|