140 lines
3.5 KiB
RPMSpec
140 lines
3.5 KiB
RPMSpec
# generated by cabal-rpm-0.12.1
|
|
# https://fedoraproject.org/wiki/Packaging:Haskell
|
|
|
|
%global pkg_name distributive
|
|
%global pkgver %{pkg_name}-%{version}
|
|
|
|
%global cabaldoctest cabal-doctest-1.0.4
|
|
%global subpkgs %{cabaldoctest}
|
|
|
|
%bcond_with tests
|
|
|
|
Name: ghc-%{pkg_name}
|
|
Version: 0.5.3
|
|
# can only be reset when all subpkgs bumped
|
|
Release: 5%{?dist}
|
|
Summary: Distributive functors -- Dual to Traversable
|
|
|
|
License: BSD
|
|
Url: https://hackage.haskell.org/package/%{pkg_name}
|
|
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
|
Source1: https://hackage.haskell.org/package/%{cabaldoctest}/%{cabaldoctest}.tar.gz
|
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
BuildRequires: ghc-rpm-macros-extra
|
|
# Begin cabal-rpm deps:
|
|
BuildRequires: ghc-base-orphans-devel
|
|
#BuildRequires: ghc-cabal-doctest-devel
|
|
BuildRequires: ghc-tagged-devel
|
|
BuildRequires: ghc-transformers-compat-devel
|
|
BuildRequires: ghc-transformers-devel
|
|
%if %{with tests}
|
|
BuildRequires: ghc-doctest-devel
|
|
BuildRequires: ghc-generic-deriving-devel
|
|
BuildRequires: ghc-hspec-devel
|
|
%endif
|
|
# End cabal-rpm deps
|
|
|
|
%description
|
|
Distributive functors -- Dual to Traversable.
|
|
|
|
|
|
%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.
|
|
|
|
|
|
%global main_version %{version}
|
|
|
|
%if %{defined ghclibdir}
|
|
%ghc_lib_subpackage %{cabaldoctest}
|
|
%endif
|
|
|
|
%global version %{main_version}
|
|
|
|
|
|
%prep
|
|
%setup -q -n %{pkgver} -a1
|
|
|
|
|
|
%build
|
|
%ghc_libs_build %{subpkgs}
|
|
%ghc_lib_build
|
|
|
|
|
|
%install
|
|
%ghc_libs_install %{subpkgs}
|
|
%ghc_lib_install
|
|
|
|
|
|
%check
|
|
%cabal_test
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
%post devel
|
|
%ghc_pkg_recache
|
|
|
|
|
|
%postun devel
|
|
%ghc_pkg_recache
|
|
|
|
|
|
%files -f %{name}.files
|
|
%license LICENSE
|
|
|
|
|
|
%files devel -f %{name}-devel.files
|
|
%doc CHANGELOG.markdown README.markdown
|
|
|
|
|
|
%changelog
|
|
* Wed Jan 24 2018 Jens Petersen <petersen@redhat.com> - 0.5.3-5
|
|
- update to 0.5.3
|
|
|
|
* Wed Jan 24 2018 Jens Petersen <petersen@redhat.com>
|
|
- update cabal-doctest to 1.0.4
|
|
|
|
* Wed Sep 13 2017 Jens Petersen <petersen@redhat.com> - 0.5.2-4
|
|
- base-orphans is packaged now
|
|
|
|
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
* Thu Feb 23 2017 Jens Petersen <petersen@redhat.com> - 0.5.2-1
|
|
- update to 0.5.2
|
|
- subpackage base-orphans and cabal-doctest
|
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.4-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.4-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.4-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
* Fri Jan 09 2015 Ricky Elrod <codeblock@elrod.me> - 0.4.4-1
|
|
- update to 0.4.4
|
|
|
|
* Wed Mar 12 2014 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 0.4
|
|
- spec file generated by cabal-rpm-0.8.10
|