From: Klaus Kämpf Date: Mon, 9 Mar 2009 20:14:23 +0000 (+0100) Subject: Build and install ruby-satsolver documentation X-Git-Tag: BASE-SuSE-Code-12_1-Branch~304^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c202ef6e3ea25cbae662aab985c2af1c49c2f5d;p=thirdparty%2Flibsolv.git Build and install ruby-satsolver documentation This creates rdoc-style html documentation for ruby-satsolver below /usr/share/doc/packages/ruby-satsolver/html --- diff --git a/package/libsatsolver.spec.in b/package/libsatsolver.spec.in index 11621071..6157f097 100644 --- a/package/libsatsolver.spec.in +++ b/package/libsatsolver.spec.in @@ -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,-)