refresh with cabal-rpm-0.13 section delimiters
This commit is contained in:
parent
12db5f68b6
commit
1a8733af70
25
hledger.spec
25
hledger.spec
@ -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 hledger
|
||||
@ -19,11 +19,12 @@
|
||||
Name: %{pkg_name}
|
||||
Version: 1.5
|
||||
# can only be reset when all subpkgs bumped
|
||||
Release: 9%{?dist}
|
||||
Release: 10%{?dist}
|
||||
Summary: Command-line interface for the hledger accounting tool
|
||||
|
||||
License: GPLv3+
|
||||
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/%{here}/%{here}.tar.gz
|
||||
Source2: https://hackage.haskell.org/package/%{haskellsrcmeta}/%{haskellsrcmeta}.tar.gz
|
||||
@ -33,10 +34,11 @@ Source5: https://hackage.haskell.org/package/%{thliftinstances}/%{thlifti
|
||||
Source6: https://hackage.haskell.org/package/%{thorphans}/%{thorphans}.tar.gz
|
||||
Source7: https://hackage.haskell.org/package/%{threifymany}/%{threifymany}.tar.gz
|
||||
Source8: https://hackage.haskell.org/package/%{utilityht}/%{utilityht}.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-Decimal-devel
|
||||
BuildRequires: ghc-Diff-devel
|
||||
@ -136,20 +138,22 @@ This package provides the Haskell %{name} library development files.
|
||||
|
||||
%prep
|
||||
%setup -q -a1 -a2 -a3 -a4 -a5 -a6 -a7 -a8
|
||||
# End cabal-rpm setup
|
||||
|
||||
cabal-tweak-drop-dep mtl-compat
|
||||
|
||||
|
||||
%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 -Dp -m 0644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
|
||||
rm -r %{buildroot}%{_datadir}/%{pkgver}/{hledger.*,.otherdocs}
|
||||
@ -168,12 +172,20 @@ rm -r %{buildroot}%{_datadir}/%{pkgver}/{hledger.*,.otherdocs}
|
||||
|
||||
|
||||
%files
|
||||
# Begin cabal-rpm files:
|
||||
%license LICENSE
|
||||
%doc CHANGES README.md
|
||||
%{_bindir}/%{name}
|
||||
%{_datadir}/%{pkgver}
|
||||
# End cabal-rpm files
|
||||
%{_mandir}/man1/%{name}.1*
|
||||
|
||||
|
||||
%files -n ghc-%{name} -f ghc-%{name}.files
|
||||
# Begin cabal-rpm files:
|
||||
%license LICENSE
|
||||
%{_datadir}/%{pkgver}
|
||||
# End cabal-rpm files
|
||||
|
||||
|
||||
%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files
|
||||
@ -181,6 +193,9 @@ rm -r %{buildroot}%{_datadir}/%{pkgver}/{hledger.*,.otherdocs}
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Oct 24 2018 Jens Petersen <petersen@redhat.com> - 1.5-10
|
||||
- rebuild for static executable
|
||||
|
||||
* Sun Jul 22 2018 Jens Petersen <petersen@redhat.com> - 1.5-9
|
||||
- update to 1.5
|
||||
- add main manpage
|
||||
|
Loading…
x
Reference in New Issue
Block a user