This commit is contained in:
Jens Petersen 2018-07-01 22:08:02 +09:00
parent 272b87a53d
commit f16bc0f836
3 changed files with 61 additions and 91 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
fgl-5.4.2.3.tar.gz
/fgl-5.4.2.4.tar.gz
/fgl-5.6.0.0.tar.gz

View File

@ -1,36 +1,58 @@
# cabal2spec-0.25
# generated by cabal-rpm-0.12.3
# https://fedoraproject.org/wiki/Packaging:Haskell
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name fgl
%global pkgver %{pkg_name}-%{version}
%global common_summary Haskell Functional Graph Library
%global common_description Martin Erwig's Functional Graph Library.
# needs older QuickCheck
%bcond_with tests
Name: ghc-%{pkg_name}
# part of haskell-platform
Version: 5.4.2.4
Release: 3%{?dist}
Summary: %{common_summary}
Version: 5.6.0.0
Release: 2%{?dist}
Summary: Martin Erwig's Functional Graph Library
Group: System Environment/Libraries
License: BSD
# BEGIN cabal2spec
URL: http://hackage.haskell.org/package/%{pkg_name}
Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
ExclusiveArch: %{ghc_arches}
Url: https://hackage.haskell.org/package/%{pkg_name}
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros %{!?without_hscolour:hscolour}
# END cabal2spec
BuildRequires: ghc-mtl-prof
BuildRequires: ghc-rpm-macros
# Begin cabal-rpm deps:
BuildRequires: ghc-array-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-deepseq-devel
BuildRequires: ghc-transformers-devel
%if %{with tests}
BuildRequires: ghc-QuickCheck-devel
BuildRequires: ghc-hspec-devel
%endif
# End cabal-rpm deps
%description
%{common_description}
An inductive representation of manipulating graph data structures.
Original website can be found at
<http://web.engr.oregonstate.edu/~erwig/fgl/haskell>.
%package devel
Summary: Haskell %{pkg_name} library development files
Provides: %{name}-static = %{version}-%{release}
Provides: %{name}-doc = %{version}-%{release}
%if %{defined ghc_version}
Requires: ghc-compiler = %{ghc_version}
Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version}
%endif
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package provides the Haskell %{pkg_name} library development files.
%prep
%setup -q -n %{pkg_name}-%{version}
%setup -q -n %{pkgver}
%build
@ -41,82 +63,29 @@ BuildRequires: ghc-mtl-prof
%ghc_lib_install
# devel subpackage
%ghc_devel_package
%ghc_devel_description
%check
%cabal_test
%ghc_devel_post_postun
%post devel
%ghc_pkg_recache
%ghc_files LICENSE
%postun devel
%ghc_pkg_recache
%files -f %{name}.files
%license LICENSE
%files devel -f %{name}-devel.files
%doc ChangeLog
%changelog
* Sun Mar 18 2012 Jens Petersen <petersen@redhat.com> - 5.4.2.4-3
- update to cabal2spec-0.25
* Sun Jun 3 2018 Jens Petersen <petersen@redhat.com> - 5.6.0.0-2
- disable tests since needs old QuickCheck
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.4.2.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Mon Dec 19 2011 Jens Petersen <petersen@redhat.com> - 5.4.2.4-1
- update to 5.4.2.4 for haskell-platform-2011.4
* Thu Oct 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 5.4.2.3-8.2
- rebuild with new gmp without compat lib
* Tue Oct 11 2011 Peter Schiffer <pschiffe@redhat.com> - 5.4.2.3-8.1
- rebuild with new gmp
* Tue Jun 21 2011 Jens Petersen <petersen@redhat.com> - 5.4.2.3-8
- ghc_arches replaces ghc_excluded_archs
* Mon Jun 20 2011 Jens Petersen <petersen@redhat.com> - 5.4.2.3-7
- BR ghc-Cabal-devel and use ghc_excluded_archs
* Fri May 27 2011 Jens Petersen <petersen@redhat.com> - 5.4.2.3-6
- update to cabal2spec-0.23
* Thu Mar 10 2011 Fabio M. Di Nitto <fdinitto@redhat.com> - 5.4.2.3-5
- Enable build on sparcv9
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.4.2.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Tue Jan 18 2011 Jens Petersen <petersen@redhat.com> - 5.4.2.3-3
- update to cabal2spec-0.22.4
* Thu Nov 25 2010 Jens Petersen <petersen@redhat.com> - 5.4.2.3-2
- add hscolour
- drop -o obsoletes
* Fri Jul 16 2010 Jens Petersen <petersen@redhat.com> - 5.4.2.3-1
- update to 5.4.2.3 for haskell-platform-2010.2.0.0
- obsolete doc subpackage (ghc-rpm-macros-0.8.0)
* Sat Jun 26 2010 Jens Petersen <petersen@redhat.com> - 5.4.2.2-6
- strip shared library (cabal2spec-0.21.4)
* Tue Apr 27 2010 Jens Petersen <petersen@redhat.com> - 5.4.2.2-5
- part of haskell-platform-2010.1.0.0
- rebuild against ghc-6.12.2
- condition ghc_lib_package
* Tue Jan 12 2010 Jens Petersen <petersen@redhat.com> - 5.4.2.2-4
- rebuild against ghc-mtl package
* Mon Jan 11 2010 Jens Petersen <petersen@redhat.com> - 5.4.2.2-3
- 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
* Sat Dec 26 2009 Jens Petersen <petersen@redhat.com> - 5.4.2.2-2
- update for ghc-6.12.1: add shared library support
- use new ghc*_requires macros: needs ghc-rpm-macros 0.4.0
- add common_summary and common_description
- buildrequires ghc-mtl
* Wed Aug 12 2009 Bryan O'Sullivan <bos@serpentine.com> - 5.4.2.2-1
- initial packaging for Fedora created by cabal2spec
* Wed May 23 2018 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 5.6.0.0-1
- spec file generated by cabal-rpm-0.12.3

View File

@ -1 +1 @@
6b5430f4a5ad374bc4351acaf3d81e4f fgl-5.4.2.4.tar.gz
SHA512 (fgl-5.6.0.0.tar.gz) = 0da15994f95d86dd27a6678eb762afb72d87b28176f82505691b5e5215e2c73edfe7ed2f36021254a02a749d5f39f23bf68a8957900fb335e651be5b68ec11f2