ghc-snap-core/ghc-snap-core.spec

355 lines
11 KiB
RPMSpec
Raw Normal View History

# generated by cabal-rpm-2.1.0 --subpackage
2020-06-04 11:28:19 +00:00
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
2012-01-24 01:37:45 +00:00
%global pkg_name snap-core
2016-09-01 10:48:17 +00:00
%global pkgver %{pkg_name}-%{version}
2017-02-28 14:08:34 +00:00
%global readable readable-0.3.1
%global subpkgs %{readable}
2020-06-19 08:56:57 +00:00
# testsuite missing deps: test-framework test-framework-hunit test-framework-quickcheck2
2012-01-24 01:37:45 +00:00
Name: ghc-%{pkg_name}
2022-06-07 06:40:50 +00:00
Version: 1.0.5.0
2017-02-28 14:08:34 +00:00
# can only be reset when all subpkgs bumped
Release: 22%{?dist}
Summary: Snap web framework core library
2012-01-24 01:37:45 +00:00
License: BSD-3-Clause
2015-01-20 13:11:02 +00:00
Url: https://hackage.haskell.org/package/%{pkg_name}
2019-02-17 14:47:10 +00:00
# Begin cabal-rpm sources:
2016-09-01 10:48:17 +00:00
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
2017-02-28 14:08:34 +00:00
Source1: https://hackage.haskell.org/package/%{readable}/%{readable}.tar.gz
2021-07-07 16:30:13 +00:00
Source2: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
2019-02-17 14:47:10 +00:00
# End cabal-rpm sources
Patch0: snap-core-0.9.2.2-portable-flag.patch
Patch1: snap-core-parseTime.patch
2018-07-22 08:58:26 +00:00
2019-02-17 14:47:10 +00:00
# Begin cabal-rpm deps:
2021-07-07 16:30:13 +00:00
BuildRequires: dos2unix
2012-01-24 01:37:45 +00:00
BuildRequires: ghc-Cabal-devel
2017-02-28 14:08:34 +00:00
BuildRequires: ghc-rpm-macros-extra
BuildRequires: ghc-HUnit-devel
BuildRequires: ghc-attoparsec-devel
BuildRequires: ghc-base-devel
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-case-insensitive-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-directory-devel
BuildRequires: ghc-filepath-devel
BuildRequires: ghc-hashable-devel
BuildRequires: ghc-io-streams-devel
BuildRequires: ghc-lifted-base-devel
BuildRequires: ghc-monad-control-devel
BuildRequires: ghc-mtl-devel
BuildRequires: ghc-network-devel
BuildRequires: ghc-network-uri-devel
BuildRequires: ghc-random-devel
#BuildRequires: ghc-readable-devel
BuildRequires: ghc-regex-posix-devel
BuildRequires: ghc-text-devel
BuildRequires: ghc-time-devel
BuildRequires: ghc-time-locale-compat-devel
BuildRequires: ghc-transformers-devel
BuildRequires: ghc-transformers-base-devel
BuildRequires: ghc-unix-compat-devel
BuildRequires: ghc-unordered-containers-devel
BuildRequires: ghc-vector-devel
%if %{with ghc_prof}
BuildRequires: ghc-HUnit-prof
BuildRequires: ghc-attoparsec-prof
BuildRequires: ghc-base-prof
BuildRequires: ghc-bytestring-prof
BuildRequires: ghc-case-insensitive-prof
BuildRequires: ghc-containers-prof
BuildRequires: ghc-directory-prof
BuildRequires: ghc-filepath-prof
BuildRequires: ghc-hashable-prof
BuildRequires: ghc-io-streams-prof
BuildRequires: ghc-lifted-base-prof
BuildRequires: ghc-monad-control-prof
BuildRequires: ghc-mtl-prof
BuildRequires: ghc-network-prof
BuildRequires: ghc-network-uri-prof
BuildRequires: ghc-random-prof
#BuildRequires: ghc-readable-prof
BuildRequires: ghc-regex-posix-prof
BuildRequires: ghc-text-prof
BuildRequires: ghc-time-prof
2021-08-05 04:49:43 +00:00
BuildRequires: ghc-time-locale-compat-prof
BuildRequires: ghc-transformers-prof
BuildRequires: ghc-transformers-base-prof
BuildRequires: ghc-unix-compat-prof
BuildRequires: ghc-unordered-containers-prof
BuildRequires: ghc-vector-prof
%endif
2012-10-29 08:59:16 +00:00
# End cabal-rpm deps
2012-01-24 01:37:45 +00:00
%description
Snap is a simple and fast web development framework and server written
in Haskell. This library contains the core definitions and types for
the Snap framework.
%package devel
Summary: Haskell %{pkg_name} library development files
2014-09-01 09:38:17 +00:00
Provides: %{name}-static = %{version}-%{release}
Provides: %{name}-static%{?_isa} = %{version}-%{release}
2018-01-24 13:12:01 +00:00
%if %{defined ghc_version}
Requires: ghc-compiler = %{ghc_version}
2018-01-24 13:12:01 +00:00
%endif
2014-09-01 09:38:17 +00:00
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package provides the Haskell %{pkg_name} library development files.
2012-01-24 01:37:45 +00:00
%if %{with haddock}
%package doc
Summary: Haskell %{pkg_name} library documentation
2020-02-06 16:11:11 +00:00
BuildArch: noarch
2021-07-07 16:30:13 +00:00
Requires: ghc-filesystem
%description doc
This package provides the Haskell %{pkg_name} library documentation.
%endif
%if %{with ghc_prof}
%package prof
Summary: Haskell %{pkg_name} profiling library
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
2020-02-06 16:11:11 +00:00
Supplements: (%{name}-devel and ghc-prof)
%description prof
This package provides the Haskell %{pkg_name} profiling library.
%endif
2017-02-28 14:08:34 +00:00
%global main_version %{version}
%if %{defined ghclibdir}
%ghc_lib_subpackage -l BSD-3-Clause %{readable}
2017-02-28 14:08:34 +00:00
%endif
%global version %{main_version}
2012-01-24 01:37:45 +00:00
%prep
2019-02-17 14:47:10 +00:00
# Begin cabal-rpm setup:
2017-02-28 14:08:34 +00:00
%setup -q -n %{pkgver} -a1
2021-07-07 16:30:13 +00:00
dos2unix -k -n %{SOURCE2} %{pkg_name}.cabal
2019-02-17 14:47:10 +00:00
# End cabal-rpm setup
%patch0 -p1 -b .orig
2012-10-29 09:04:21 +00:00
%patch1 -p1 -b .orig
cabal-tweak-drop-dep bytestring-builder
2012-01-24 01:37:45 +00:00
(
cd %{readable}
cabal-tweak-dep-ver bytestring '< 0.11' '< 0.12'
)
2012-01-24 01:37:45 +00:00
%build
2019-02-17 14:47:10 +00:00
# Begin cabal-rpm build:
2017-02-28 14:08:34 +00:00
%ghc_libs_build %{subpkgs}
2017-02-10 07:24:20 +00:00
%ghc_lib_build
2019-02-17 14:47:10 +00:00
# End cabal-rpm build
2012-01-24 01:37:45 +00:00
%install
2019-02-17 14:47:10 +00:00
# Begin cabal-rpm install
2017-02-28 14:08:34 +00:00
%ghc_libs_install %{subpkgs}
2017-02-10 07:24:20 +00:00
%ghc_lib_install
2019-02-17 14:47:10 +00:00
# End cabal-rpm install
2012-01-24 01:37:45 +00:00
%files -f %{name}.files
2019-02-17 14:47:10 +00:00
# Begin cabal-rpm files:
2017-02-10 07:24:20 +00:00
%license LICENSE
2019-02-17 14:47:10 +00:00
# End cabal-rpm files
2012-01-24 01:37:45 +00:00
%files devel -f %{name}-devel.files
%doc CONTRIBUTORS README.SNAP.md README.md
2012-01-24 01:37:45 +00:00
%if %{with haddock}
%files doc -f %{name}-doc.files
2020-02-06 16:11:11 +00:00
%license LICENSE
%endif
%if %{with ghc_prof}
%files prof -f %{name}-prof.files
%endif
2012-01-24 01:37:45 +00:00
%changelog
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5.0-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
2022-06-07 06:40:50 +00:00
* Tue Jun 07 2022 Jens Petersen <petersen@redhat.com> - 1.0.5.0-21
- https://hackage.haskell.org/package/snap-core-1.0.5.0/changelog
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4.2-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
2021-08-05 04:49:43 +00:00
* Thu Aug 5 2021 Jens Petersen <petersen@redhat.com> - 1.0.4.2-19
- update to 1.0.4.2
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4.1-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4.1-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4.1-16
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4.1-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2020-07-17 10:38:19 +00:00
* Fri Jul 17 2020 Jens Petersen <petersen@redhat.com> - 1.0.4.1-14
- refresh to cabal-rpm-2.0.6
2020-02-14 04:01:07 +00:00
* Fri Feb 14 2020 Jens Petersen <petersen@redhat.com> - 1.0.4.1-13
- update to 1.0.4.1
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4.0-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2019-07-25 16:39:31 +00:00
* Thu Jul 25 2019 Jens Petersen <petersen@redhat.com> - 1.0.4.0-11
- update to 1.0.4.0
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3.2-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2019-02-17 14:47:10 +00:00
* Sun Feb 17 2019 Jens Petersen <petersen@redhat.com> - 1.0.3.2-9
- refresh to cabal-rpm-0.13
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3.2-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2018-07-22 14:29:11 +00:00
* Sun Jul 22 2018 Jens Petersen <petersen@redhat.com> - 1.0.3.2-7
- update to 1.0.3.2
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2018-01-24 14:53:01 +00:00
* Wed Jan 24 2018 Jens Petersen <petersen@redhat.com> - 1.0.3.1-4
- update to 1.0.3.1
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Thu Feb 23 2017 Jens Petersen <petersen@redhat.com> - 1.0.1.0-1
- update to 1.0.1.0
2017-02-28 14:08:34 +00:00
- subpackage readable
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.8.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2017-02-10 07:24:20 +00:00
* Thu Feb 9 2017 Jens Petersen <petersen@redhat.com> - 0.9.8.0-3
- build subpackage in main package dir
2016-09-27 08:32:38 +00:00
* Tue Sep 27 2016 Jens Petersen <petersen@redhat.com> - 0.9.8.0-2
- rebuild
2016-09-26 03:07:42 +00:00
* Thu Aug 25 2016 Jens Petersen <petersen@redhat.com> - 0.9.8.0-1
- update to 0.9.8.0
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.6.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.9.6.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2015-01-20 13:11:02 +00:00
* Tue Jan 20 2015 Jens Petersen <petersen@redhat.com> - 0.9.6.4-1
- update to 0.9.6.4
2014-09-01 09:38:17 +00:00
* Mon Sep 01 2014 Jens Petersen <petersen@redhat.com> - 0.9.6.3-1
- update to 0.9.6.3
- refresh to clrpm-0.8.11
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2013-06-11 04:55:03 +00:00
* Tue Jun 11 2013 Jens Petersen <petersen@redhat.com> - 0.9.4.0-1
- update to 0.9.4.0
- update to new simplified Haskell Packaging Guidelines
2013-03-12 15:07:47 +00:00
* Tue Mar 12 2013 Jens Petersen <petersen@redhat.com> - 0.9.3.1-1
- update to 0.9.3.1
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.2.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2012-10-29 08:59:16 +00:00
* Mon Oct 29 2012 Jens Petersen <petersen@redhat.com> - 0.9.2.2-1
- update to 0.9.2.2
2012-10-29 09:04:21 +00:00
- compile in portable cross-platform mode until bytestring-mmap packaged
2012-10-29 08:59:16 +00:00
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2012-07-16 02:14:54 +00:00
* Mon Jul 16 2012 Jens Petersen <petersen@redhat.com> - 0.9.0-3
- change prof BRs to devel
2012-06-22 08:48:34 +00:00
* Fri Jun 22 2012 Jens Petersen <petersen@redhat.com> - 0.9.0-2
- rebuild
2012-06-21 08:07:34 +00:00
* Thu Jun 21 2012 Jens Petersen <petersen@redhat.com> - 0.9.0-1
- update to 0.9.0
2012-06-15 08:21:40 +00:00
* Fri Jun 15 2012 Jens Petersen <petersen@redhat.com> - 0.8.1-2
- rebuild
2012-05-01 08:55:21 +00:00
* Tue May 1 2012 Jens Petersen <petersen@redhat.com> - 0.8.1-1
- update to 0.8.1
2012-03-23 04:29:27 +00:00
* Fri Mar 23 2012 Jens Petersen <petersen@redhat.com> - 0.8.0.1-1
- update to 0.8.0.1
- mwc-random version patch no longer needed
2012-03-08 01:27:46 +00:00
* Thu Mar 8 2012 Jens Petersen <petersen@redhat.com> - 0.7.0.1-2
- rebuild
2012-01-24 01:37:45 +00:00
* Mon Jan 16 2012 Jens Petersen <petersen@redhat.com> - 0.7.0.1-1
2012-01-24 01:49:22 +00:00
- update to 0.7.0.1 and cabal2spec-0.25.2
2012-01-24 01:37:45 +00:00
- add some doc files
2012-01-24 01:49:22 +00:00
- allow building with mwc-random-0.11
2012-01-24 01:37:45 +00:00
* Fri Dec 16 2011 Jens Petersen <petersen@redhat.com> - 0.6.0.1-1
- update to 0.6.0.1
- new deps base16-bytestring, mwc-random, unordered-containers,
regex-posix, and HUnit
* Tue Nov 22 2011 Jens Petersen <petersen@redhat.com> - 0.5.5-1
- update to 0.5.5
- depends on zlib-enum and blaze-builder-enumerator
* Tue Nov 8 2011 Jens Petersen <petersen@redhat.com> - 0.5.4-2
- add missed mtl dep
* Sat Oct 15 2011 Jens Petersen <petersen@redhat.com> - 0.5.4-1
- update to 0.5.4
* Thu Sep 8 2011 Jens Petersen <petersen@redhat.com> - 0.5.3.1-1
- BSD license and deps
* Thu Sep 8 2011 Fedora Haskell SIG <haskell-devel@lists.fedoraproject.org> - 0.5.3.1-0
- initial packaging for Fedora automatically generated by cabal2spec-0.24.1