diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cfb11d2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/commons-exec-1.3-src.tar.gz diff --git a/.rh-maven35-apache-commons-exec.metadata b/.rh-maven35-apache-commons-exec.metadata new file mode 100644 index 0000000..eb0ce9b --- /dev/null +++ b/.rh-maven35-apache-commons-exec.metadata @@ -0,0 +1 @@ +a76d05e19bf492ecf7096232425d9ddca7da47bd SOURCES/commons-exec-1.3-src.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/apache-commons-exec.spec b/SPECS/apache-commons-exec.spec new file mode 100644 index 0000000..54e99b8 --- /dev/null +++ b/SPECS/apache-commons-exec.spec @@ -0,0 +1,150 @@ +%{?scl:%scl_package apache-commons-exec} +%{!?scl:%global pkg_name %{name}} + +%global base_name exec +%global short_name commons-%{base_name} + +Name: %{?scl_prefix}apache-commons-exec +Version: 1.3 +Release: 6.2%{?dist} +Summary: Java library to reliably execute external processes from within the JVM +License: ASL 2.0 +URL: http://commons.apache.org/exec/ +BuildArch: noarch + +Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz + +BuildRequires: %{?scl_prefix}maven-local +BuildRequires: %{?scl_prefix}mvn(junit:junit) +BuildRequires: %{?scl_prefix}mvn(org.apache.commons:commons-parent:pom:) +BuildRequires: %{?scl_prefix}mvn(org.apache.maven.plugins:maven-antrun-plugin) + +# Tests execute /usr/bin/ping +BuildRequires: iputils + +%description +Commons Exec is a library for dealing with external process execution and +environment management in Java. + +%package javadoc +Summary: Javadocs for %{pkg_name} + +%description javadoc +This package contains the API documentation for %{pkg_name}. + +%prep +%setup -q -n %{short_name}-%{version}-src + +# Fix wrong end-of-line encoding +for file in LICENSE.txt NOTICE.txt RELEASE-NOTES.txt STATUS; do + sed -i.orig "s/\r//" $file && \ + touch -r $file.orig $file && \ + rm $file.orig +done + +# Shell scripts used for unit tests must be executable (see +# http://commons.apache.org/exec/faq.html#environment-testing) +chmod a+x src/test/scripts/*.sh + +# Skip Exec57Test (it is unstable), see rhbz#1202260 +find -name Exec57Test.java -delete + +%mvn_file :%{short_name} %{short_name} %{pkg_name} + +%build +%mvn_build + +%install +%mvn_install + +%files -f .mfiles +%doc LICENSE.txt NOTICE.txt STATUS RELEASE-NOTES.txt + +%files javadoc -f .mfiles-javadoc +%doc LICENSE.txt NOTICE.txt + +%changelog +* Thu Jun 22 2017 Michael Simacek - 1.3-6.2 +- Mass rebuild 2017-06-22 + +* Wed Jun 21 2017 Java Maintainers - 1.3-6.1 +- Automated package import and SCL-ization + +* Fri Feb 10 2017 Fedora Release Engineering - 1.3-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed Jun 15 2016 Mikolaj Izdebski - 1.3-5 +- Regenerate build-requires + +* Wed Feb 03 2016 Fedora Release Engineering - 1.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 1.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Mon Mar 16 2015 Mikolaj Izdebski - 1.3-2 +- Skip running unstable Exec57Test +- Resolves: rhbz#1202260 + +* Tue Dec 02 2014 Mohamed El Morabity - 1.3-1 +- Update to 1.3 + +* Sat Jun 07 2014 Fedora Release Engineering - 1.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Tue Mar 04 2014 Stanislav Ochotnicky - 1.2-2 +- Use Requires: java-headless rebuild (#1067528) + +* Mon Feb 03 2014 Mohamed El Morabity - 1.2-1 +- Update to 1.2 +- Adapt to current guidelines + +* Sat Aug 03 2013 Fedora Release Engineering - 1.1-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Mon Jul 15 2013 Mat Booth - 1.1-10 +- Add missing BRs + +* Mon Jul 15 2013 Mikolaj Izdebski - 1.1-9 +- Install NOTICE file with javadoc package +- Resolves: rhbz#984417 + +* Mon Feb 18 2013 Java SIG - 1.1-8 +- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild +- Replace maven BuildRequires with maven-local + +* Wed Feb 13 2013 Fedora Release Engineering - 1.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Jul 18 2012 Fedora Release Engineering - 1.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Thu Jan 12 2012 Fedora Release Engineering - 1.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Nov 30 2011 Alexander Kurtakov 1.1-4 +- Build with maven 3. +- Adapt to current guidelines. + +* Mon Mar 07 2011 Tom Callaway - 1.1-3 +- fix maven fragment + +* Mon Feb 07 2011 Fedora Release Engineering - 1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Dec 28 2010 Mohamed El Morabity - 1.1-1 +- Update to 1.1 + +* Wed Sep 1 2010 Alexander Kurtakov 1.0.1-4 +- BR iputils. Needed by tests. + +* Wed Sep 1 2010 Alexander Kurtakov 1.0.1-3 +- Change maven plugin names to the new ones. + +* Wed Feb 3 2010 ELMORABITY Mohamed 1.0.1-2 +- Add missing %%post/%%postun Requires +- Use macro %%{_mavendepmapfragdir} instead of %%{_datadir}/maven2/pom +- Unown directories %%{_mavenpomdir} and %%{_mavendepmapfragdir} + +* Mon Jan 18 2010 ELMORABITY Mohamed 1.0.1-1 +- Initial RPM release