diff --git a/.cvsignore b/.cvsignore index e69de29..104b624 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +cabal-install-0.6.0.tar.gz diff --git a/cabal-install.spec b/cabal-install.spec new file mode 100644 index 0000000..92a23eb --- /dev/null +++ b/cabal-install.spec @@ -0,0 +1,66 @@ +# ghc does not emit debug information +%define debug_package %{nil} + +Name: cabal-install +Version: 0.6.0 +Release: 3%{?dist} +Summary: Haskell package tool + +Group: Development/Tools +License: BSD +URL: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/%{name} +Source0: http://hackage.haskell.org/archive/hackage-scripts/package/%{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +# ghc has only been bootstrapped on the following archs: +ExclusiveArch: i386 x86_64 ppc + +BuildRequires: ghc, ghc-zlib-devel, ghc-HTTP-devel +Requires: ghc + +%description +The 'cabal' command-line program simplifies the process of managing Haskell +packages by automating fetching, configuration, compilation and +installation of Haskell libraries and programs from Hackage. + + +%prep +%setup -q + + +%build +%cabal_configure +%cabal build + + +%install +rm -rf $RPM_BUILD_ROOT +%cabal_install + +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d +cp -p bash-completion/cabal $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d + +rm ${RPM_BUILD_ROOT}/%{_docdir}/%{name}-%{version}/LICENSE + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc LICENSE README +%{_bindir}/cabal +%{_sysconfdir}/bash_completion.d + + +%changelog +* Mon Feb 9 2009 Jens Petersen - 0.6.0-3 +- fix source url + +* Wed Jan 7 2009 Jens Petersen - 0.6.0-2 +- add bash completion file +- update cabal build macro + +* Tue Nov 11 2008 Jens Petersen - 0.6.0-1 +- initial package for Fedora diff --git a/import.log b/import.log new file mode 100644 index 0000000..9c53cc2 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +cabal-install-0_6_0-3_fc10:HEAD:cabal-install-0.6.0-3.fc10.src.rpm:1234517069 diff --git a/sources b/sources index e69de29..c535793 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +ddce0bda54a99d816091e77ab6e4b39f cabal-install-0.6.0.tar.gz