diff --git a/apache-commons-email.spec b/apache-commons-email.spec index 20babeb..0f4f19e 100644 --- a/apache-commons-email.spec +++ b/apache-commons-email.spec @@ -3,7 +3,7 @@ Name: apache-%{short_name} Version: 1.2 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Apache Commons Email Package Group: Development/Libraries License: ASL 2.0 @@ -16,13 +16,11 @@ BuildArch: noarch BuildRequires: java-devel >= 1:1.6.0 BuildRequires: jpackage-utils -BuildRequires: apache-commons-parent +BuildRequires: maven-local BuildRequires: javamail Requires: javamail Requires: java >= 1:1.6.0 Requires: jpackage-utils -Requires(post): jpackage-utils -Requires(postun): jpackage-utils %description Commons-Email aims to provide an API for sending email. It is built on top of @@ -57,32 +55,27 @@ ln -sf %{name}.jar %{buildroot}%{_javadir}/%{short_name}.jar # poms install -d -m 0755 %{buildroot}%{_mavenpomdir} -install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{short_name}.pom -%add_to_maven_depmap org.apache.commons %{short_name} %{version} JPP %{short_name} +install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom +%add_maven_depmap JPP-%{name}.pom %{name}.jar -a "%{short_name}:%{short_name}" # javadoc install -d -m 0755 %{buildroot}%{_javadocdir}/%{name} cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name} -%post -%update_maven_depmap - -%postun -%update_maven_depmap - %files -%defattr(-,root,root,-) %doc LICENSE.txt RELEASE-NOTES.txt NOTICE.txt %{_javadir}/* -%{_mavenpomdir}/JPP-%{short_name}.pom +%{_mavenpomdir}/* %{_mavendepmapfragdir}/* %files javadoc -%defattr(-,root,root,-) %doc LICENSE.txt NOTICE.txt -%doc %{_javadocdir}/%{name} +%{_javadocdir}/%{name} %changelog +* Tue Feb 19 2013 Mat Booth - 1.2-5 +- Add missing BuildRequires on maven-local + * Wed Feb 13 2013 Fedora Release Engineering - 1.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild @@ -93,4 +86,4 @@ cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name} - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Sat Apr 16 2011 Chris Spike 1.2-1 -- Initial version of the package \ No newline at end of file +- Initial version of the package