From 8d10bde1f86f82841ce23fb71ed8c7cea9e6d28a Mon Sep 17 00:00:00 2001 From: panne Date: Sat, 5 Jun 2004 16:53:34 +0000 Subject: [haddock @ 2004-06-05 16:53:34 by panne] Misc. rpm spec file cleanup, including: * make BuildRoot handling more consistent * added default file attributes * consistent defines and tags --- haddock.spec | 56 ++++++++++++++++---------------------------------------- 1 file changed, 16 insertions(+), 40 deletions(-) (limited to 'haddock.spec') diff --git a/haddock.spec b/haddock.spec index ff1ca7a5..b16a2fe0 100644 --- a/haddock.spec +++ b/haddock.spec @@ -1,6 +1,6 @@ # This is an RPM spec file that specifies how to package # haddock for Red Hat Linux and, possibly, similar systems. -# It has been tested on Red Hat Linux 7.2. +# It has been tested on Red Hat Linux 7.2 and SuSE Linux 9.1. # # If this file is part of a tarball, you can build RPMs directly from # the tarball by using the following command: @@ -16,22 +16,21 @@ # Haskell mode, update the version definition below to match the # version label of your release tarball. -%define name haddock +%define name haddock %define version 0.6 %define release 1 -Summary: Haddock documentation tool for annotated Haskell source code -Name: %{name} -Version: %{version} -Release: %{release} -License: BSD-like -Group: Development/Tools -Source: http://www.haskell.org/haddock/haddock-%{version}-src.tar.gz -URL: http://www.haskell.org/haddock/ -Packager: Tom Moertel -BuildRoot: %{_tmppath}/%{name}-%{version}-root -Prefix: %{_prefix} -#BuildRequires: ghc +Name: %{name} +Version: %{version} +Release: %{release} +License: BSD-like +Group: Development/Languages/Haskell +URL: http://www.haskell.org/haddock/ +Source: http://www.haskell.org/haddock/haddock-%{version}-src.tar.gz +Packager: Tom Moertel +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Prefix: %{_prefix} +Summary: A documentation tool for annotated Haskell source code %description Haddock is a tool for automatically generating documentation from @@ -58,15 +57,13 @@ should all be ok). test -f configure || autoreconf ./configure --prefix=%{prefix} make -(cd haddock/doc ; make dvi ps html ; gzip -f -9 *.dvi *.ps ) +( cd haddock/doc ; make dvi ps html ; gzip -f -9 *.dvi *.ps ) %install -rm -rf ${RPM_BUILD_ROOT} make prefix=${RPM_BUILD_ROOT}%{prefix} install %clean rm -rf ${RPM_BUILD_ROOT} -# rm -rf ${RPM_BUILD_DIR}/haddock-%{version} %files %defattr(-,root,root) @@ -74,28 +71,7 @@ rm -rf ${RPM_BUILD_ROOT} %doc haddock/doc/haddock %doc haddock/doc/haddock.dvi.gz %doc haddock/doc/haddock.ps.gz -%{prefix}/share/haddock-%{version} -%{prefix}/lib/haddock-%{version} %{prefix}/bin/haddock %{prefix}/bin/haddock-%{version} - -%changelog - -* Sat Oct 11 2003 Sven Panne -- Include architecture-independent files in file list - -* Tue Aug 26 2003 Sven Panne -- Use autoreconf instead of autoconf - -* Mon Jul 28 2003 Sven Panne -- Updated to version 0.5 -- Automagically generate configure if it is not there - -* Tue Jul 23 2002 Simon Marlow -- Updated to version 0.4 - -* Sun Jun 23 2002 Sven Panne -- Cleaned up build root handling and added more docs - -* Wed May 01 2002 Tom Moertel -- Created spec file +%{prefix}/lib/haddock-%{version} +%{prefix}/share/haddock-%{version} -- cgit v1.2.3