]> git.pld-linux.org Git - packages/hlint.git/commitdiff
- rel 2 auto/th/hlint-1_8_15-2
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 22 Oct 2011 09:47:43 +0000 (09:47 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- fix docs packaging

Changed files:
    hlint.spec -> 1.7

hlint.spec

index 525a0c75a5cd8b89518ec74151e9c05a55bdbda8..a14a59ce45dd421188569abe91264f46ab2d7ee8 100644 (file)
@@ -1,7 +1,7 @@
 Summary:       Haskell Source code suggestions
 Name:          hlint
 Version:       1.8.15
-Release:       1
+Release:       2
 License:       GPL
 Group:         Development/Languages
 Source0:       http://hackage.haskell.org/packages/archive/hlint/%{version}/%{name}-%{version}.tar.gz
@@ -16,25 +16,18 @@ BuildRequires:      ghc-uniplate
 BuildRequires: hscolour
 BuildRequires: rpmbuild(macros) >= 1.608
 %requires_eq   ghc
+Obsoletes:     hlint-doc
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 # debuginfo is not useful for ghc
 %define                _enable_debug_packages  0
 
+# don't compress haddoc files
+%define                _noautocompressdoc      *.haddock
+
 %description
 HLint gives suggestions on how to improve your source code.
 
-%package doc
-Summary:       HTML documentation for %{pkgname}
-Summary(pl.UTF-8):     Dokumentacja w formacie HTML dla %{pkgname}
-Group:         Documentation
-
-%description doc
-HTML documentation for %{pkgname}.
-
-%description doc -l pl.UTF-8
-Dokumentacja w formacie HTML dla %{pkgname}.
-
 %prep
 %setup -q
 %patch0 -p1
@@ -57,7 +50,7 @@ runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT
 
 # work around automatic haddock docs installation
 rm -rf %{name}-%{version}-doc
-cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html %{name}-%{version}-doc
+cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{name}-%{version}-doc
 
 runhaskell Setup.hs register \
        --gen-pkg-config=$RPM_BUILD_ROOT/%{_libdir}/%{ghcdir}/package.conf.d/%{name}.conf
@@ -73,11 +66,8 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%doc %{name}-%{version}-doc/*
 %attr(755,root,root) %{_bindir}/hlint
 %{_libdir}/%{ghcdir}/package.conf.d/%{name}.conf
 %{_libdir}/%{ghcdir}/%{name}-%{version}
 %{_datadir}/%{name}-%{version}
-
-%files doc
-%defattr(644,root,root,755)
-%doc %{name}-%{version}-doc/*
This page took 0.107536 seconds and 4 git commands to generate.