diff --git a/apache-commons-chain.spec b/apache-commons-chain.spec index 1859229..12191e0 100644 --- a/apache-commons-chain.spec +++ b/apache-commons-chain.spec @@ -42,11 +42,8 @@ BuildRequires: commons-digester >= 1.8 BuildRequires: commons-logging BuildRequires: fdupes BuildRequires: glassfish-servlet-api -BuildRequires: javapackages-local +BuildRequires: javapackages-local >= 6 BuildRequires: portlet-1.0-api -Requires: mvn(commons-beanutils:commons-beanutils) -Requires: mvn(commons-digester:commons-digester) >= 1.8 -Requires: mvn(commons-logging:commons-logging) BuildArch: noarch %if %{with tests} BuildRequires: ant-junit @@ -102,8 +99,6 @@ rm -rf src/java/org/apache/commons/chain/web/faces %pom_xpath_set "pom:dependency[pom:groupId = 'javax.servlet' ]/pom:artifactId" javax.servlet-api %pom_xpath_set "pom:dependency[pom:groupId = 'javax.servlet' ]/pom:version" 3.1.0 -%pom_remove_parent - %build export CLASSPATH=$(build-classpath \ commons-logging \ @@ -127,7 +122,7 @@ install -pm 644 dist/%{short_name}-%{version}.jar %{buildroot}%{_javadir}/%{name ln -s %{name}.jar %{buildroot}%{_javadir}/%{short_name}.jar # pom install -d -m 0755 %{buildroot}%{_mavenpomdir} -install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom +%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom %add_maven_depmap %{name}.pom %{name}.jar -a org.apache.commons:%{short_name} # javadoc install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}