Update package to 3.1.3
This commit is contained in:
parent
cac3f263f5
commit
3c732f0cca
|
@ -2,3 +2,4 @@ ledger-2.6.3.tar.gz
|
|||
/ledger-3.0.2.tar.gz
|
||||
/ledger-3.1.tar.gz
|
||||
/ledger-3.1.1.tar.gz
|
||||
/ledger-49b07a1.tar.gz
|
||||
|
|
79
ledger.spec
79
ledger.spec
|
@ -1,21 +1,19 @@
|
|||
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
|
||||
|
||||
%global commit 49b07a1c19489547b859d61fbc5c240aff224dda
|
||||
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
||||
|
||||
Name: ledger
|
||||
Version: 3.1.1
|
||||
Release: 24%{?dist}
|
||||
Version: 3.1.3
|
||||
Release: 1.20191025git49b07a1%{?dist}
|
||||
Summary: A powerful command-line double-entry accounting system
|
||||
License: BSD
|
||||
URL: http://ledger-cli.org/
|
||||
Source0: https://github.com/ledger/ledger/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
|
||||
# https://github.com/ledger/ledger/pull/465
|
||||
Patch0: ledger-3.1.1-fix-boost-1.61.patch
|
||||
Patch1: ledger-3.1.1-Amend-sha1.hpp-path.patch
|
||||
Source0: https://github.com/ledger/ledger/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
|
||||
|
||||
BuildRequires: boost-devel
|
||||
BuildRequires: boost-python2-devel
|
||||
BuildRequires: cmake
|
||||
BuildRequires: emacs(bin)
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: gettext-devel
|
||||
|
@ -49,55 +47,34 @@ Requires: %{name} = %{version}-%{release}
|
|||
%description devel
|
||||
Libraries and header files for %{name} development.
|
||||
|
||||
%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.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -qn %{name}-%{version}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%autosetup -n %{name}-%{commit}
|
||||
# Avoid texinfo errors on EL7.
|
||||
%if 0%{?rhel} == 7
|
||||
sed -i -e 's#FIXME:UNDOCUMENTED#FIXMEUNDOCUMENTED#g' doc/ledger3.texi
|
||||
%endif
|
||||
rm -r lib/utfcpp
|
||||
|
||||
|
||||
%build
|
||||
%cmake . \
|
||||
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
||||
-DCMAKE_SKIP_RPATH:BOOL=ON \
|
||||
-DUSE_PYTHON:BOOL=OFF \
|
||||
-DUSE_DOXYGEN:BOOL=ON \
|
||||
-DBUILD_WEB_DOCS:BOOL=ON \
|
||||
-DBUILD_EMACSLISP:BOOL=ON
|
||||
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
||||
-DCMAKE_SKIP_RPATH:BOOL=ON \
|
||||
-DUSE_PYTHON:BOOL=OFF \
|
||||
-DUSE_DOXYGEN:BOOL=ON \
|
||||
-DBUILD_WEB_DOCS:BOOL=ON
|
||||
|
||||
make
|
||||
make doc
|
||||
%make_build
|
||||
%__make doc
|
||||
|
||||
# Build info files.
|
||||
pushd doc
|
||||
makeinfo ledger3.texi
|
||||
makeinfo ledger-mode.texi
|
||||
popd
|
||||
|
||||
|
||||
%install
|
||||
make install DESTDIR=%{buildroot}
|
||||
%make_install
|
||||
|
||||
# Bash completion
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d
|
||||
|
@ -110,7 +87,6 @@ rm -rf %{buildroot}%{_infodir}/*
|
|||
|
||||
# Info files
|
||||
cp -p doc/ledger3.info* %{buildroot}%{_infodir}
|
||||
cp -p doc/ledger-mode.info %{buildroot}%{_infodir}
|
||||
|
||||
# Contrib scripts
|
||||
mkdir -p %{buildroot}%{_pkgdocdir}/contrib
|
||||
|
@ -124,41 +100,36 @@ for i in demo.ledger drewr3.dat drewr.dat sample.dat wow.dat; do
|
|||
install -p -m0644 test/input/${i} %{buildroot}%{_pkgdocdir}/samples/${i}
|
||||
done
|
||||
|
||||
|
||||
%check
|
||||
# Tests all fail when removing rpath.
|
||||
# make check
|
||||
LD_LIBRARY_PATH=$PWD %__make check
|
||||
|
||||
%files
|
||||
%doc README.md doc/GLOSSARY.md doc/NEWS
|
||||
%doc doc/ledger3.html doc/ledger-mode.html
|
||||
%doc doc/ledger3.pdf doc/ledger-mode.pdf
|
||||
%doc README.md doc/GLOSSARY.md doc/NEWS.md
|
||||
%doc doc/ledger3.html
|
||||
%doc doc/ledger3.pdf
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=728959
|
||||
# These must be explicitly listed.
|
||||
%doc %{_pkgdocdir}/contrib
|
||||
%doc %{_pkgdocdir}/samples
|
||||
%{_bindir}/ledger
|
||||
%{_infodir}/ledger3.info*
|
||||
%{_infodir}/ledger-mode.info*
|
||||
%{_libdir}/libledger.so.3
|
||||
%{_mandir}/man1/ledger.1*
|
||||
%config(noreplace) %{_sysconfdir}/bash_completion.d/ledger
|
||||
%license LICENSE.md
|
||||
|
||||
%files -n emacs-%{name}
|
||||
%dir %{_emacs_sitelispdir}/ledger-mode
|
||||
%{_emacs_sitelispdir}/ledger-mode/*.elc
|
||||
|
||||
%files -n emacs-%{name}-el
|
||||
%dir %{_emacs_sitelispdir}/ledger-mode
|
||||
%{_emacs_sitelispdir}/ledger-mode/*.el
|
||||
|
||||
%files devel
|
||||
%{_includedir}/ledger
|
||||
%{_libdir}/libledger.so
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Oct 25 2019 Jani Juhani Sinervo <jani@sinervo.fi> - 3.1.3-1.20191025git49b07a1
|
||||
- Update to version 3.1.3
|
||||
- emacs-ledger and emacs-ledger-el have been separated from the main tree
|
||||
- Enable tests
|
||||
|
||||
* Wed Oct 9 2019 Jerry James <loganjerry@gmail.com> - 3.1.1-24
|
||||
- Rebuild for mpfr 4
|
||||
|
||||
|
|
2
sources
2
sources
|
@ -1 +1 @@
|
|||
SHA512 (ledger-3.1.1.tar.gz) = 3f81b98a414cdfc0e272de4e958770149fb1acc8bda880d270e1459ce35294a220c52820bb9af49a751ac3a80b878f81fc7799ba41e0a1be43eba72081351bf5
|
||||
SHA512 (ledger-49b07a1.tar.gz) = 2490394faa596dcca05a0531d8d4c00108dc90f3df3127435db01fe3387d0671be14e5910538bdbfead3ba2be83eea5f631883c1df24477e36ecdf68afc06d10
|
||||
|
|
Loading…
Reference in New Issue