File galculator.spec of Package galculator
#
# spec file for package galculator
#
# Copyright (c) 2012 SUSE LINUX Products 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: galculator
Summary: A GTK 2/3 based calculator
License: GPL-2.0
Group: System/GUI/GNOME
Version: 2.0.1
Release: 0
Url: http://galculator.sourceforge.net/index.html
Source0: %name-%version.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: flex
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: gtk2-devel
BuildRequires: intltool
BuildRequires: libglade2-devel
BuildRequires: libtool
BuildRequires: make
BuildRequires: pkg-config
BuildRequires: update-desktop-files
%description
Galculator is a GTK 2 based calculator with ordinary notation/reverse
polish notation, a formula entry mode, different number bases
(DEC, HEX, OCT, BIN) and different units of angular measure
(DEG, RAD, GRAD).
%prep
%setup -q
%build
%configure --enable-gtk3=no
%__make %{?jobs:-j%{jobs}}
%install
%makeinstall
%suse_update_desktop_file -r %name GTK Utility Calculator
%find_lang %name
%fdupes -s %{buildroot}
%clean
%__rm -fr %buildroot
%if 0%{?suse_version} >= 1140
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif
%files -f %name.lang
%defattr(-,root,root)
%_bindir/%name
%_datadir/applications/*
%dir %_datadir/%name
%dir %_datadir/%name/ui
%_datadir/%name/ui/*.ui
%_datadir/icons/hicolor/48x48/apps/galculator.png
%_datadir/icons/hicolor/scalable/apps/galculator.svg
%_mandir/man1/%name.1.gz
%_datadir/pixmaps/%name.*
%changelog