672d4fb3b2
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
71 lines
1.5 KiB
RPMSpec
71 lines
1.5 KiB
RPMSpec
%global pkg_name ansi-terminal
|
|
|
|
%global common_summary Haskell %{pkg_name} library
|
|
|
|
%global common_description %{common_summary}
|
|
|
|
%bcond_without shared
|
|
%bcond_without hscolour
|
|
|
|
# debuginfo is not useful for ghc
|
|
%global debug_package %{nil}
|
|
|
|
Name: ghc-%{pkg_name}
|
|
Version: 0.5.5
|
|
Release: 3%{?dist}
|
|
Summary: Haskell %{pkg_name}
|
|
|
|
Group: System Environment/Libraries
|
|
License: BSD
|
|
URL: http://hackage.haskell.org/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 sparcv9
|
|
BuildRequires: ghc, ghc-doc, ghc-prof
|
|
BuildRequires: ghc-rpm-macros >= 0.8.1
|
|
%if %{with hscolour}
|
|
BuildRequires: hscolour
|
|
%endif
|
|
|
|
|
|
%description
|
|
%{common_description}
|
|
|
|
|
|
%prep
|
|
%setup -q -n %{pkg_name}-%{version}
|
|
|
|
|
|
%build
|
|
%ghc_lib_build
|
|
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
%ghc_lib_install
|
|
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc LICENSE
|
|
|
|
|
|
%{?ghc_lib_package}
|
|
|
|
|
|
%changelog
|
|
* Thu Mar 10 2011 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.5.5-3
|
|
- Enable build on sparcv9
|
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.5-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Tue Jan 18 2011 Shakthi Kannan <shakthimaan [AT] fedoraproject dot org> - 0.5.5-1
|
|
- Added license info.
|
|
- Initial packaging for Fedora automatically generated by cabal2spec-0.22.2.
|