]> git.pld-linux.org Git - packages/tmda.git/commitdiff
- fixed %%docs; manual construction needed
authorankry <ankry@pld-linux.org>
Wed, 25 Sep 2002 14:40:46 +0000 (14:40 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    tmda.spec -> 1.5

tmda.spec

index 1fe0392a2f1d272d7ef9c4c3e4f5d04ebffdf25b..f3e3c9d2f374492ef4f07cdcbfc59d23d908c20e 100644 (file)
--- a/tmda.spec
+++ b/tmda.spec
@@ -37,6 +37,7 @@ python ./compileall
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/tmda,%{py_libdir}/TMDA}
+install -d $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/htdocs
 
 install bin/tmda-* $RPM_BUILD_ROOT%{_bindir}
 install templates/*.txt $RPM_BUILD_ROOT%{_datadir}/tmda
@@ -45,13 +46,18 @@ install contrib/{collectaddys,printcdb,printdbm} $RPM_BUILD_ROOT%{_bindir}
 
 %py_ocomp $RPM_BUILD_ROOT%{py_libdir}
 %py_comp $RPM_BUILD_ROOT%{py_libdir}
+cp -f htdocs/{*.html,README} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/htdocs
+cp -f ChangeLog CRYPTO INSTALL README THANKS UPGRADE contrib/sample* \
+       $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+# compress %%doc manually; automation does not work in this case
+gzip -9 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/{ChangeLog,CRYPTO,INSTALL,README,THANKS,UPGRADE,htdocs/README}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc ChangeLog CRYPTO INSTALL README THANKS UPGRADE contrib/sample* htdocs/{README,*.html}
+%doc %{_docdir}/%{name}-%{version}
 %attr(755,root,root) %{_bindir}/*
 %dir %{py_libdir}/TMDA
 %{py_libdir}/TMDA/*.py[co]
This page took 0.079736 seconds and 4 git commands to generate.