3 %bcond_without prof # profiling library
6 Summary: Data structure for working with Jupyter notebooks
11 Group: Development/Languages
12 #Source0Download: http://hackage.haskell.org/package/ipynb
13 Source0: http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
14 # Source0-md5: 919889511c354b69351f13689f1ef193
15 URL: http://hackage.haskell.org/package/ipynb
16 BuildRequires: ghc >= 6.12.3
17 BuildRequires: ghc-aeson
18 BuildRequires: ghc-base64-bytestring
19 BuildRequires: ghc-semigroups
20 BuildRequires: ghc-unordered-containers
22 BuildRequires: ghc-prof
23 BuildRequires: ghc-aeson-prof
24 BuildRequires: ghc-base64-bytestring-prof
25 BuildRequires: ghc-semigroups-prof
26 BuildRequires: ghc-unordered-containers-prof
28 BuildRequires: rpmbuild(macros) >= 1.608
30 Requires(post,postun): /usr/bin/ghc-pkg
32 Requires: ghc-base64-bytestring
33 Requires: ghc-semigroups
34 Requires: ghc-unordered-containers
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 # debuginfo is not useful for ghc
38 %define _enable_debug_packages 0
40 # don't compress haddock files
41 %define _noautocompressdoc *.haddock
44 ipynb defines a data structure for representing Jupyter notebooks,
45 along with ToJSON and FromJSON instances for conversion to and from
49 Summary: Profiling %{pkgname} library for GHC
50 Summary(pl.UTF-8): Biblioteka profilująca %{pkgname} dla GHC
51 Group: Development/Libraries
52 Requires: %{name} = %{version}-%{release}
53 Requires: ghc-aeson-prof
54 Requires: ghc-base64-bytestring-prof
55 Requires: ghc-semigroups-prof
56 Requires: ghc-unordered-containers-prof
59 Profiling %{pkgname} library for GHC. Should be installed when
60 GHC's profiling subsystem is needed.
62 %description prof -l pl.UTF-8
63 Biblioteka profilująca %{pkgname} dla GHC. Powinna być zainstalowana
64 kiedy potrzebujemy systemu profilującego z GHC.
67 %setup -q -n %{pkgname}-%{version}
70 runhaskell Setup.hs configure -v2 \
71 %{?with_prof:--enable-library-profiling} \
74 --libexecdir=%{_libexecdir} \
75 --docdir=%{_docdir}/%{name}-%{version}
77 runhaskell Setup.hs build
78 runhaskell Setup.hs haddock --executables
81 rm -rf $RPM_BUILD_ROOT
82 install -d $RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d
84 runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT
86 # work around automatic haddock docs installation
87 %{__rm} -rf %{name}-%{version}-doc
88 cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{name}-%{version}-doc
89 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
91 runhaskell Setup.hs register \
92 --gen-pkg-config=$RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
95 rm -rf $RPM_BUILD_ROOT
104 %defattr(644,root,root,755)
105 %doc Changelog.md %{name}-%{version}-doc/*
106 %{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
107 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
108 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.so
109 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.a
110 %exclude %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*_p.a
112 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data
113 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/*.hi
114 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/*.dyn_hi
118 %defattr(644,root,root,755)
119 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*_p.a
120 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/*.p_hi