3 %bcond_without prof # profiling library
5 %define pkgname hxt-regex-xmlschema
6 Summary: A regular expression library for W3C XML Schema regular expressions
11 Group: Development/Languages
12 #Source0Download: http://hackage.haskell.org/package/hxt-regex-xmlschema
13 Source0: http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
14 # Source0-md5: 7b875bedc63771bad57e42164387c4db
15 URL: http://hackage.haskell.org/package/hxt-regex-xmlschema
16 BuildRequires: ghc >= 6.12.3
17 BuildRequires: ghc-hxt-charproperties
19 BuildRequires: ghc-prof
20 BuildRequires: ghc-hxt-charproperties-prof
22 BuildRequires: rpmbuild(macros) >= 1.608
24 Requires(post,postun): /usr/bin/ghc-pkg
25 Requires: ghc-hxt-charproperties
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 This library supports full W3C XML Schema regular expressions
36 inclusive all Unicode character sets and blocks. The complete grammar
37 can be found under http://www.w3.org/TR/xmlschema11-2/#regexs. It is
38 implemented by the technique of derivations of regular expressions.
41 Summary: Profiling %{pkgname} library for GHC
42 Summary(pl.UTF-8): Biblioteka profilująca %{pkgname} dla GHC
43 Group: Development/Libraries
44 Requires: %{name} = %{version}-%{release}
45 Requires: ghc-hxt-charproperties-prof
48 Profiling %{pkgname} library for GHC. Should be installed when
49 GHC's profiling subsystem is needed.
51 %description prof -l pl.UTF-8
52 Biblioteka profilująca %{pkgname} dla GHC. Powinna być zainstalowana
53 kiedy potrzebujemy systemu profilującego z GHC.
56 %setup -q -n %{pkgname}-%{version}
59 runhaskell Setup.hs configure -v2 \
60 %{?with_prof:--enable-library-profiling} \
63 --libexecdir=%{_libexecdir} \
64 --docdir=%{_docdir}/%{name}-%{version}
66 runhaskell Setup.hs build
67 runhaskell Setup.hs haddock --executables
70 rm -rf $RPM_BUILD_ROOT
71 install -d $RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d
73 runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT
75 # work around automatic haddock docs installation
76 %{__rm} -rf %{name}-%{version}-doc
77 cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{name}-%{version}-doc
78 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
80 runhaskell Setup.hs register \
81 --gen-pkg-config=$RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
84 rm -rf $RPM_BUILD_ROOT
93 %defattr(644,root,root,755)
94 %doc %{name}-%{version}-doc/*
95 %{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
96 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
97 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.so
98 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.a
99 %exclude %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*_p.a
101 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text
102 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Regex
103 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Regex/Glob
104 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Regex/Glob/*.hi
105 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Regex/Glob/*.dyn_hi
106 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Regex/Glob/Generic
107 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Regex/Glob/Generic/*.hi
108 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Regex/Glob/Generic/*.dyn_hi
109 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Regex/XMLSchema
110 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Regex/XMLSchema/*.hi
111 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Regex/XMLSchema/*.dyn_hi
112 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Regex/XMLSchema/Generic
113 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Regex/XMLSchema/Generic/*.hi
114 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Regex/XMLSchema/Generic/*.dyn_hi
118 %defattr(644,root,root,755)
119 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*_p.a
120 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Regex/Glob/*.p_hi
121 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Regex/Glob/Generic/*.p_hi
122 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Regex/XMLSchema/*.p_hi
123 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Regex/XMLSchema/Generic/*.p_hi