From 2ed5d759639ec1433157fdb2f60490f269e031c4 Mon Sep 17 00:00:00 2001 From: Michael Simacek Date: Fri, 7 Mar 2014 14:35:10 +0100 Subject: [PATCH] Add missing %dir --- slf4j.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/slf4j.spec b/slf4j.spec index 1cdac20..1f43133 100644 --- a/slf4j.spec +++ b/slf4j.spec @@ -172,11 +172,10 @@ sed -i "/Import-Package/s/.$/;resolution:=optional&/" slf4j-api/src/main/resourc %mvn_build -f -s %install -%mvn_install - # Compat symlinks -(cd $RPM_BUILD_ROOT/%{_javadir}/%{name}; for jar in %{name}-*; do - ln -s $jar ${jar/%{name}-/}; done) +%mvn_file ':%{name}-{*}' %{name}/%{name}-@1 %{name}/@1 + +%mvn_install # manual install -d -m 0755 $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-manual @@ -185,7 +184,7 @@ cp -pr target/site/* $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-manual %files -f .mfiles %doc LICENSE.txt APACHE-LICENSE -%{_javadir}/%{name} +%dir %{_javadir}/%{name} %files jdk14 -f .mfiles-%{name}-jdk14 %files log4j12 -f .mfiles-%{name}-log4j12 @@ -194,6 +193,7 @@ cp -pr target/site/* $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-manual %files -n jcl-over-slf4j -f .mfiles-jcl-over-slf4j %files -n log4j-over-slf4j -f .mfiles-log4j-over-slf4j %files -n jul-to-slf4j -f .mfiles-jul-to-slf4j + %files javadoc -f .mfiles-javadoc %doc LICENSE.txt APACHE-LICENSE