3 %bcond_without prof # profiling library
5 %define pkgname blaze-markup
6 Summary: A blazingly fast markup combinator library for Haskell
7 Summary(pl.UTF-8): Biblioteka olśniewająco szybkiego kombinatora dodającego znaczniki
12 Group: Development/Languages
13 #Source0Download: http://hackage.haskell.org/package/blaze-markup
14 Source0: http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
15 # Source0-md5: 75ad355f7d3c32881997b4164ac95e3b
16 URL: http://hackage.haskell.org/package/blaze-markup
17 BuildRequires: ghc >= 6.12.3
18 BuildRequires: ghc-base >= 4
19 BuildRequires: ghc-base < 5
20 BuildRequires: ghc-blaze-builder >= 0.3
21 BuildRequires: ghc-blaze-builder < 0.5
22 BuildRequires: ghc-bytestring >= 0.9
23 BuildRequires: ghc-bytestring < 0.11
24 BuildRequires: ghc-text >= 0.10
25 BuildRequires: ghc-text < 1.3
27 BuildRequires: ghc-prof
28 BuildRequires: ghc-base-prof >= 4
29 BuildRequires: ghc-base-prof < 5
30 BuildRequires: ghc-blaze-builder-prof >= 0.3
31 BuildRequires: ghc-blaze-builder-prof < 0.5
32 BuildRequires: ghc-bytestring-prof >= 0.9
33 BuildRequires: ghc-bytestring-prof < 0.11
34 BuildRequires: ghc-text-prof >= 0.10
35 BuildRequires: ghc-text-prof < 1.3
37 BuildRequires: rpmbuild(macros) >= 1.608
38 Requires(post,postun): /usr/bin/ghc-pkg
40 Requires: ghc-base >= 4
41 Requires: ghc-base < 5
42 Requires: ghc-blaze-builder >= 0.3
43 Requires: ghc-blaze-builder < 0.5
44 Requires: ghc-bytestring >= 0.9
45 Requires: ghc-bytestring < 0.11
46 Requires: ghc-text >= 0.10
47 Requires: ghc-text < 1.3
48 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50 # debuginfo is not useful for ghc
51 %define _enable_debug_packages 0
53 # don't compress haddock files
54 %define _noautocompressdoc *.haddock
57 Core modules of a blazingly fast markup combinator library for the
58 Haskell programming language.
60 %description -l pl.UTF-8
61 Podstawowe moduły biblioteki olśniewająco szybkiego kombinatora
62 dodającego znaczniki dla języka programowania Haskell.
65 Summary: Profiling %{pkgname} library for GHC
66 Summary(pl.UTF-8): Biblioteka profilująca %{pkgname} dla GHC
67 Group: Development/Libraries
68 Requires: %{name} = %{version}-%{release}
69 Requires: ghc-base-prof >= 4
70 Requires: ghc-base-prof < 5
71 Requires: ghc-blaze-builder-prof >= 0.3
72 Requires: ghc-blaze-builder-prof < 0.5
73 Requires: ghc-bytestring-prof >= 0.9
74 Requires: ghc-bytestring-prof < 0.11
75 Requires: ghc-text-prof >= 0.10
76 Requires: ghc-text-prof < 1.3
79 Profiling %{pkgname} library for GHC. Should be installed when
80 GHC's profiling subsystem is needed.
82 %description prof -l pl.UTF-8
83 Biblioteka profilująca %{pkgname} dla GHC. Powinna być zainstalowana
84 kiedy potrzebujemy systemu profilującego z GHC.
87 Summary: HTML documentation for %{pkgname} ghc package
88 Summary(pl.UTF-8): Dokumentacja w formacie HTML dla pakietu ghc %{pkgname}
92 HTML documentation for %{pkgname} ghc package.
94 %description doc -l pl.UTF-8
95 Dokumentacja w formacie HTML dla pakietu ghc %{pkgname}.
98 %setup -q -n %{pkgname}-%{version}
101 runhaskell Setup.hs configure -v2 \
102 %{?with_prof:--enable-library-profiling} \
103 --prefix=%{_prefix} \
104 --libdir=%{_libdir} \
105 --libexecdir=%{_libexecdir} \
106 --docdir=%{_docdir}/%{name}-%{version}
108 runhaskell Setup.hs build
109 runhaskell Setup.hs haddock --executables
112 rm -rf $RPM_BUILD_ROOT
113 install -d $RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d
115 runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT
117 # work around automatic haddock docs installation
118 %{__rm} -rf %{name}-%{version}-doc
119 cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{name}-%{version}-doc
120 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
122 runhaskell Setup.hs register \
123 --gen-pkg-config=$RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
126 rm -rf $RPM_BUILD_ROOT
135 %defattr(644,root,root,755)
137 %{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
138 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
139 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSblaze-markup-%{version}-*.so
140 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSblaze-markup-%{version}-*.a
141 %exclude %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSblaze-markup-%{version}-*_p.a
142 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text
143 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Blaze.hi
144 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Blaze.dyn_hi
145 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Blaze
146 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Blaze/*.hi
147 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Blaze/*.dyn_hi
148 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Blaze/Renderer
149 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Blaze/Renderer/*.hi
150 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Blaze/Renderer/*.dyn_hi
154 %defattr(644,root,root,755)
155 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSblaze-markup-%{version}-*_p.a
156 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Blaze.p_hi
157 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Blaze/*.p_hi
158 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Blaze/Renderer/*.p_hi
162 %defattr(644,root,root,755)
163 %doc %{name}-%{version}-doc/*