- update packaging for ghc-6.12.1
- added shared library support: needs ghc-rpm-macros 0.3.1
This commit is contained in:
parent
9e084e3abc
commit
36f7fb7fe9
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
%bcond_without doc
|
%bcond_without doc
|
||||||
%bcond_without prof
|
%bcond_without prof
|
||||||
|
%bcond_without shared
|
||||||
|
|
||||||
# ghc does not emit debug information
|
# ghc does not emit debug information
|
||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
@ -9,18 +10,16 @@
|
|||||||
Name: ghc-%{pkg_name}
|
Name: ghc-%{pkg_name}
|
||||||
# part of haskell-platform-2009.2.0.2 and ghc-6.10.x extralibs!
|
# part of haskell-platform-2009.2.0.2 and ghc-6.10.x extralibs!
|
||||||
Version: 1.2.0.3
|
Version: 1.2.0.3
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Haskell %{pkg_name} library
|
Summary: Haskell %{pkg_name} library
|
||||||
|
|
||||||
Group: Development/Libraries
|
Group: System Environment/Libraries
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://hunit.sourceforge.net/
|
URL: http://hunit.sourceforge.net/
|
||||||
Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
|
Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
# fedora ghc archs:
|
# fedora ghc archs:
|
||||||
ExclusiveArch: %{ix86} x86_64 ppc alpha
|
ExclusiveArch: %{ix86} x86_64 ppc alpha
|
||||||
BuildRequires: ghc
|
BuildRequires: ghc, ghc-rpm-macros >= 0.3.1
|
||||||
BuildRequires: ghc-rpm-macros
|
|
||||||
%if %{with doc}
|
%if %{with doc}
|
||||||
BuildRequires: ghc-doc
|
BuildRequires: ghc-doc
|
||||||
%endif
|
%endif
|
||||||
@ -34,11 +33,14 @@ is a unit testing framework for Haskell, inspired by the JUnit tool
|
|||||||
for Java.
|
for Java.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Haskell %{pkg_name} library
|
Summary: Haskell %{pkg_name} library development files
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: ghc = %{ghc_version}
|
Requires: ghc = %{ghc_version}
|
||||||
Requires(post): ghc = %{ghc_version}
|
Requires(post): ghc = %{ghc_version}
|
||||||
Requires(preun): ghc = %{ghc_version}
|
Requires(postun): ghc = %{ghc_version}
|
||||||
|
%if %{with shared}
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
%endif
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
This package contains the development files for %{name}
|
This package contains the development files for %{name}
|
||||||
@ -82,13 +84,12 @@ built for ghc-%{ghc_version}.
|
|||||||
%if %{with doc}
|
%if %{with doc}
|
||||||
%cabal haddock
|
%cabal haddock
|
||||||
%endif
|
%endif
|
||||||
%ghc_gen_scripts
|
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
%cabal_install
|
%cabal_install
|
||||||
%ghc_install_scripts
|
%cabal_pkg_conf
|
||||||
|
|
||||||
%ghc_gen_filelists %{name}
|
%ghc_gen_filelists %{name}
|
||||||
|
|
||||||
|
|
||||||
@ -97,7 +98,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%post devel
|
%post devel
|
||||||
%ghc_register_pkg
|
ghc-pkg recache
|
||||||
|
|
||||||
|
|
||||||
%if %{with doc}
|
%if %{with doc}
|
||||||
@ -106,10 +107,8 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%preun devel
|
%postun devel
|
||||||
if [ "$1" -eq 0 ] ; then
|
ghc-pkg recache
|
||||||
%ghc_unregister_pkg
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
%if %{with doc}
|
%if %{with doc}
|
||||||
@ -120,9 +119,18 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%files devel -f %{name}-devel.files
|
%if %{with shared}
|
||||||
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_docdir}/%{name}-%{version}
|
%{_docdir}/%{name}-%{version}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%files devel -f %{name}-devel.files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%if %{without shared}
|
||||||
|
%{_docdir}/%{name}-%{version}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%if %{with doc}
|
%if %{with doc}
|
||||||
@ -138,5 +146,9 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Dec 23 2009 Jens Petersen <petersen@redhat.com> - 1.2.0.3-2
|
||||||
|
- update packaging for ghc-6.12.1
|
||||||
|
- added shared library support: needs ghc-rpm-macros 0.3.1
|
||||||
|
|
||||||
* Wed Aug 12 2009 Bryan O'Sullivan <bos@serpentine.com> - 1.2.0.3-1
|
* Wed Aug 12 2009 Bryan O'Sullivan <bos@serpentine.com> - 1.2.0.3-1
|
||||||
- initial packaging for Fedora created by cabal2spec
|
- initial packaging for Fedora created by cabal2spec
|
||||||
|
Loading…
Reference in New Issue
Block a user