- fix %instal re-entrancy
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 2 Mar 2006 10:42:55 +0000 (10:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    elektra.spec -> 1.15

elektra.spec

index b900fd987acfcdd1c437ef5847a72954d7cb27a9..79b721f75721ae9d661c986167dfee42ce65fc22 100644 (file)
@@ -12,6 +12,7 @@ Patch0:               %{name}-Makefile_CFLAGS.patch
 Patch1:                %{name}-libdir.patch
 Patch2:                %{name}-not_implemented_func_hack.patch
 Patch3:                %{name}-elektraenv.patch
+Patch4:                %{name}-doc.patch
 URL:           http://elektra.sourceforge.net/
 BuildRequires: libxml2-devel
 BuildRequires: libxslt-progs
@@ -104,6 +105,7 @@ Ten pakiet zawiera wersj
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 
 %build
 %{__make} all \
@@ -118,7 +120,9 @@ install -d $RPM_BUILD_ROOT/etc/sysconfig
         LIB=/%{_lib} \
         DESTDIR=$RPM_BUILD_ROOT
 
-cp -a $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-devel elektra-api
+rm -rf elektra-api
+cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-devel elektra-api
+rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}{,-devel}
 
 echo 'RUN="no"' > $RPM_BUILD_ROOT/etc/sysconfig/elektra
 
@@ -144,7 +148,7 @@ kdb set -t dir system/sw || :
 
 %files devel
 %defattr(644,root,root,755)
-%doc bindings elektra-api
+%doc bindings elektra-api/*
 %{_includedir}/*
 %{_mandir}/man3/*
 
This page took 0.080971 seconds and 4 git commands to generate.