Blame SPECS/apache-commons-daemon.spec

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