2009-03-22 21:45:12 +00:00
|
|
|
%global pkg_name uniplate
|
|
|
|
|
2010-01-11 09:31:34 +00:00
|
|
|
%global common_summary Haskell Uniform type generic traversals library
|
2009-03-22 21:45:12 +00:00
|
|
|
|
2010-01-11 09:31:34 +00:00
|
|
|
%global common_description Uniplate is a boilerplate removal library, with similar goals to the\
|
|
|
|
original Scrap Your Boilerplate work. It requires few extensions to\
|
|
|
|
Haskell.
|
|
|
|
|
|
|
|
%global ghc_pkg_deps ghc-mtl-devel
|
|
|
|
|
|
|
|
%bcond_without shared
|
|
|
|
|
|
|
|
# debuginfo is not useful for ghc
|
2009-03-22 21:45:12 +00:00
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
Name: ghc-%{pkg_name}
|
2010-02-15 09:45:45 +00:00
|
|
|
Version: 1.5.1
|
2010-04-28 14:10:11 +00:00
|
|
|
Release: 2%{?dist}
|
2010-01-11 09:31:34 +00:00
|
|
|
Summary: %{common_summary}
|
|
|
|
Group: System Environment/Libraries
|
2009-03-22 21:45:12 +00:00
|
|
|
License: BSD
|
|
|
|
URL: http://community.haskell.org/~ndm/uniplate/
|
|
|
|
Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
|
|
|
|
# fedora ghc archs:
|
|
|
|
ExclusiveArch: %{ix86} x86_64 ppc alpha
|
2010-01-11 09:31:34 +00:00
|
|
|
BuildRequires: ghc, ghc-rpm-macros >= 0.5.1
|
2009-05-27 23:52:57 +00:00
|
|
|
BuildRequires: ghc-doc
|
|
|
|
BuildRequires: ghc-prof
|
2010-01-11 09:31:34 +00:00
|
|
|
%{?ghc_pkg_deps:BuildRequires: %{ghc_pkg_deps}, %(echo %{ghc_pkg_deps} | sed -e "s/\(ghc-[^, ]\+\)-devel/\1-doc,\1-prof/g")}
|
2009-03-22 21:45:12 +00:00
|
|
|
|
|
|
|
%description
|
2010-01-11 09:31:34 +00:00
|
|
|
%{common_description}
|
|
|
|
%if %{with shared}
|
|
|
|
This package provides the shared library.
|
2009-03-22 21:45:12 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
|
2010-01-11 09:31:34 +00:00
|
|
|
%ghc_lib_package
|
2009-03-22 21:45:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{pkg_name}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
2010-01-11 09:31:34 +00:00
|
|
|
%cabal_configure --ghc -p
|
2009-03-22 21:45:12 +00:00
|
|
|
%cabal build
|
|
|
|
%cabal haddock
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cabal_install
|
2010-01-11 09:31:34 +00:00
|
|
|
%cabal_pkg_conf
|
|
|
|
|
|
|
|
%ghc_gen_filelists
|
2009-03-22 21:45:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2010-02-15 09:45:45 +00:00
|
|
|
* Mon Feb 15 2010 Conrad Meyer <konrad@tylerc.org> - 1.5.1-1
|
|
|
|
- Update to 1.5.1
|
|
|
|
|
2010-01-22 02:42:37 +00:00
|
|
|
* Fri Jan 22 2010 Jens Petersen <petersen@redhat.com> - 1.4-1
|
|
|
|
- update to 1.4
|
|
|
|
|
2010-01-11 15:04:18 +00:00
|
|
|
* Tue Jan 12 2010 Jens Petersen <petersen@redhat.com> - 1.2.0.3-8
|
|
|
|
- rebuild against ghc-mtl package
|
|
|
|
|
2010-01-11 09:31:34 +00:00
|
|
|
* Mon Jan 11 2010 Jens Petersen <petersen@redhat.com> - 1.2.0.3-7
|
|
|
|
- update to ghc-rpm-macros-0.5.1 and cabal2spec-0.21.1:
|
|
|
|
- drop doc and prof bcond
|
|
|
|
- use common_summary and common_description
|
|
|
|
- use ghc_lib_package and ghc_pkg_deps
|
|
|
|
- build shared library
|
|
|
|
- drop redundant buildroot and its install cleaning
|
|
|
|
|
2009-08-04 10:29:32 +00:00
|
|
|
* Tue Aug 4 2009 Yaakov M. Nemoy <ynemoy@fedoraproject.org> - 1.2.0.3-6
|
|
|
|
- rebuild against new ghc
|
|
|
|
|
2009-07-25 00:05:29 +00:00
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0.3-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-05-27 23:52:57 +00:00
|
|
|
* Thu May 28 2009 Jens Petersen <petersen@redhat.com> - 1.2.0.3-4
|
|
|
|
- update to cabal2spec-0.16
|
|
|
|
- uncomment LICENSE in devel filelist!
|
|
|
|
|
2009-03-22 21:45:12 +00:00
|
|
|
* Fri Mar 20 2009 Conrad Meyer <konrad@tylerc.org> - 1.2.0.3-3
|
|
|
|
- Fix URL.
|
|
|
|
|
|
|
|
* Thu Mar 19 2009 Conrad Meyer <konrad@tylerc.org> - 1.2.0.3-2
|
|
|
|
- Update to new cabal2spec template.
|
|
|
|
|
|
|
|
* Mon Jan 12 2009 Conrad Meyer <konrad@tylerc.org> - 1.2.0.3-1
|
|
|
|
- initial packaging for Fedora created by cabal2spec
|