SPECS: dar.spec - keep dar documentation in one place in separate ...

twittner twittner at pld-linux.org
Wed Sep 20 20:41:01 CEST 2006


Author: twittner                     Date: Wed Sep 20 18:41:01 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- keep dar documentation in one place in separate `dar-doc' package
  to avoid breaking html links
- docs files duplication fixed

---- Files affected:
SPECS:
   dar.spec (1.56 -> 1.57) 

---- Diffs:

================================================================
Index: SPECS/dar.spec
diff -u SPECS/dar.spec:1.56 SPECS/dar.spec:1.57
--- SPECS/dar.spec:1.56	Tue Sep 19 19:02:39 2006
+++ SPECS/dar.spec	Wed Sep 20 20:40:56 2006
@@ -227,6 +227,18 @@
 %description libs-static -l pl
 Statyczna wersja biblioteki dar.
 
+%package doc
+Summary:	dar - documentation
+Summary(pl):	dar - dokumentacja
+Group:		Documentation
+Requires:	%{name} = %{version}-%{release}
+
+%description doc
+Dar ducumentation.
+
+%description -l pl
+Dokumentacja dla dar.
+
 %prep
 %setup -q
 %patch0 -p1
@@ -254,10 +266,7 @@
 
 %{?with_static:mv -f $RPM_BUILD_ROOT{%{_bindir},/bin}/dar_static}
 
-find $RPM_BUILD_DIR/%{name}-%{version}/doc -name "Makefile*" -o -name "Doxyfile*" -o -name dar-catalog-1.0.dtd | xargs rm -f
-mkdir -p devel-doc
-mv -f doc/html/* devel-doc
-rm -rf doc/html
+ln -sf %{_datadir}/%{name} misc/doc
 
 %find_lang %{name}
 
@@ -269,9 +278,8 @@
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc ChangeLog NEWS README THANKS TODO doc
+%doc ChangeLog NEWS README THANKS TODO misc/doc
 %attr(755,root,root) %{_bindir}/*
-%{_datadir}/%{name}
 %{_mandir}/man1/*
 
 %files libs
@@ -280,7 +288,6 @@
 
 %files devel
 %defattr(644,root,root,755)
-%doc devel-doc/*
 %attr(755,root,root) %{_libdir}/libdar64.so
 %{_libdir}/libdar64.la
 %{_includedir}/dar
@@ -298,12 +305,21 @@
 %{_libdir}/libdar64.a
 %endif
 
+%files doc
+%defattr(644,root,root,755)
+%{_datadir}/%{name}
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.57  2006/09/20 18:40:56  twittner
+- keep dar documentation in one place in separate `dar-doc' package
+  to avoid breaking html links
+- docs files duplication fixed
+
 Revision 1.56  2006/09/19 17:02:39  twittner
 - up to 2.3.1
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/dar.spec?r1=1.56&r2=1.57&f=u



More information about the pld-cvs-commit mailing list