]> git.pld-linux.org Git - packages/ghc-tagged.git/commitdiff
- new auto/th/ghc-tagged-0.8.6-1
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 24 May 2020 21:38:17 +0000 (23:38 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 24 May 2020 21:38:17 +0000 (23:38 +0200)
ghc-8.10.patch [new file with mode: 0644]
ghc-tagged.spec [new file with mode: 0644]

diff --git a/ghc-8.10.patch b/ghc-8.10.patch
new file mode 100644 (file)
index 0000000..f614efd
--- /dev/null
@@ -0,0 +1,11 @@
+--- tagged-0.8.6/tagged.cabal~ 2018-07-03 00:53:28.000000000 +0200
++++ tagged-0.8.6/tagged.cabal  2020-05-24 23:34:44.454766628 +0200
+@@ -67,7 +67,7 @@
+   if impl(ghc>=7.6)
+     exposed-modules: Data.Proxy.TH
+-    build-depends: template-haskell >= 2.8 && < 2.15
++    build-depends: template-haskell >= 2.8
+   if flag(deepseq)
+     build-depends: deepseq >= 1.1 && < 1.5
diff --git a/ghc-tagged.spec b/ghc-tagged.spec
new file mode 100644 (file)
index 0000000..9cc39d8
--- /dev/null
@@ -0,0 +1,133 @@
+#
+# Conditional build:
+%bcond_without prof    # profiling library
+#
+%define                pkgname tagged
+Summary:       Haskell 98 phantom types to avoid unsafely passing dummy arguments
+Name:          ghc-%{pkgname}
+Version:       0.8.6
+Release:       1
+License:       BSD
+Group:         Development/Languages
+#Source0Download: http://hackage.haskell.org/package/tagged
+Source0:       http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
+# Source0-md5: 08cebb2c83fba496cc87d859eddb2d7b
+Patch0:                ghc-8.10.patch
+URL:           http://hackage.haskell.org/package/tagged
+BuildRequires: ghc >= 6.12.3
+BuildRequires: ghc-base >= 2
+BuildRequires: ghc-deepseq >= 1.1
+BuildRequires: ghc-ghc-prim
+BuildRequires: ghc-template-haskell >= 2.8
+BuildRequires: ghc-transformers >= 0.2
+BuildRequires: ghc-transformers-compat >= 0.5
+%if %{with prof}
+BuildRequires: ghc-prof
+BuildRequires: ghc-base-prof >= 2
+BuildRequires: ghc-deepseq-prof >= 1.1
+BuildRequires: ghc-ghc-prim-prof
+BuildRequires: ghc-template-haskell-prof >= 2.8
+BuildRequires: ghc-transformers-prof >= 0.2
+BuildRequires: ghc-transformers-compat-prof >= 0.5
+%endif
+BuildRequires: rpmbuild(macros) >= 1.608
+%requires_eq   ghc
+Requires(post,postun): /usr/bin/ghc-pkg
+Requires:      ghc-base >= 2
+Requires:      ghc-deepseq >= 1.1
+Requires:      ghc-ghc-prim
+Requires:      ghc-template-haskell >= 2.8
+Requires:      ghc-transformers >= 0.2
+Requires:      ghc-transformers-compat >= 0.5
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+# debuginfo is not useful for ghc
+%define                _enable_debug_packages  0
+
+# don't compress haddock files
+%define                _noautocompressdoc      *.haddock
+
+%description
+Haskell 98 phantom types to avoid unsafely passing dummy arguments.
+
+%package prof
+Summary:       Profiling %{pkgname} library for GHC
+Summary(pl.UTF-8):     Biblioteka profilująca %{pkgname} dla GHC
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+Requires:      ghc-base-prof >= 2
+Requires:      ghc-deepseq-prof >= 1.1
+Requires:      ghc-ghc-prim-prof
+Requires:      ghc-template-haskell-prof >= 2.8
+Requires:      ghc-transformers-prof >= 0.2
+Requires:      ghc-transformers-compat-prof >= 0.5
+
+%description prof
+Profiling %{pkgname} library for GHC.  Should be installed when
+GHC's profiling subsystem is needed.
+
+%description prof -l pl.UTF-8
+Biblioteka profilująca %{pkgname} dla GHC. Powinna być zainstalowana
+kiedy potrzebujemy systemu profilującego z GHC.
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+%patch0 -p1
+
+%build
+runhaskell Setup.lhs configure -v2 \
+       %{?with_prof:--enable-library-profiling} \
+       --prefix=%{_prefix} \
+       --libdir=%{_libdir} \
+       --libexecdir=%{_libexecdir} \
+       --docdir=%{_docdir}/%{name}-%{version}
+
+runhaskell Setup.lhs build
+runhaskell Setup.lhs haddock --executables
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d
+
+runhaskell Setup.lhs copy --destdir=$RPM_BUILD_ROOT
+
+# work around automatic haddock docs installation
+%{__rm} -rf %{name}-%{version}-doc
+cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{name}-%{version}-doc
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+
+runhaskell Setup.lhs register \
+       --gen-pkg-config=$RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%ghc_pkg_recache
+
+%postun
+%ghc_pkg_recache
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.markdown LICENSE README.markdown %{name}-%{version}-doc/html
+%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.so
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.a
+%exclude %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*_p.a
+
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/*.hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/*.dyn_hi
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Proxy
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Proxy/*.hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Proxy/*.dyn_hi
+
+%if %{with prof}
+%files prof
+%defattr(644,root,root,755)
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*_p.a
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/*.p_hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Proxy/*.p_hi
+%endif
This page took 0.172563 seconds and 4 git commands to generate.