ghc/cabal-bin-template.spec.in
Jens Petersen ad8913e5ff - update macros.ghc to latest proposed revised packaging guidelines:
- use runghc
- drop trivial cabal_build and cabal_haddock macros
- ghc_register_pkg and ghc_unregister_pkg replace ghc_preinst_script,
    ghc_postinst_script, ghc_preun_script, and ghc_postun_script
- lib templates' prof subpackage requires main library again
- make cabal2spec work on .cabal files too, and read and check name and
    version directly from .cabal file
- ghc-prof does not need to own libraries/ dirs owned by main package
2008-12-01 05:46:36 +00:00

49 lines
871 B
RPMSpec

# ghc does not emit debug information
%define debug_package %{nil}
Name: @PACKAGE@
Version: @VERSION@
Release: 1%{?dist}
Summary: *FIXME*
Group: *FIXME*
License: BSD?
URL: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/%{name}
Source0: http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
ExclusiveArch: i386 x86_64 ppc
BuildRequires: ghc
%description
*FIXME*
%prep
%setup -q
%build
%cabal_configure
%cabal build
%install
rm -rf $RPM_BUILD_ROOT
%cabal_install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE
%{_bindir}/%{name}
%changelog
* @DATE@ @PACKAGER@ <@EMAIL@> - @VERSION@-1
- initial packaging for Fedora created by cabal2spec