]> git.pld-linux.org Git - packages/ghc-void.git/commitdiff
- new auto/th/ghc-void-0.6.1-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 21 Dec 2013 15:29:37 +0000 (16:29 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 21 Dec 2013 15:29:37 +0000 (16:29 +0100)
ghc-void.spec [new file with mode: 0644]

diff --git a/ghc-void.spec b/ghc-void.spec
new file mode 100644 (file)
index 0000000..f97ec59
--- /dev/null
@@ -0,0 +1,140 @@
+#
+# Conditional build:
+%bcond_without prof    # profiling library
+#
+%define                pkgname void
+Summary:       A Haskell 98 logically uninhabited data type
+Summary(pl.UTF-8):     Logicznie niezamieszkały typ danych Haskella 98
+Name:          ghc-%{pkgname}
+Version:       0.6.1
+Release:       1
+License:       BSD
+Group:         Development/Languages
+#Source0Download: http://hackage.haskell.org/package/void
+Source0:       http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
+# Source0-md5: 50c7aa039d96ed6b180fbede1c5f8c4a
+URL:           http://hackage.haskell.org/package/void
+BuildRequires: ghc >= 6.12.3
+BuildRequires: ghc-base >= 3
+BuildRequires: ghc-base < 10
+BuildRequires: ghc-hashable >= 1.1
+BuildRequires: ghc-semigroups >= 0.8.2
+%if %{with prof}
+BuildRequires: ghc-prof >= 6.12.3
+BuildRequires: ghc-base-prof >= 3
+BuildRequires: ghc-base-prof < 10
+BuildRequires: ghc-hashable-prof >= 1.1
+BuildRequires: ghc-semigroups-prof >= 0.8.2
+%endif
+BuildRequires: rpmbuild(macros) >= 1.608
+Requires(post,postun): /usr/bin/ghc-pkg
+%requires_eq   ghc
+Requires:      ghc-base >= 3
+Requires:      ghc-base < 10
+Requires:      ghc-hashable >= 1.1
+Requires:      ghc-semigroups >= 0.8.2
+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
+A Haskell 98 logically uninhabited data type, used to indicate that a
+given term should not exist.
+
+%description -l pl.UTF-8
+Logicznie niezamieszkały typ danych Haskella 98, służący do
+oznaczenia, że dana formuła (term) nie powinna istnieć.
+
+%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 >= 3
+Requires:      ghc-base-prof < 10
+Requires:      ghc-hashable-prof >= 1.1
+Requires:      ghc-semigroups-prof >= 0.8.2
+
+%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.
+
+%package doc
+Summary:       HTML documentation for ghc %{pkgname} package
+Summary(pl.UTF-8):     Dokumentacja w formacie HTML dla pakietu ghc %{pkgname}
+Group:         Documentation
+
+%description doc
+HTML documentation for ghc %{pkgname} package.
+
+%description doc -l pl.UTF-8
+Dokumentacja w formacie HTML dla pakietu ghc %{pkgname}.
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+
+%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
+%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/HSvoid-%{version}.o
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSvoid-%{version}.a
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Void.hi
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Void
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Void/*.hi
+
+%if %{with prof}
+%files prof
+%defattr(644,root,root,755)
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSvoid-%{version}_p.a
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Void.p_hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Void/*.p_hi
+%endif
+
+%files doc
+%defattr(644,root,root,755)
+%doc %{name}-%{version}-doc/*
This page took 0.081405 seconds and 4 git commands to generate.