- Update to 1.2

- Adapt to current guidelines
This commit is contained in:
Mohamed El Morabity 2014-02-04 09:51:04 +01:00
parent 7eb4a684a8
commit df45e3f613
3 changed files with 22 additions and 21 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
commons-exec-1.0.1-src.tar.gz
/commons-exec-1.1-src.tar.gz
/commons-exec-1.2-src.tar.gz

View File

@ -2,8 +2,8 @@
%global short_name commons-%{base_name}
Name: apache-commons-exec
Version: 1.1
Release: 11%{?dist}
Version: 1.2
Release: 1%{?dist}
Summary: Java library to reliably execute external processes from within the JVM
Group: Development/Libraries
@ -38,41 +38,41 @@ This package contains the API documentation for %{name}.
%prep
%setup -q -n %{short_name}-%{version}-src
# Fix wrong end-of-line encoding
for file in LICENSE.txt NOTICE.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
%mvn_file :%{short_name} %{short_name} %{name}
%build
mvn-rpmbuild install javadoc:aggregate
%mvn_build
%install
mkdir -p $RPM_BUILD_ROOT%{_javadir}
cp -p target/%{short_name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
ln -s %{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{short_name}.jar
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
cp -rp target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
mkdir -p $RPM_BUILD_ROOT%{_mavenpomdir}
cp -p pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-%{name}.pom
%add_maven_depmap JPP-%{name}.pom %{name}.jar
%mvn_install
%files
%files -f .mfiles
%doc LICENSE.txt NOTICE.txt STATUS
%{_mavenpomdir}/*
%{_javadir}/*.jar
%{_mavendepmapfragdir}/*
%files javadoc
%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt NOTICE.txt
%{_javadocdir}/%{name}
%changelog
* Mon Feb 03 2014 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.2-1
- Update to 1.2
- Adapt to current guidelines
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

View File

@ -1 +1 @@
c3332b95456a5989d346d303daca2ae2 commons-exec-1.1-src.tar.gz
c423f7268f3bd03c4602dc7fd12b5d4c commons-exec-1.2-src.tar.gz