2014-12-23 21:22:34 +00:00
|
|
|
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
|
|
|
|
|
2014-11-06 16:26:11 +00:00
|
|
|
%global commit 720c03b139d251c53f9deef491f5953e2fdb97ca
|
2014-04-27 17:05:42 +00:00
|
|
|
|
|
|
|
Name: ledger
|
2014-11-06 16:26:11 +00:00
|
|
|
Version: 3.1
|
2016-01-18 21:53:45 +00:00
|
|
|
Release: 10%{?dist}
|
2014-04-27 17:05:42 +00:00
|
|
|
Summary: A powerful command-line double-entry accounting system
|
|
|
|
Group: Applications/Productivity
|
|
|
|
License: BSD
|
|
|
|
URL: http://ledger-cli.org/
|
|
|
|
Source0: https://github.com/ledger/ledger/archive/%{commit}/%{name}-%{version}.tar.gz
|
|
|
|
|
2014-11-06 16:26:11 +00:00
|
|
|
# A series of small commits from upstream that came shortly after the release
|
|
|
|
# of version 3.1, including a fix for FTBFS when building the documentation.
|
|
|
|
Patch1: %{name}-3.1-0001-Force-reconcile-to-use-scrubbed-values-incase-you-ar.patch
|
|
|
|
Patch2: %{name}-3.1-0002-Fix-texinfo-syntax-errors.patch
|
|
|
|
Patch3: %{name}-3.1-0003-BUILD_WEB_DOCS-implies-BUILD_DOCS.patch
|
|
|
|
Patch4: %{name}-3.1-0004-make-columns-default-to-terminal-width-as-returned-b.patch
|
|
|
|
Patch5: %{name}-3.1-0005-Typo-fix.patch
|
|
|
|
Patch6: %{name}-3.1-0006-Fix-numbers-from-example.patch
|
|
|
|
Patch7: %{name}-3.1-0007-Update-ledger3.texi.patch
|
|
|
|
Patch8: %{name}-3.1-0008-Update-ledger3.texi.patch
|
|
|
|
Patch9: %{name}-3.1-0009-Some-minor-changes.patch
|
2015-07-29 01:10:14 +00:00
|
|
|
# Together, these backports fix build with Boost 1.58
|
|
|
|
Patch10: https://github.com/ledger/ledger/commit/bcaca24de4264f89a94069701361988007e22e58.patch
|
|
|
|
Patch11: https://github.com/ledger/ledger/commit/a1cb25ad2d9a98ea9ec0bb3ee27fe3cde6046434.patch
|
2014-04-27 17:05:42 +00:00
|
|
|
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: emacs(bin)
|
|
|
|
BuildRequires: gettext-devel
|
|
|
|
BuildRequires: gmp-devel
|
|
|
|
BuildRequires: libedit-devel
|
|
|
|
BuildRequires: mpfr-devel
|
2014-05-04 16:39:04 +00:00
|
|
|
BuildRequires: python-devel
|
2014-04-27 17:05:42 +00:00
|
|
|
BuildRequires: utf8cpp-devel
|
|
|
|
|
|
|
|
# For building documentation.
|
2014-11-06 16:26:11 +00:00
|
|
|
BuildRequires: doxygen
|
2014-04-27 17:05:42 +00:00
|
|
|
BuildRequires: graphviz
|
|
|
|
BuildRequires: man2html
|
|
|
|
BuildRequires: texinfo
|
|
|
|
BuildRequires: texlive-cm-super
|
|
|
|
BuildRequires: texlive-ec
|
|
|
|
BuildRequires: texlive-eurosym
|
|
|
|
BuildRequires: texinfo-tex
|
|
|
|
|
|
|
|
Requires(post): /sbin/ldconfig
|
2010-09-13 19:22:32 +00:00
|
|
|
Requires(postun): /sbin/ldconfig
|
2014-04-27 17:05:42 +00:00
|
|
|
Requires(post): info
|
|
|
|
Requires(preun): info
|
2010-09-13 19:22:32 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Ledger is a powerful, double-entry accounting system that is accessed
|
|
|
|
from the UNIX command-line. This may put off some users — as there is
|
|
|
|
no flashy UI — but for those who want unparalleled reporting access to
|
|
|
|
their data, there really is no alternative.
|
|
|
|
|
2014-05-04 16:39:04 +00:00
|
|
|
%package python
|
|
|
|
Summary: Python bindings for %{name}
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description python
|
|
|
|
Python bindings for ledger.
|
|
|
|
|
2010-09-13 19:22:32 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Libraries and header files for %{name} development
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description devel
|
2014-05-04 16:39:04 +00:00
|
|
|
Libraries and header files for %{name} development.
|
2010-09-13 19:22:32 +00:00
|
|
|
|
|
|
|
%package -n emacs-%{name}
|
|
|
|
Summary: Emacs mode for %{name}
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: emacs(bin) >= %{_emacs_version}
|
|
|
|
%description -n emacs-%{name}
|
|
|
|
Emacs mode for %{name}.
|
|
|
|
|
|
|
|
%package -n emacs-%{name}-el
|
|
|
|
Summary: Emacs elisp source for %{name}
|
|
|
|
BuildArch: noarch
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: emacs-%{name} = %{version}-%{release}
|
|
|
|
%description -n emacs-%{name}-el
|
|
|
|
This package contains the elisp source files for using %{name} under
|
|
|
|
emacs. You do not need to install this package; use
|
|
|
|
emacs-%{name} instead.
|
|
|
|
|
2014-04-27 17:05:42 +00:00
|
|
|
|
2010-09-13 19:22:32 +00:00
|
|
|
%prep
|
2014-04-27 17:05:42 +00:00
|
|
|
%setup -q -n %{name}-%{commit}
|
2014-05-04 11:56:53 +00:00
|
|
|
%patch1 -p1
|
2014-05-04 13:08:54 +00:00
|
|
|
%patch2 -p1
|
2014-11-06 16:26:11 +00:00
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
|
|
|
%patch7 -p1
|
|
|
|
%patch8 -p1
|
|
|
|
%patch9 -p1
|
2015-07-27 21:14:46 +00:00
|
|
|
%patch10 -p1
|
2015-07-29 01:10:14 +00:00
|
|
|
%patch11 -p1
|
2014-04-27 17:05:42 +00:00
|
|
|
|
2010-09-13 19:22:32 +00:00
|
|
|
|
|
|
|
%build
|
2014-04-27 17:05:42 +00:00
|
|
|
./acprep --prefix=%{_prefix} update
|
|
|
|
%cmake . \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
|
|
|
-DBUILD_WEB_DOCS=1 \
|
|
|
|
-DBUILD_EMACSLISP:BOOL=ON \
|
2014-05-04 16:39:04 +00:00
|
|
|
-DCMAKE_SKIP_RPATH:BOOL=ON \
|
|
|
|
-DUSE_PYTHON=ON
|
2010-09-13 19:22:32 +00:00
|
|
|
make %{?_smp_mflags}
|
2014-04-27 17:05:42 +00:00
|
|
|
make doc
|
|
|
|
|
|
|
|
# Build info files.
|
|
|
|
pushd doc
|
|
|
|
makeinfo ledger3.texi
|
|
|
|
makeinfo ledger-mode.texi
|
|
|
|
popd
|
|
|
|
|
2010-09-13 19:22:32 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
|
2014-05-04 18:12:33 +00:00
|
|
|
# Bash completion
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d
|
|
|
|
install -p -m0644 contrib/ledger-completion.bash \
|
|
|
|
%{buildroot}%{_sysconfdir}/bash_completion.d/ledger
|
|
|
|
|
2015-07-29 01:10:14 +00:00
|
|
|
# Install documentation manually to a convenient directory layout
|
2014-04-27 17:05:42 +00:00
|
|
|
rm -rf %{buildroot}%{_docdir}
|
|
|
|
rm -rf %{buildroot}%{_infodir}/*
|
|
|
|
|
2014-05-04 18:12:33 +00:00
|
|
|
# Info files
|
2014-04-27 17:05:42 +00:00
|
|
|
cp -p doc/ledger3.info* %{buildroot}%{_infodir}
|
|
|
|
cp -p doc/ledger-mode.info %{buildroot}%{_infodir}
|
|
|
|
|
2014-05-04 18:12:33 +00:00
|
|
|
# Contrib scripts
|
2014-12-23 21:22:34 +00:00
|
|
|
mkdir -p %{buildroot}%{_pkgdocdir}/contrib
|
2014-05-04 18:12:33 +00:00
|
|
|
for i in bal bal-huquq entry getquote.pl getquote-uk.py ledger-du README repl.sh report tc ti to trend; do
|
2014-12-23 21:22:34 +00:00
|
|
|
install -p -m0644 contrib/${i} %{buildroot}%{_pkgdocdir}/contrib/${i}
|
2014-05-04 18:12:33 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
# Python example
|
2014-12-23 21:22:34 +00:00
|
|
|
mkdir -p %{buildroot}%{_pkgdocdir}/python
|
|
|
|
install -p -m0644 python/demo.py %{buildroot}%{_pkgdocdir}/python/demo.py
|
2014-05-04 18:12:33 +00:00
|
|
|
|
|
|
|
# Input samples
|
2014-12-23 21:22:34 +00:00
|
|
|
mkdir -p %{buildroot}%{_pkgdocdir}/samples
|
2014-05-04 18:12:33 +00:00
|
|
|
for i in demo.ledger drewr3.dat drewr.dat sample.dat wow.dat; do
|
2014-12-23 21:22:34 +00:00
|
|
|
install -p -m0644 test/input/${i} %{buildroot}%{_pkgdocdir}/samples/${i}
|
2014-05-04 18:12:33 +00:00
|
|
|
done
|
|
|
|
|
2014-04-27 17:05:42 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
# Tests all fail when removing rpath.
|
|
|
|
# make check
|
2010-09-13 19:22:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%post
|
2014-04-27 17:05:42 +00:00
|
|
|
/sbin/ldconfig
|
|
|
|
install-info %{_infodir}/ledger3.info %{_infodir}/dir || :
|
|
|
|
install-info %{_infodir}/ledger-mode.info %{_infodir}/dir || :
|
2010-09-13 19:22:32 +00:00
|
|
|
%preun
|
|
|
|
if [ $1 = 0 ]; then
|
2014-04-27 17:05:42 +00:00
|
|
|
install-info --delete %{_infodir}/ledger3.info %{_infodir}/dir || :
|
|
|
|
install-info --delete %{_infodir}/ledger-mode.info %{_infodir}/dir || :
|
2010-09-13 19:22:32 +00:00
|
|
|
fi
|
|
|
|
|
2014-04-27 17:05:42 +00:00
|
|
|
|
2010-09-13 19:22:32 +00:00
|
|
|
%files
|
2014-04-27 17:05:42 +00:00
|
|
|
%doc README.md
|
|
|
|
%doc doc/GLOSSARY.md doc/LICENSE doc/NEWS
|
|
|
|
%doc doc/ledger3.html doc/ledger-mode.html
|
|
|
|
%doc doc/ledger3.pdf doc/ledger-mode.pdf
|
2015-07-29 01:10:14 +00:00
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=728959
|
|
|
|
# These must be explicitly listed.
|
|
|
|
%doc %{_pkgdocdir}/contrib
|
|
|
|
%doc %{_pkgdocdir}/python
|
|
|
|
%doc %{_pkgdocdir}/samples
|
2014-04-27 17:05:42 +00:00
|
|
|
%{_bindir}/ledger
|
|
|
|
%{_infodir}/ledger3.info*
|
|
|
|
%{_infodir}/ledger-mode.info*
|
|
|
|
%{_libdir}/libledger.so.3
|
|
|
|
%{_mandir}/man1/ledger.1*
|
2014-05-04 18:12:33 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/bash_completion.d/ledger
|
2010-09-13 19:22:32 +00:00
|
|
|
|
|
|
|
%files -n emacs-%{name}
|
2014-04-27 17:05:42 +00:00
|
|
|
%dir %{_emacs_sitelispdir}/ledger-mode
|
|
|
|
%{_emacs_sitelispdir}/ledger-mode/*.elc
|
2010-09-13 19:22:32 +00:00
|
|
|
|
|
|
|
%files -n emacs-%{name}-el
|
2014-04-27 17:05:42 +00:00
|
|
|
%dir %{_emacs_sitelispdir}/ledger-mode
|
|
|
|
%{_emacs_sitelispdir}/ledger-mode/*.el
|
2010-09-13 19:22:32 +00:00
|
|
|
|
2014-05-04 16:39:04 +00:00
|
|
|
%files python
|
|
|
|
%{python2_sitearch}/ledger.so
|
|
|
|
|
2010-09-13 19:22:32 +00:00
|
|
|
%files devel
|
2014-04-27 17:05:42 +00:00
|
|
|
%{_includedir}/ledger
|
|
|
|
%{_libdir}/libledger.so
|
|
|
|
|
2010-09-13 19:22:32 +00:00
|
|
|
|
|
|
|
%changelog
|
2016-01-18 21:53:45 +00:00
|
|
|
* Mon Jan 18 2016 Jonathan Wakely <jwakely@redhat.com> - 3.1-10
|
|
|
|
- Rebuilt for Boost 1.60
|
|
|
|
|
2015-10-28 13:08:10 +00:00
|
|
|
* Wed Oct 28 2015 David Tardon <dtardon@redhat.com> - 3.1-9
|
|
|
|
- rebuild for ICU 56.1
|
|
|
|
|
2015-08-27 19:55:55 +00:00
|
|
|
* Thu Aug 27 2015 Jonathan Wakely <jwakely@redhat.com> - 3.1-8
|
|
|
|
- Rebuilt for Boost 1.59
|
|
|
|
|
2015-07-27 21:14:46 +00:00
|
|
|
* Mon Jul 27 2015 Adam Williamson <awilliam@redhat.com> - 3.1-7
|
2015-07-29 01:10:14 +00:00
|
|
|
- add patches from jwakely to fix build with Boost 1.58
|
|
|
|
- fix pkgdocdir usage
|
2015-07-27 21:14:46 +00:00
|
|
|
|
|
|
|
* Wed Jul 22 2015 David Tardon <dtardon@redhat.com>
|
2015-07-22 16:48:22 +00:00
|
|
|
- rebuild for Boost 1.58
|
|
|
|
|
2015-06-17 14:02:45 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-05-02 13:07:54 +00:00
|
|
|
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 3.1-5
|
|
|
|
- Rebuilt for GCC 5 C++11 ABI change
|
|
|
|
|
2015-01-26 22:33:18 +00:00
|
|
|
* Mon Jan 26 2015 Petr Machata <pmachata@redhat.com> - 3.1-4
|
|
|
|
- Rebuild for boost 1.57.0
|
|
|
|
|
2015-01-26 15:58:12 +00:00
|
|
|
* Mon Jan 26 2015 David Tardon <dtardon@redhat.com> - 3.1-3
|
|
|
|
- rebuild for ICU 54.1
|
|
|
|
|
2014-12-23 21:22:34 +00:00
|
|
|
* Tue Dec 23 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 3.1-2
|
|
|
|
- add conditional macro for _pkgdocdir
|
|
|
|
|
2014-11-06 16:26:11 +00:00
|
|
|
* Tue Nov 04 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 3.1-1
|
|
|
|
- update to upstream release 3.1
|
|
|
|
|
2014-08-26 11:57:25 +00:00
|
|
|
* Tue Aug 26 2014 David Tardon <dtardon@redhat.com> - 3.0.2-10
|
|
|
|
- rebuild for ICU 53.1
|
|
|
|
|
2014-08-17 01:45:42 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.2-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-07 02:11:56 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.2-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-23 11:15:37 +00:00
|
|
|
* Fri May 23 2014 Petr Machata <pmachata@redhat.com> - 3.0.2-7
|
|
|
|
- Rebuild for boost 1.55.0
|
|
|
|
|
2014-05-23 09:30:07 +00:00
|
|
|
* Fri May 23 2014 David Tardon <dtardon@redhat.com> - 3.0.2-6
|
|
|
|
- rebuild for boost 1.55.0
|
|
|
|
|
2014-05-04 18:12:33 +00:00
|
|
|
* Sun May 04 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 3.0.2-5
|
|
|
|
- include useful scripts from contrib/
|
|
|
|
- include more sample files
|
|
|
|
- include example python script (demo.py)
|
|
|
|
- add bash completion
|
|
|
|
|
2014-05-04 16:39:04 +00:00
|
|
|
* Sun May 04 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 3.0.2-4
|
|
|
|
- add ledger-python subpackage with Python bindings
|
|
|
|
- remove BR: doxygen for now (until jQuery is packaged)
|
|
|
|
|
2014-05-04 13:08:54 +00:00
|
|
|
* Sun May 04 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 3.0.2-3
|
|
|
|
- revert upstream commit aa2ff2b5 which caused a regression
|
|
|
|
|
2014-05-04 11:56:53 +00:00
|
|
|
* Sun Apr 27 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 3.0.2-2
|
|
|
|
- fix @node pointer errors in Info files resulting in broken navigation
|
|
|
|
|
2014-04-27 17:05:42 +00:00
|
|
|
* Sun Apr 27 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 3.0.2-1
|
|
|
|
- update to upstream release 3.0.2
|
|
|
|
- remove EL6 related macros
|
|
|
|
- update URL
|
|
|
|
- use specific commit hash to obtain sources from GitHub
|
|
|
|
- update BuildRequires and build using CMake
|
|
|
|
- build HTML/PDF documentation
|
|
|
|
- revert a patch from upstream that requires boost 1.55 (not yet available
|
|
|
|
on Fedora)
|
|
|
|
- libamounts now known as libledger
|
|
|
|
- use man page that is now built by upstream
|
|
|
|
|
2013-08-03 04:26:04 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.3-9.2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-02-14 03:49:25 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.3-8.2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-07-19 18:57:03 +00:00
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.3-7.2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-02-10 14:18:15 +00:00
|
|
|
* Fri Feb 10 2012 Petr Pisar <ppisar@redhat.com> - 2.6.3-6.2
|
|
|
|
- Rebuild against PCRE 8.30
|
|
|
|
|
2012-01-13 07:11:26 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.3-5.2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-10-21 07:43:45 +00:00
|
|
|
* Fri Oct 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.6.3-4.2
|
|
|
|
- rebuild with new gmp without compat lib
|
|
|
|
|
2011-10-11 23:25:57 +00:00
|
|
|
* Wed Oct 12 2011 Peter Schiffer <pschiffe@redhat.com> - 2.6.3-4.1
|
|
|
|
- rebuild with new gmp
|
|
|
|
|
2011-02-08 04:01:10 +00:00
|
|
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.3-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-09-29 21:36:17 +00:00
|
|
|
* Wed Sep 29 2010 jkeating - 2.6.3-3
|
|
|
|
- Rebuilt for gcc bug 634757
|
|
|
|
|
2010-09-13 19:22:32 +00:00
|
|
|
* Tue Jul 6 2010 Jim Radford <radford@blackbean.org> - 2.6.3-2
|
|
|
|
- Only support emacs until someone tests xemacs
|
|
|
|
|
|
|
|
* Tue Jul 6 2010 Jim Radford <radford@blackbean.org> - 2.6.3-1
|
|
|
|
- Upgrade to 2.6.2
|
|
|
|
|
|
|
|
* Thu Jan 1 2009 Jim Radford <radford@blackbean.org> - 2.6.1-1
|
|
|
|
- Initial release
|