- update to 0.3.6

- update packaging for ghc-6.12.1
- added shared library support: needs ghc-rpm-macros 0.3.1
epel9
Jens Petersen 15 years ago
parent a06ec18b88
commit 665aefbc5c

@ -1 +1 @@
utf8-string-0.3.5.tar.gz
utf8-string-0.3.6.tar.gz

@ -2,23 +2,23 @@
%bcond_without doc
%bcond_without prof
%bcond_without shared
# ghc does not emit debug information
%global debug_package %{nil}
Name: ghc-%{pkg_name}
Version: 0.3.5
Release: 3%{?dist}
Version: 0.3.6
Release: 1%{?dist}
Summary: Haskell UTF8 layer for IO and Strings
Group: Development/Libraries
Group: System Environment/Libraries
License: BSD
URL: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/%{pkg_name}
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:
ExclusiveArch: %{ix86} x86_64 ppc alpha
BuildRequires: ghc, ghc-rpm-macros
BuildRequires: ghc, ghc-rpm-macros >= 0.3.1
%if %{with doc}
BuildRequires: ghc-doc
%endif
@ -32,11 +32,14 @@ for encoding UTF8 strings to Word8 lists and back, and for reading and writing
UTF8 without truncation.
%package devel
Summary: Haskell UTF8 layer for IO and Strings
Summary: Haskell UTF8 layer for IO and Strings development files
Group: Development/Libraries
Requires: 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
The utf8-string package provides operations
@ -84,13 +87,12 @@ built for ghc-%{ghc_version}.
%if %{with doc}
%cabal haddock
%endif
%ghc_gen_scripts
%install
rm -rf $RPM_BUILD_ROOT
%cabal_install
%ghc_install_scripts
%cabal_pkg_conf
%ghc_gen_filelists %{name}
@ -99,7 +101,7 @@ rm -rf $RPM_BUILD_ROOT
%post devel
%ghc_register_pkg
ghc-pkg recache
%if %{with doc}
@ -108,10 +110,8 @@ rm -rf $RPM_BUILD_ROOT
%endif
%preun devel
if [ "$1" -eq 0 ] ; then
%ghc_unregister_pkg
fi
%postun devel
ghc-pkg recache
%if %{with doc}
@ -122,9 +122,18 @@ fi
%endif
%if %{with shared}
%files -f %{name}.files
%defattr(-,root,root,-)
%{_docdir}/%{name}-%{version}
%endif
%files devel -f %{name}-devel.files
%defattr(-,root,root,-)
%if %{without shared}
%{_docdir}/%{name}-%{version}
%endif
%if %{with doc}
@ -140,6 +149,11 @@ fi
%changelog
* Wed Dec 23 2009 Jens Petersen <petersen@redhat.com> - 0.3.6-1
- update to 0.3.6
- update packaging for ghc-6.12.1
- added shared library support: needs ghc-rpm-macros 0.3.1
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

@ -1 +1 @@
d5198209bd81ea4f8af7692e2467336c utf8-string-0.3.5.tar.gz
be8c5ef52a0824babdc89d60c1e9b600 utf8-string-0.3.6.tar.gz

Loading…
Cancel
Save