- update to cabal2spec-0.16

- uncomment LICENSE in devel filelist!
- rebuild with ghc-6.10.3
This commit is contained in:
Jens Petersen 2009-05-27 23:52:57 +00:00
parent 5e1947d750
commit b0eb1254a6

View File

@ -1,8 +1,4 @@
%global pkg_name uniplate
%global ghc_version 6.10.1
%global pkg_libdir %{_libdir}/ghc-%{ghc_version}/%{pkg_name}-%{version}
%global pkg_docdir %{_docdir}/ghc/libraries/%{pkg_name}-%{version}
%bcond_without doc
%bcond_without prof
@ -12,7 +8,7 @@
Name: ghc-%{pkg_name}
Version: 1.2.0.3
Release: 3%{?dist}
Release: 4%{?dist}
Summary: Uniform type generic traversals
Group: Development/Libraries
License: BSD
@ -21,12 +17,12 @@ Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{versio
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# fedora ghc archs:
ExclusiveArch: %{ix86} x86_64 ppc alpha
BuildRequires: ghc = %{ghc_version}
BuildRequires: ghc, ghc-rpm-macros
%if %{with doc}
BuildRequires: ghc-doc = %{ghc_version}
BuildRequires: ghc-doc
%endif
%if %{with prof}
BuildRequires: ghc-prof = %{ghc_version}
BuildRequires: ghc-prof
%endif
%description
@ -78,7 +74,7 @@ This package contains profiling libraries for %{name}.
%build
%cabal_configure --ghc %{!?without_prof:-p}
%cabal_configure --ghc %{?with_prof:-p}
%cabal build
%if %{with doc}
%cabal haddock
@ -123,14 +119,13 @@ fi
%files devel -f %{name}-devel.files
%defattr(-,root,root,-)
#%%doc LICENSE
%doc LICENSE
%{_docdir}/%{name}-%{version}
%if %{with doc}
%files doc
%files doc -f %{name}-doc.files
%defattr(-,root,root,-)
%{pkg_docdir}
%endif
@ -141,6 +136,10 @@ fi
%changelog
* Thu May 28 2009 Jens Petersen <petersen@redhat.com> - 1.2.0.3-4
- update to cabal2spec-0.16
- uncomment LICENSE in devel filelist!
* Fri Mar 20 2009 Conrad Meyer <konrad@tylerc.org> - 1.2.0.3-3
- Fix URL.