refresh with cabal-rpm-0.13 section delimiters

This commit is contained in:
Jens Petersen 2018-10-22 20:13:46 +09:00
parent 65d900d568
commit 5b5128ec7d
1 changed files with 29 additions and 17 deletions

View File

@ -1,4 +1,4 @@
# generated by cabal-rpm-0.12.5
# generated by cabal-rpm-0.13
# https://fedoraproject.org/wiki/Packaging:Haskell
%global pkg_name cpphs
@ -6,16 +6,18 @@
Name: %{pkg_name}
Version: 1.20.8
Release: 4%{?dist}
Release: 5%{?dist}
Summary: A liberalised C pre-processor for Haskell
License: GPL+ and LGPLv2+
URL: http://hackage.haskell.org/package/%{name}
Source0: http://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
Url: https://hackage.haskell.org/package/%{name}
# Begin cabal-rpm sources:
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
# End cabal-rpm sources
# Begin cabal-rpm deps:
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
# Begin cabal-rpm deps:
BuildRequires: ghc-directory-devel
BuildRequires: ghc-old-locale-devel
BuildRequires: ghc-old-time-devel
@ -23,15 +25,14 @@ BuildRequires: ghc-polyparse-devel
# End cabal-rpm deps
%description
Cpphs is a re-implementation of the C pre-processor that is both
more compatible with Haskell, and itself written in Haskell so
that it can be distributed with compilers.
Cpphs is a re-implementation of the C pre-processor that is both more
compatible with Haskell, and itself written in Haskell so that it can be
distributed with compilers.
This version of the C pre-processor is pretty-much
feature-complete and compatible with traditional (K&R)
pre-processors. Additional features include: a plain-text mode;
an option to unlit literate code files; and an option to turn
off macro-expansion.
This version of the C pre-processor is pretty-much feature-complete and
compatible with traditional (K&R) pre-processors. Additional features include:
a plain-text mode; an option to unlit literate code files; and an option to
turn off macro-expansion.
%package -n ghc-%{name}
@ -60,14 +61,17 @@ This package provides the Haskell %{name} library development files.
%prep
%setup -q
# end of cabal-rpm setup
%build
%ghc_lib_build
# end of cabal-rpm build
%install
%ghc_lib_install
# end of cabal-rpm install
install -D -p -m 0644 docs/cpphs.1 %{buildroot}%{_mandir}/man1/%{name}.1
@ -84,21 +88,29 @@ rm %{buildroot}%{_defaultlicensedir}/%{name}/LICENCE-LGPL
%files
# Begin cabal-rpm files:
%license LICENCE-GPL
%doc README docs/index.html
%doc CHANGELOG README
%{_bindir}/%{name}
# End cabal-rpm files
%{_mandir}/man1/%{name}.1*
%doc docs/index.html
%files -n ghc-%{name} -f ghc-%{name}.files
%license LICENCE-LGPL LICENCE-GPL
# Begin cabal-rpm files:
%license LICENCE-LGPL
%license LICENCE-GPL
# End cabal-rpm files
%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files
%doc README
%doc CHANGELOG README
%changelog
* Mon Oct 22 2018 Jens Petersen <petersen@redhat.com> - 1.20.8-5
- rebuild for static executable
* Sat Jul 28 2018 Jens Petersen <petersen@redhat.com> - 1.20.8-4
- rebuild