3 %bcond_without prof # profiling library
6 Summary: HTTP cookie parsing and rendering
11 Group: Development/Languages
12 #Source0Download: http://hackage.haskell.org/package/cookie
13 Source0: http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
14 # Source0-md5: a3739514859a70325882534daeeddbe2
15 URL: http://hackage.haskell.org/package/cookie
16 BuildRequires: ghc >= 6.12.3
17 BuildRequires: ghc-data-default-class
19 BuildRequires: ghc-prof
20 BuildRequires: ghc-data-default-class-prof
22 BuildRequires: rpmbuild(macros) >= 1.608
24 Requires(post,postun): /usr/bin/ghc-pkg
25 Requires: ghc-data-default-class
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 # debuginfo is not useful for ghc
29 %define _enable_debug_packages 0
31 # don't compress haddock files
32 %define _noautocompressdoc *.haddock
35 HTTP cookie parsing and rendering.
38 Summary: Profiling %{pkgname} library for GHC
39 Summary(pl.UTF-8): Biblioteka profilująca %{pkgname} dla GHC
40 Group: Development/Libraries
41 Requires: %{name} = %{version}-%{release}
42 Requires: ghc-data-default-class-prof
45 Profiling %{pkgname} library for GHC. Should be installed when
46 GHC's profiling subsystem is needed.
48 %description prof -l pl.UTF-8
49 Biblioteka profilująca %{pkgname} dla GHC. Powinna być zainstalowana
50 kiedy potrzebujemy systemu profilującego z GHC.
53 %setup -q -n %{pkgname}-%{version}
56 runhaskell Setup.lhs configure -v2 \
57 %{?with_prof:--enable-library-profiling} \
60 --libexecdir=%{_libexecdir} \
61 --docdir=%{_docdir}/%{name}-%{version}
63 runhaskell Setup.lhs build
64 runhaskell Setup.lhs haddock --executables
67 rm -rf $RPM_BUILD_ROOT
68 install -d $RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d
70 runhaskell Setup.lhs copy --destdir=$RPM_BUILD_ROOT
72 # work around automatic haddock docs installation
73 %{__rm} -rf %{name}-%{version}-doc
74 cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{name}-%{version}-doc
75 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
77 runhaskell Setup.lhs register \
78 --gen-pkg-config=$RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
81 rm -rf $RPM_BUILD_ROOT
90 %defattr(644,root,root,755)
91 %doc ChangeLog.md README.md %{name}-%{version}-doc/*
92 %{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
93 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
94 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.so
95 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.a
96 %exclude %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*_p.a
98 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Web
99 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Web/*.hi
100 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Web/*.dyn_hi
104 %defattr(644,root,root,755)
105 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*_p.a
106 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Web/*.p_hi