LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File galculator.spec of Package galculator (Project X11:lxde)

#
# spec file for package galculator
#
# Copyright (c) 2013 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
Version:        2.1.3
Release:        0
Summary:        A GTK 2/3 based calculator
License:        GPL-2.0+
Group:          System/GUI/GNOME
Url:            http://galculator.sourceforge.net/index.html
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
BuildRequires:  flex
BuildRequires:  intltool
BuildRequires:  libtool
BuildRequires:  pkg-config
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(gtk+-2.0)
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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).

%lang_package

%prep
%setup -q

%build
%configure --enable-gtk3=no
make %{?_smp_mflags}

%install
%make_install
%suse_update_desktop_file -r %{name} GTK Utility Calculator
%find_lang %{name}

%post
%desktop_database_post
%icon_theme_cache_post

%postun
%desktop_database_postun
%icon_theme_cache_postun

%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README THANKS doc/shortcuts
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/*
%{_datadir}/icons/hicolor/*/*/%{name}.*
%{_datadir}/pixmaps/%{name}.*
%{_mandir}/man1/%{name}.1.gz

%files lang -f %{name}.lang

%changelog