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