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