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