hugs98.spec patch

Jens Petersen petersen at haskell.org
Wed Nov 26 17:41:01 EST 2003


Here's a patch with a few minor improvements and updates for
Nov2003 of the Hugs98 spec file.

Cheers, -Jens


2003-11-26  Jens Petersen  <petersen at haskell.org>

	* hugs98.spec (Prefix): No longer defined.
	(%prep): %setup quietly.
	(%build): Use %_prefix
	(%install): Remove old buildroot.   Ditto.  Set mandir with %_mandir.
	No longer need to compress manual by hand.
	(%files): Simplify and broaden file list.

diff -u hugs98.spec~ hugs98.spec
--- hugs98.spec~	2003-11-26 17:34:11.000000000 +0900
+++ hugs98.spec	2003-11-26 17:34:11.000000000 +0900
@@ -3,5 +3,4 @@
 BuildRoot:    %{_tmppath}/%{name}-buildroot
-Prefix:       %{_prefix}
 Provides:     haskell
 Requires:     readline
 
@@ -21,38 +19,25 @@
 Hugs 98 is an interpreter for Haskell, a lazy functional programming language.
 
 %prep
-%setup -n %{name}-%{version}
+%setup -q
 
 %build
 cd src/unix
-./configure --prefix=%{prefix} --with-fptools=../../fptools --enable-ffi
+./configure --prefix=%{_prefix} --with-fptools=../../fptools --enable-ffi
 cd ..
 make
 
 %install
+rm -rf $RPM_BUILD_ROOT
+
 cd src
-make prefix=$RPM_BUILD_ROOT%{prefix} HUGSDIR=$RPM_BUILD_ROOT%{prefix}/lib/hugs install
-# make prefix=$RPM_BUILD_ROOT%{prefix} HUGSDIR=$RPM_BUILD_ROOT%{prefix}/lib/hugs install_ffi install_libraries_ffi
-gzip -f -9 $RPM_BUILD_ROOT%{prefix}/man/man1/hugs.1
+make prefix=$RPM_BUILD_ROOT%{_prefix} mandir=$RPM_BUILD_ROOT%{_mandir} HUGSDIR=$RPM_BUILD_ROOT%{_libdir}/hugs install
+# make prefix=$RPM_BUILD_ROOT%{_prefix} HUGSDIR=$RPM_BUILD_ROOT%{_libdir}/hugs install_ffi install_libraries_ffi
+#gzip -f -9 $RPM_BUILD_ROOT%{_mandir}/man1/hugs.1
 
 %files
 %defattr(-,root,root)
-%doc License
-%doc Readme
-%doc Credits
-%doc docs/server.html
-%doc docs/observe-notes.txt
-%doc docs/mdo-notes.txt
-%doc docs/ffi-notes.txt
-%doc docs/zipcomp-notes.txt
-%doc docs/winhugs-notes.txt
-%doc docs/machugs-notes.txt
-%{prefix}/man/man1/hugs.1.gz
-%{prefix}/bin/hugs
-%{prefix}/bin/runhugs
-%{prefix}/bin/ffihugs
-%{prefix}/lib/hugs/demos
-%{prefix}/lib/hugs/include
-%{prefix}/lib/hugs/lib
-%{prefix}/lib/hugs/libraries
-%{prefix}/lib/hugs/oldlib
+%doc License Readme Credits
+%{_bindir}/*
+%{_libdir}/hugs
+%{_mandir}/man1/*


More information about the Hugs-Users mailing list