Build and install ruby-satsolver documentation
authorKlaus Kämpf <kkaempf@suse.de>
Mon, 9 Mar 2009 20:14:23 +0000 (21:14 +0100)
committerKlaus Kämpf <kkaempf@suse.de>
Mon, 9 Mar 2009 20:14:23 +0000 (21:14 +0100)
This creates rdoc-style html documentation for ruby-satsolver
below /usr/share/doc/packages/ruby-satsolver/html

package/libsatsolver.spec.in

index 1162107..6157f09 100644 (file)
@@ -26,6 +26,9 @@ BuildRequires:  libexpat-devel
 %if 0%{?suse_version} < 1100
 BuildRequires:  graphviz
 %endif
+%if 0%{?suse_version} > 1020
+BuildRequires:  fdupes
+%endif
 %else
 BuildRequires:  expat-devel
 %endif
@@ -138,6 +141,11 @@ export NO_BRP_STRIP_DEBUG=true
 #pushd doc/autodoc
 #make install
 #popd
+%if 0%{?suse_version} > 1020
+# create symlinks for documentation
+#%fdupes -s %{buildroot}%{_docdir}/ruby-satsolver
+%fdupes -s bindings/ruby/html
+%endif
 
 %clean
 rm -rf "$RPM_BUILD_ROOT"
@@ -176,6 +184,7 @@ rm -rf "$RPM_BUILD_ROOT"
 %if 0%{?mandriva_version}
 %{ruby_sitearchdir}/satsolver.so
 %endif
+%doc bindings/ruby/html
 
 %files -n python-satsolver
 %defattr(-,root,root,-)