Blame SPECS/apache-commons-daemon.spec

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