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