the ghc-doc packages contains the LICENSES files even without docs built

OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc?expand=0&rev=55
This commit is contained in:
Herbert Graeber 2008-08-19 19:10:42 +00:00 committed by Git OBS Bridge
parent e137c053e7
commit bc61b5da84

View File

@ -190,10 +190,10 @@ make -C docs/storage-mgt ps
%if %check_haddock_ghc %if %check_haddock_ghc
make DESTDIR=%{buildroot} docdir=%{_docdir}/%{name}-doc HADDOCK_DOCS=YES install install-docs make DESTDIR=%{buildroot} docdir=%{_docdir}/%{name}-doc HADDOCK_DOCS=YES install install-docs
mkdir html-docs mkdir html-docs
cp -a %{buildroot}%{_docdir}/%{name}-doc/{index.html,libraries} html-docs
%else %else
make DESTDIR=%{buildroot} docdir=%{_docdir}/%{name}-doc install make DESTDIR=%{buildroot} docdir=%{_docdir}/%{name}-doc install
%endif %endif
cp -a %{buildroot}%{_docdir}/%{name}-doc/{index.html,libraries} html-docs
#mv %{buildroot}%{_prefix}/bin/hsc2hs %{buildroot}%{_prefix}/bin/hsc2hs-ghc #mv %{buildroot}%{_prefix}/bin/hsc2hs %{buildroot}%{_prefix}/bin/hsc2hs-ghc
dir=`pwd` dir=`pwd`
@ -250,18 +250,21 @@ fi
%files doc %files doc
%defattr(-,root,root) %defattr(-,root,root)
%doc html-docs/*
%if %check_haddock_ghc %if %check_haddock_ghc
%doc docs/comm %doc docs/comm
%doc docs/docbook-cheat-sheet/docbook-cheat-sheet %doc docs/docbook-cheat-sheet/docbook-cheat-sheet
%doc docs/users_guide/users_guide %doc docs/users_guide/users_guide
%doc libraries/Cabal/doc/Cabal %doc libraries/Cabal/doc/Cabal
%doc html-docs/*
%doc docs/storage-mgt/ldv.ps %doc docs/storage-mgt/ldv.ps
%doc docs/storage-mgt/rp.ps %doc docs/storage-mgt/rp.ps
%doc docs/storage-mgt/sm.ps %doc docs/storage-mgt/sm.ps
%endif %endif
%changelog %changelog
* Tue Aug 19 2008 Herbert Graeber <herbert@links2linux.de> 6.8.3
- the ghc-doc packages contains the LICENSES files even without docs built
* Mon Aug 18 2008 Herbert Graeber <herbert@links2linux.de> 6.8.3 * Mon Aug 18 2008 Herbert Graeber <herbert@links2linux.de> 6.8.3
- add provides for all libraries included - add provides for all libraries included
- create a doc package even when docs cannot be created - create a doc package even when docs cannot be created