refresh with cabal-rpm-0.13 section delimiters

This commit is contained in:
Jens Petersen 2018-10-23 00:12:11 +09:00
parent 339f58d1e1
commit 34c0b30a70
1 changed files with 20 additions and 7 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 darcs
@ -16,21 +16,23 @@
Name: %{pkg_name}
Version: 2.14.1
# can only be reset when all subpkgs bumped
Release: 17%{?dist}
Release: 18%{?dist}
Summary: Distributed Advanced Revision Control System
License: GPLv2+
Url: https://hackage.haskell.org/package/%{name}
# Begin cabal-rpm sources:
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1: https://hackage.haskell.org/package/%{dataordlist}/%{dataordlist}.tar.gz
Source2: https://hackage.haskell.org/package/%{graphviz}/%{graphviz}.tar.gz
Source3: https://hackage.haskell.org/package/%{regexapplicative}/%{regexapplicative}.tar.gz
Source4: https://hackage.haskell.org/package/%{regexcompattdfa}/%{regexcompattdfa}.tar.gz
Source5: https://hackage.haskell.org/package/%{wlpprinttext}/%{wlpprinttext}.tar.gz
# End cabal-rpm sources
# Begin cabal-rpm deps:
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros-extra
# Begin cabal-rpm deps:
BuildRequires: chrpath
BuildRequires: ghc-HTTP-devel
BuildRequires: ghc-array-devel
@ -151,7 +153,8 @@ This package provides the Haskell %{name} library development files.
%prep
%setup -q -n %{pkgver} -a1 -a2 -a3 -a4 -a5
%setup -q -a1 -a2 -a3 -a4 -a5
# End cabal-rpm setup
%ifnarch %{ix86} x86_64 ppc
cabal-tweak-flag threaded False
@ -165,15 +168,16 @@ cabal-tweak-dep-ver fgl '< 5.6' '< 5.7'
%build
# allow dist/build/darcs/darcs to generate manpage
export LD_LIBRARY_PATH=$PWD/dist/build
# Begin cabal-rpm build:
%ghc_libs_build %{subpkgs}
%ghc_lib_build
# End cabal-rpm build
%install
%ghc_libs_install %{subpkgs}
%ghc_lib_install
%ghc_fix_rpath %{pkgver}
mv %{buildroot}%{_ghclicensedir}/{,ghc-}%{name}
# End cabal-rpm install
install -Dpm 644 contrib/darcs_completion %{buildroot}%{_datadir}/bash-completion/darcs
@ -191,14 +195,20 @@ install -Dpm 644 contrib/darcs_completion %{buildroot}%{_datadir}/bash-completio
%files
# Begin cabal-rpm files:
%license COPYING
%doc README.md
%{_bindir}/%{name}
# End cabal-rpm files
%doc contrib/_darcs.zsh
%{_bindir}/darcs
%{_datadir}/bash-completion/
%attr(0644,-,-) %{_mandir}/man1/darcs.1*
%files -n ghc-%{name} -f ghc-%{name}.files
# Begin cabal-rpm files:
%license COPYING
# End cabal-rpm files
%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files
@ -206,6 +216,9 @@ install -Dpm 644 contrib/darcs_completion %{buildroot}%{_datadir}/bash-completio
%changelog
* Tue Oct 23 2018 Jens Petersen <petersen@redhat.com> - 2.14.1-18
- rebuild for static executable
* Sun Jul 22 2018 Jens Petersen <petersen@redhat.com> - 2.14.1-17
- update to 2.14.1
- fgl is now packaged