1 %define pkgname PACKAGE_NAME
6 License: - (enter GPL/GPL v2/GPL v3/LGPL/BSD/BSD-like/other license name here)
7 Group: Development/Languages
8 Source0: http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
10 URL: http://hackage.haskell.org/package/PACKAGE_NAME/
11 BuildRequires: ghc >= 6.12.3
12 #BuildRequires: ghc-OTHERMODULE
13 BuildRequires: rpmbuild(macros) >= 1.608
15 #Requires: ghc-OTHERMODULE
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 # debuginfo is not useful for ghc
19 %define _enable_debug_packages 0
21 # don't compress haddoc files
22 %define _noautocompressdoc *.haddock
27 Summary: Profiling %{pkgname} library for GHC
28 Summary(pl.UTF-8): Biblioteka profilująca %{pkgname} dla GHC.
29 Group: Development/Libraries
30 Requires: %{name} = %{version}-%{release}
33 Profiling %{pkgname} library for GHC. Should be installed when
34 GHC's profiling subsystem is needed.
36 %description prof -l pl.UTF-8
37 Biblioteka profilująca %{pkgname} dla GHC. Powinna być zainstalowana
38 kiedy potrzebujemy systemu profilującego z GHC.
41 %setup -q -n %{pkgname}-%{version}
44 runhaskell Setup.hs configure -v2 --enable-library-profiling \
47 --libexecdir=%{_libexecdir} \
48 --docdir=%{_docdir}/%{name}-%{version}
50 runhaskell Setup.hs build
51 runhaskell Setup.hs haddock --executables
54 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d
57 runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT
59 # work around automatic haddock docs installation
60 rm -rf %{name}-%{version}-doc
61 cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{name}-%{version}-doc
63 runhaskell Setup.hs register \
64 --gen-pkg-config=$RPM_BUILD_ROOT/%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
67 rm -rf $RPM_BUILD_ROOT
76 %defattr(644,root,root,755)
78 %doc %{name}-%{version}-doc/*
79 %{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
80 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
81 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.o
82 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.a
83 %exclude %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*_p.a
85 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/PACKAGE
86 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/PACKAGE/*.hi
89 %defattr(644,root,root,755)
90 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*_p.a
91 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/PACKAGE/*.p_hi