Blame SPECS/apache-commons-daemon.spec

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