1 %define pkgname gtksourceview2
2 Summary: Binding to the GtkSourceView library
7 Group: Development/Languages
8 Source0: http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
9 # Source0-md5: f172f74be28d5a0257780c05e85e4fcf
10 URL: http://hackage.haskell.org/package/gtksourceview2/
11 BuildRequires: ghc >= 6.12.3
12 BuildRequires: ghc-prof
13 BuildRequires: ghc-glib
14 BuildRequires: ghc-gtk
16 BuildRequires: rpmbuild(macros) >= 1.608
18 Requires(post,postun): /usr/bin/ghc-pkg
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 # debuginfo is not useful for ghc
22 %define _enable_debug_packages 0
24 # don't compress haddoc files
25 %define _noautocompressdoc *.haddock
28 GtkSourceView is a text widget that extends the standard GTK+ 2.x text
29 widget GtkTextView. It improves GtkTextView by implementing syntax
30 highlighting and other features typical of a source editor.
33 Summary: Profiling %{pkgname} library for GHC
34 Summary(pl.UTF-8): Biblioteka profilująca %{pkgname} dla GHC.
35 Group: Development/Libraries
36 Requires: %{name} = %{version}-%{release}
39 Profiling %{pkgname} library for GHC. Should be installed when
40 GHC's profiling subsystem is needed.
42 %description prof -l pl.UTF-8
43 Biblioteka profilująca %{pkgname} dla GHC. Powinna być zainstalowana
44 kiedy potrzebujemy systemu profilującego z GHC.
47 %setup -q -n %{pkgname}-%{version}
50 runhaskell Setup.hs configure -v2 --enable-library-profiling \
53 --libexecdir=%{_libexecdir} \
54 --docdir=%{_docdir}/%{name}-%{version}
56 runhaskell Setup.hs build
57 runhaskell Setup.hs haddock --executables
60 rm -rf $RPM_BUILD_ROOT
61 install -d $RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d
63 runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT
65 # work around automatic haddock docs installation
66 rm -rf %{name}-%{version}-doc
67 cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{name}-%{version}-doc
69 runhaskell Setup.hs register \
70 --gen-pkg-config=$RPM_BUILD_ROOT/%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
73 rm -rf $RPM_BUILD_ROOT
82 %defattr(644,root,root,755)
84 %doc %{name}-%{version}-doc/*
85 %{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
86 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
87 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.o
88 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.a
89 %exclude %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*_p.a
91 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/PACKAGE
92 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/PACKAGE/*.hi
95 %defattr(644,root,root,755)
96 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*_p.a
97 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/PACKAGE/*.p_hi