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