]> git.pld-linux.org Git - packages/gnucash.git/blob - gnucash.spec
c75e3ad95228fd9af1519f732b9fe934f8c38db8
[packages/gnucash.git] / gnucash.spec
1 Name:           gnucash
2 Summary:        GnuCash is an application to keep track of your finances.
3 Version:        1.3.5
4 Release:        0
5 Copyright:      Free Software Foundation
6 Group:          Applications/Finance
7 Source0:        http://www.gnucash.org/pub/gnucash/sources/stable/%{name}-%{PACKAGE_VERSION}.tar.gz
8 URL:            Http://www.gnucash.org
9 Patch0:         gnucash-makefile.patch
10 Requires:       slib
11 Requires:       guile >= 1.3
12 BuildRequires:  gnome-libs-devel
13 BuildRequires:  esound-devel
14 BuildRequires:  libxml-devel
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 GnuCash is a personal finance manager. A check-book like register GUI
19 allows you to enter and track bank accounts, stocks, income and even
20 currency trades. The interface is designed to be simple and easy to use,
21 but is backed with double-entry accounting principles to ensure balanced
22 books.
23
24 %prep
25 %setup -q
26 %patch -p1
27
28 %build
29 CFLAGS="$RPM_OPT_FLAGS" \
30 CXXFLAGS="$RPM_OPT_FLAGS" \
31 LDFLAGS="-s" \
32 ./configure --prefix=%{_prefix} --sysconfdir=%{_sysconfdir} --mandir=%{_mandir}
33 make gnome
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 make prefix=$RPM_BUILD_ROOT%{_prefix} sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} \
38 mandir=$RPM_BUILD_ROOT%{_mandir} \
39 GNC_DOCDIR=$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/ install
40
41 strip --strip-unneed $RPM_BUILD_ROOT%{_libdir}/gnucash/gnucash.so
42
43 gzip -9nfr $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/* $RPM_BUILD_ROOT%{_mandir}/man1/*
44
45 %find_lang %{name}
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %files -f %{name}.lang
51 %defattr(644,root,root,755)
52 %attr(755,root,root) %{_bindir}/gnucash.gnome
53 %attr(755,root,root) %{_bindir}/gnucash
54 %attr(755,root,root) %{_bindir}/gnc-prices
55 %{_libdir}/gnucash
56 %{_mandir}/man1/*
57 %{_datadir}/gnucash/html/C
58 %lang(fr) %{_datadir}/gnucash/html/fr
59 %{_datadir}/gnucash/html/logos
60 %{_datadir}/gnucash/html/gnucash.css
61 %{_datadir}/gnucash/scm
62 %{_sysconfdir}/gnucash/config
63 %{_datadir}/gnome/apps/Applications/gnucash.desktop
64 %doc %{_docdir}/%{name}-%{version}/
This page took 0.37669 seconds and 3 git commands to generate.