]> git.pld-linux.org Git - packages/gnucash.git/blob - gnucash.spec
- buildrequires GConf-devel
[packages/gnucash.git] / gnucash.spec
1 %include        /usr/lib/rpm/macros.perl
2 Summary:        GnuCash is an application to keep track of your finances
3 Summary(pl):    GnuCash - aplikacja do zarz±dzania twoimi finansami
4 Name:           gnucash
5 Version:        1.6.4
6 Release:        5
7 License:        GPL
8 Group:          X11/Applications
9 Group(de):      X11/Applikationen
10 Group(pl):      X11/Aplikacje
11 Source0:        http://www.gnucash.org/pub/gnucash/sources/stable/%{name}-%{version}.tar.gz
12 Source1:        %{name}-icon.png
13 URL:            http://www.gnucash.org/
14 Requires:       slib
15 Requires:       guile >= 1.3.4
16 Requires:       gnome-print >= 0.21
17 Requires:       perl
18 BuildRequires:  autoconf
19 BuildRequires:  automake
20 BuildRequires:  bonobo-devel
21 BuildRequires:  db3-devel
22 BuildRequires:  gal-devel
23 BuildRequires:  GConf-devel
24 BuildRequires:  gdk-pixbuf-devel
25 BuildRequires:  gettext-devel
26 BuildRequires:  gnome-libs-devel
27 BuildRequires:  gnome-print-devel
28 BuildRequires:  gtk+-devel
29 BuildRequires:  gtkhtml-devel >= 0.8
30 BuildRequires:  guile-devel
31 BuildRequires:  Guppi-devel
32 BuildRequires:  g-wrap-devel >= 1.1.9
33 BuildRequires:  libghttp-devel
34 BuildRequires:  libglade-devel
35 BuildRequires:  libtool
36 BuildRequires:  libxml-devel
37 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
39 %define         _prefix         /usr/X11R6
40 %define         _mandir         %{_prefix}/man
41 %define         _sysconfdir     /etc/X11
42
43 %description
44 GnuCash is a personal finance manager. A check-book like register GUI
45 allows you to enter and track bank accounts, stocks, income and even
46 currency trades. The interface is designed to be simple and easy to
47 use, but is backed with double-entry accounting principles to ensure
48 balanced books.
49
50 %description -l pl
51 GnuCash jest mened¿erem finansów osobistych. Pozwala na ¶ledzenie i 
52 wpisywanie zasobów na swoich kontach bankowych, zak³adów. Daje
53 wgl±d nawet w kursy walut. Interfejs zosta³ zaprojektowany z my¶l±
54 o prostocie i ³atwo¶ci u¿ycia.
55
56 %prep -q
57 %setup -q
58
59 %build
60 #rm -f missing src/guile/Makefile.in
61 #aclocal -I ./macros
62 #libtoolize --copy --force
63 #automake -a -c
64 #autoconf
65
66 CFLAGS='%{rpmcflags} -L/usr/X11R6/lib -I/usr/X11R6/include -ldb3'
67 export CFLAGS
68 %configure2_13
69
70 %{__make}
71
72 %install
73 rm -rf $RPM_BUILD_ROOT
74
75 %{__make} install \
76         DESTDIR=$RPM_BUILD_ROOT \
77         GNC_DOC_INSTALL_DIR=%{_docdir}/%{name}-%{version}/ \
78         gnomeappdir=%{_applnkdir}/Office/Misc
79
80 mv $RPM_BUILD_ROOT%{_applnkdir}/Office/Misc/gnucach.desktop{,.tmp}
81 sed -e 's/=gnome-money.png/=gnucach-icon.png/' \
82         < mv $RPM_BUILD_ROOT%{_applnkdir}/Office/Misc/gnucach.desktop.tmp \
83         > mv $RPM_BUILD_ROOT%{_applnkdir}/Office/Misc/gnucach.desktop
84 rm $RPM_BUILD_ROOT%{_applnkdir}/Office/Misc/gnucach.desktop.tmp
85
86 install %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir}
87
88 gzip -9nf $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/[!e]*
89
90 %find_lang %{name} --with-gnome
91
92 %clean
93 rm -rf $RPM_BUILD_ROOT
94
95 %post   -p /sbin/ldconfig
96 %postun -p /sbin/ldconfig
97
98 %files -f %{name}.lang
99 %defattr(644,root,root,755)
100 %attr(755,root,root) %{_bindir}/*
101 %{_libdir}/libgncengine.so.*.*.*
102 %{_mandir}/*/*
103 %{_infodir}/*
104 %{_applnkdir}/Office/Misc/*
105 %{_datadir}/%{name}
106 %{_datadir}/mime-info/*
107 %{_pixmapsdir}/%{name}
108 %{_sysconfdir}/gnucash
109 %doc %{_docdir}/%{name}-%{version}/
This page took 0.073885 seconds and 4 git commands to generate.