Blame SPECS/apache-commons-exec.spec

caf322
%{?scl:%scl_package apache-commons-exec}
caf322
%{!?scl:%global pkg_name %{name}}
caf322
caf322
%global base_name exec
caf322
%global short_name commons-%{base_name}
caf322
caf322
Name:           %{?scl_prefix}apache-commons-exec
caf322
Version:        1.3
caf322
Release:        6.2%{?dist}
caf322
Summary:        Java library to reliably execute external processes from within the JVM
caf322
License:        ASL 2.0
caf322
URL:            http://commons.apache.org/exec/
caf322
BuildArch:      noarch
caf322
caf322
Source0:        http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
caf322
caf322
BuildRequires:  %{?scl_prefix}maven-local
caf322
BuildRequires:  %{?scl_prefix}mvn(junit:junit)
caf322
BuildRequires:  %{?scl_prefix}mvn(org.apache.commons:commons-parent:pom:)
caf322
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven.plugins:maven-antrun-plugin)
caf322
caf322
# Tests execute /usr/bin/ping
caf322
BuildRequires:  iputils
caf322
caf322
%description
caf322
Commons Exec is a library for dealing with external process execution and
caf322
environment management in Java.
caf322
caf322
%package javadoc
caf322
Summary:        Javadocs for %{pkg_name}
caf322
caf322
%description javadoc
caf322
This package contains the API documentation for %{pkg_name}.
caf322
caf322
%prep
caf322
%setup -q -n %{short_name}-%{version}-src
caf322
caf322
# Fix wrong end-of-line encoding
caf322
for file in LICENSE.txt NOTICE.txt RELEASE-NOTES.txt STATUS; do
caf322
  sed -i.orig "s/\r//" $file && \
caf322
  touch -r $file.orig $file && \
caf322
  rm $file.orig
caf322
done
caf322
caf322
# Shell scripts used for unit tests must be executable (see
caf322
# http://commons.apache.org/exec/faq.html#environment-testing)
caf322
chmod a+x src/test/scripts/*.sh
caf322
caf322
# Skip Exec57Test (it is unstable), see rhbz#1202260
caf322
find -name Exec57Test.java -delete
caf322
caf322
%mvn_file :%{short_name} %{short_name} %{pkg_name}
caf322
caf322
%build
caf322
%mvn_build 
caf322
caf322
%install
caf322
%mvn_install
caf322
caf322
%files -f .mfiles
caf322
%doc LICENSE.txt NOTICE.txt STATUS RELEASE-NOTES.txt
caf322
caf322
%files javadoc -f .mfiles-javadoc
caf322
%doc LICENSE.txt NOTICE.txt
caf322
caf322
%changelog
caf322
* Thu Jun 22 2017 Michael Simacek <msimacek@redhat.com> - 1.3-6.2
caf322
- Mass rebuild 2017-06-22
caf322
caf322
* Wed Jun 21 2017 Java Maintainers <java-maint@redhat.com> - 1.3-6.1
caf322
- Automated package import and SCL-ization
caf322
caf322
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-6
caf322
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
caf322
caf322
* Wed Jun 15 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3-5
caf322
- Regenerate build-requires
caf322
caf322
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-4
caf322
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
caf322
caf322
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-3
caf322
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
caf322
caf322
* Mon Mar 16 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3-2
caf322
- Skip running unstable Exec57Test
caf322
- Resolves: rhbz#1202260
caf322
caf322
* Tue Dec 02 2014 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.3-1
caf322
- Update to 1.3
caf322
caf322
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-3
caf322
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
caf322
caf322
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.2-2
caf322
- Use Requires: java-headless rebuild (#1067528)
caf322
caf322
* Mon Feb 03 2014 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.2-1
caf322
- Update to 1.2
caf322
- Adapt to current guidelines
caf322
caf322
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-11
caf322
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
caf322
caf322
* Mon Jul 15 2013 Mat Booth <fedora@matbooth.co.uk> - 1.1-10
caf322
- Add missing BRs
caf322
caf322
* Mon Jul 15 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.1-9
caf322
- Install NOTICE file with javadoc package
caf322
- Resolves: rhbz#984417
caf322
caf322
* Mon Feb 18 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.1-8
caf322
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
caf322
- Replace maven BuildRequires with maven-local
caf322
caf322
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-7
caf322
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
caf322
caf322
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-6
caf322
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
caf322
caf322
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-5
caf322
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
caf322
caf322
* Wed Nov 30 2011 Alexander Kurtakov <akurtako@redhat.com> 1.1-4
caf322
- Build with maven 3.
caf322
- Adapt to current guidelines.
caf322
caf322
* Mon Mar 07 2011 Tom Callaway <spot@fedoraproject.org> - 1.1-3
caf322
- fix maven fragment
caf322
caf322
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-2
caf322
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
caf322
caf322
* Tue Dec 28 2010 Mohamed El Morabity <melmorabity@fedorapeople.org> - 1.1-1
caf322
- Update to 1.1
caf322
caf322
* Wed Sep 1 2010 Alexander Kurtakov <akurtako@redhat.com> 1.0.1-4
caf322
- BR iputils. Needed by tests.
caf322
caf322
* Wed Sep 1 2010 Alexander Kurtakov <akurtako@redhat.com> 1.0.1-3
caf322
- Change maven plugin names to the new ones.
caf322
caf322
* Wed Feb  3 2010 ELMORABITY Mohamed <melmorabity@fedoraproject.org> 1.0.1-2
caf322
- Add missing %%post/%%postun Requires
caf322
- Use macro %%{_mavendepmapfragdir} instead of %%{_datadir}/maven2/pom
caf322
- Unown directories %%{_mavenpomdir} and %%{_mavendepmapfragdir}
caf322
caf322
* Mon Jan 18 2010 ELMORABITY Mohamed <melmorabity@fedoraproject.org> 1.0.1-1
caf322
- Initial RPM release