SHA256
1
0
forked from pool/grisbi
grisbi/grisbi.spec

119 lines
3.2 KiB
RPMSpec
Raw Normal View History

#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: grisbi
Version: 0.6.0
Release: 0
License: GNU General Public License (GPL)
Summary: Personal Accounting Application
Url: http://www.grisbi.org
Group: Productivity/Office/Finance
Source: http://prdownloads.sourceforge.net/grisbi/grisbi-%{version}.tar.bz2
Source1: grisbi.desktop
BuildRequires: fdupes
BuildRequires: cunit-devel
BuildRequires: gcc
BuildRequires: glibc-devel
BuildRequires: gnome-mime-data
BuildRequires: make
BuildRequires: openssl-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: zlib-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libofx-devel
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: intltool
BuildRequires: update-desktop-files
%description
Grisbi is a personnal accounting application for Linux, written with Gnome and
Gtk, and is released under the GPL licence.
Our aim is to provide you with the most simple and intuitive software for
basic use, although it can be very powerful if you spend a little time on the
setup.
Grisbi is an application written by French developpers, so it perfectly
respects French accounting rules. Grisbi can manage multiple accounts,
currencies and users. It manages third party, expenditure and receipt
categories, and also budgetary lines, financial years, and other informations
that make Grisbi adapted for associations (except those that require double
entry accounting).
%lang_package
%debug_package
%prep
%setup -q
%build
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1"
CFLAGS="%{optflags} -g" \
CXXFLAGS="%{optflags} -g" \
%configure \
--disable-schemas-install \
--includedir="%{_prefix}" \
--with-ofx
make %{?jobs:-j%{jobs}}
%install
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1"
%make_install
%__rm "%{buildroot}%{_libdir}/grisbi"/*.{a,la}
install -D -m 0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop"
%suse_update_desktop_file -r "%{name}" Office Finance
%fdupes -s %{buildroot}/%{_datadir}
%find_lang "%{name}"
%find_lang "%{name}-tips"
cat "%{name}.lang" "%{name}-tips.lang" > t
mv t "%{name}.lang"
L="$PWD/%{name}.lang"
pushd "%{buildroot}%{_datadir}/grisbi/categories"
/bin/ls -1 | while read l; do
[ -d "$l" ] || continue
[ "$l" = "C" ] && continue
echo "%lang($l) %{_datadir}/grisbi/categories/$l" >>"$L"
done
popd
%check
make check
%clean
%{?buildroot:rm -rf %{buildroot}}
%files
%defattr(-,root,root)
%doc ABOUT-NLS AUTHORS COPYING NEWS README
%{_bindir}/grisbi
%{_datadir}/doc/grisbi
%{_datadir}/mime-info/grisbi.keys
%{_datadir}/mime-info/grisbi.mime
%{_datadir}/pixmaps/grisbi
%{_datadir}/applications/grisbi.desktop
%doc %{_mandir}/man1/grisbi.1%{ext_man}
%dir %{_libdir}/grisbi
%{_libdir}/grisbi/gnucash.so
%{_libdir}/grisbi/ofx.so
%{_libdir}/grisbi/openssl.so
%dir %{_datadir}/grisbi
%dir %{_datadir}/grisbi/categories
%{_datadir}/grisbi/categories/C
%{_datadir}/grisbi/tips.txt
%{_datadir}/icons/*/*/apps/grisbi.*
%files lang -f "%{name}.lang"
%defattr(-,root,root)
# vim: set sw=4 ts=4 et: