hledger/hledger.spec

91 lines
2.0 KiB
RPMSpec
Raw Normal View History

2012-07-10 04:14:08 +00:00
# cabal2spec-0.25.4
# https://fedoraproject.org/wiki/Packaging:Haskell
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name hledger
%global common_summary A double-entry accounting tool
%global common_description hledger reads a plain text general journal or time log \
describing your transactions and displays precise \
balance and register reports on the console. \
It is a remix, in haskell, of John Wiegley's excellent c++ \
ledger. hledger aims to be a practical, accessible tool \
for end users and a useful library for finance-minded \
haskell programmers.
%global ghc_without_dynamic 1
Name: %{pkg_name}
Version: 0.17
Release: 2%{?dist}
2012-07-10 04:14:08 +00:00
Summary: Haskell %{pkg_name}
Group: Applications/Productivity
License: GPLv3
# BEGIN cabal2spec
URL: http://hackage.haskell.org/package/%{name}
Source0: http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz
ExclusiveArch: %{ghc_arches}
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros %{!?without_hscolour:hscolour}
# END cabal2spec
BuildRequires: ghc-HUnit-devel
BuildRequires: ghc-cabal-file-th-devel
BuildRequires: ghc-csv-devel
BuildRequires: ghc-haskeline-devel
BuildRequires: ghc-hledger-lib-devel
BuildRequires: ghc-mtl-devel
BuildRequires: ghc-parsec-devel
BuildRequires: ghc-regexpr-devel
BuildRequires: ghc-safe-devel
BuildRequires: ghc-split-devel
BuildRequires: ghc-utf8-string-devel
%description
%{common_description}
%prep
%setup -q
%build
%ghc_lib_build
%install
%ghc_lib_install
# library subpackage
%ghc_package
%ghc_description
# devel subpackage
%ghc_devel_package
%ghc_devel_description
%ghc_devel_post_postun
%files
%doc LICENSE
%attr(755,root,root) %{_bindir}/%{name}
%ghc_files
%changelog
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2012-07-10 04:14:08 +00:00
* Wed Feb 29 2012 Ben Boeckel <mathstuf@gmail.com> - 0.17-1
- Initial package