239 lines
7.1 KiB
RPMSpec
239 lines
7.1 KiB
RPMSpec
# generated by cabal-rpm-2.0.5 --subpackage
|
|
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
|
|
|
|
%global pkg_name snap-server
|
|
%global pkgver %{pkg_name}-%{version}
|
|
|
|
%global iostreamshaproxy io-streams-haproxy-1.0.1.0
|
|
%global subpkgs %{iostreamshaproxy}
|
|
|
|
Name: ghc-%{pkg_name}
|
|
Version: 1.1.1.1
|
|
# can only be reset when all subpkgs bumped
|
|
Release: 11%{?dist}
|
|
Summary: A web server for the Snap Framework
|
|
|
|
License: BSD
|
|
Url: https://hackage.haskell.org/package/%{pkg_name}
|
|
# Begin cabal-rpm sources:
|
|
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
|
Source1: https://hackage.haskell.org/package/%{iostreamshaproxy}/%{iostreamshaproxy}.tar.gz
|
|
Source2: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
|
|
# End cabal-rpm sources
|
|
|
|
# Begin cabal-rpm deps:
|
|
BuildRequires: ghc-Cabal-devel
|
|
BuildRequires: ghc-rpm-macros-extra
|
|
BuildRequires: ghc-attoparsec-prof
|
|
BuildRequires: ghc-base-prof
|
|
BuildRequires: ghc-blaze-builder-prof
|
|
BuildRequires: ghc-bytestring-prof
|
|
BuildRequires: ghc-case-insensitive-prof
|
|
BuildRequires: ghc-clock-prof
|
|
BuildRequires: ghc-containers-prof
|
|
BuildRequires: ghc-filepath-prof
|
|
BuildRequires: ghc-io-streams-prof
|
|
#BuildRequires: ghc-io-streams-haproxy-prof
|
|
BuildRequires: ghc-lifted-base-prof
|
|
BuildRequires: ghc-mtl-prof
|
|
BuildRequires: ghc-network-prof
|
|
BuildRequires: ghc-old-locale-prof
|
|
BuildRequires: ghc-snap-core-prof
|
|
BuildRequires: ghc-text-prof
|
|
BuildRequires: ghc-time-prof
|
|
BuildRequires: ghc-unix-prof
|
|
BuildRequires: ghc-unix-compat-prof
|
|
BuildRequires: ghc-vector-prof
|
|
# for missing dep 'io-streams-haproxy':
|
|
BuildRequires: ghc-transformers-prof
|
|
# End cabal-rpm deps
|
|
|
|
%description
|
|
Snap is a simple and fast web development framework and server written in
|
|
Haskell. For more information or to download the latest version, you can visit
|
|
the Snap project website at <http://snapframework.com/>.
|
|
|
|
The Snap HTTP server is a high performance web server library written in
|
|
Haskell. Together with the 'snap-core' library upon which it depends, it
|
|
provides a clean and efficient Haskell programming interface to the HTTP
|
|
protocol.
|
|
|
|
|
|
%package devel
|
|
Summary: Haskell %{pkg_name} library development files
|
|
Provides: %{name}-static = %{version}-%{release}
|
|
Provides: %{name}-static%{?_isa} = %{version}-%{release}
|
|
%if %{defined ghc_version}
|
|
Requires: ghc-compiler = %{ghc_version}
|
|
%endif
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
%description devel
|
|
This package provides the Haskell %{pkg_name} library development files.
|
|
|
|
|
|
%if %{with haddock}
|
|
%package doc
|
|
Summary: Haskell %{pkg_name} library documentation
|
|
BuildArch: noarch
|
|
|
|
%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}
|
|
Supplements: (%{name}-devel and ghc-prof)
|
|
|
|
%description prof
|
|
This package provides the Haskell %{pkg_name} profiling library.
|
|
%endif
|
|
|
|
|
|
%global main_version %{version}
|
|
|
|
%if %{defined ghclibdir}
|
|
%ghc_lib_subpackage %{iostreamshaproxy}
|
|
%endif
|
|
|
|
%global version %{main_version}
|
|
|
|
|
|
%prep
|
|
# Begin cabal-rpm setup:
|
|
%setup -q -n %{pkgver} -a1
|
|
cp -bp %{SOURCE2} %{pkg_name}.cabal
|
|
# End cabal-rpm setup
|
|
cabal-tweak-drop-dep bytestring-builder
|
|
|
|
|
|
%build
|
|
# Begin cabal-rpm build:
|
|
%ghc_libs_build %{subpkgs}
|
|
%ghc_lib_build
|
|
# End cabal-rpm build
|
|
|
|
|
|
%install
|
|
# Begin cabal-rpm install
|
|
%ghc_libs_install %{subpkgs}
|
|
%ghc_lib_install
|
|
%ghc_fix_rpath %{pkgver}
|
|
# End cabal-rpm install
|
|
|
|
|
|
%if 0%{?fedora} < 31 || 0%{?rhel} < 8
|
|
%post devel
|
|
%ghc_pkg_recache
|
|
|
|
|
|
%postun devel
|
|
%ghc_pkg_recache
|
|
%endif
|
|
|
|
|
|
%files -f %{name}.files
|
|
# Begin cabal-rpm files:
|
|
%license LICENSE
|
|
# End cabal-rpm files
|
|
|
|
|
|
%files devel -f %{name}-devel.files
|
|
%doc CONTRIBUTORS README.SNAP.md README.md
|
|
|
|
|
|
%if %{with haddock}
|
|
%files doc -f %{name}-doc.files
|
|
%license LICENSE
|
|
%endif
|
|
|
|
|
|
%if %{with ghc_prof}
|
|
%files prof -f %{name}-prof.files
|
|
%endif
|
|
|
|
|
|
%changelog
|
|
* Fri Feb 14 2020 Jens Petersen <petersen@redhat.com> - 1.1.1.1-11
|
|
- update to 1.1.1.1
|
|
|
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0.0-10
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
* Sun Jul 28 2019 Jens Petersen <petersen@redhat.com> - 1.1.0.0-9
|
|
- update for ghc-8.6.5
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0.0-8
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
* Thu Feb 21 2019 Jens Petersen <petersen@redhat.com> - 1.1.0.0-7
|
|
- update to 1.1.0.0
|
|
|
|
* Sun Feb 17 2019 Jens Petersen <petersen@redhat.com> - 1.0.3.3-6
|
|
- refresh to cabal-rpm-0.13
|
|
|
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3.3-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
* Sat Jul 28 2018 Jens Petersen <petersen@redhat.com> - 1.0.3.3-4
|
|
- rebuild
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3.3-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3.3-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
* Fri Feb 2 2018 Jens Petersen <petersen@redhat.com> - 1.0.3.3-1
|
|
- update to 1.0.3.3
|
|
|
|
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1.1-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.1-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
* Mon Feb 27 2017 Jens Petersen <petersen@redhat.com> - 1.0.1.1-1
|
|
- update to 1.0.1.1
|
|
- subpackage io-streams-haproxy
|
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.5.1-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
* Sun Jun 26 2016 Jens Petersen <petersen@redhat.com> - 0.9.5.1-1
|
|
- update to 0.9.5.1
|
|
|
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.4.6-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.4.6-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
* Tue Jan 20 2015 Jens Petersen <petersen@redhat.com> - 0.9.4.6-1
|
|
- update to 0.9.4.6
|
|
|
|
* Mon Sep 01 2014 Jens Petersen <petersen@redhat.com> - 0.9.4.5-1
|
|
- update to 0.9.4.5
|
|
|
|
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.3.4-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
* Tue Jun 10 2014 Jens Petersen <petersen@redhat.com> - 0.9.3.4-3
|
|
- update to cblrpm-0.8.11
|
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.3.4-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
* Wed Oct 16 2013 Jens Petersen <petersen@redhat.com> - 0.9.3.4-1
|
|
- 0.9.3.4
|
|
- add static provides to devel
|
|
|
|
* Thu Jun 27 2013 Jens Petersen <petersen@redhat.com> - 0.9.3.3-1
|
|
- minor description tweaks and add CONTRIBUTORS
|
|
|
|
* Thu Jun 27 2013 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 0.9.3.3-0
|
|
- spec file generated by cabal-rpm-0.8.2
|