homebank/homebank.spec
Dominique Leuenberger c465b444e3 Accepting request 509992 from GNOME:Apps
New stable release, resub tweakedx2 (forwarded request 509414 from Zaitor)

OBS-URL: https://build.opensuse.org/request/show/509992
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/homebank?expand=0&rev=17
2017-07-17 07:10:07 +00:00

91 lines
2.6 KiB
RPMSpec

#
# spec file for package homebank
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: homebank
Version: 5.1.5
Release: 0
Summary: Application to manage personal accounts
License: GPL-2.0+
Group: Productivity/Office/Finance
Url: http://homebank.free.fr/
Source: http://homebank.free.fr/public/%{name}-%{version}.tar.gz
BuildRequires: gettext-devel
BuildRequires: intltool
BuildRequires: libofx-devel
# We need the %%mime_database_* macros
BuildRequires: shared-mime-info
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(glib-2.0) >= 2.39
BuildRequires: pkgconfig(gtk+-3.0) >= 3.16
BuildRequires: pkgconfig(libsoup-2.4)
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
HomeBank is an application to manage personal accounts at home. The main
concept is to be light, simple and very easy to use. It brings many
features that allows to analyze finances in a detailed way instantly and
dynamically with powerful report tools based on filtering and graphical
charts.
%lang_package
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
%make_install
%suse_update_desktop_file -G "Personal Accounting" %{name}
%find_lang %{name} %{?no_lang_C}
# Application Registry is obsolete since GNOME 2.8.
rm -r %{buildroot}%{_datadir}/application-registry
rm -r %{buildroot}%{_datadir}/mime-info
%post
%desktop_database_post
%icon_theme_cache_post
%mime_database_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%mime_database_postun
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/mime/packages/%{name}.xml
# own dir on older version of openSUSE
%if 0%{?suse_version} < 1320
%dir %{_datadir}/appdata/
%endif
%{_datadir}/appdata/homebank.appdata.xml
%files lang -f %{name}.lang
%defattr(-,root,root)
%changelog