File gonvert.spec of Package gonvert

#
# spec file for package gonvert
#
# Copyright (c) 2011 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:           gonvert
Version:        0.2.25
Release:        1
License:        GPL-2.0+
Summary:        Unit Conversion Utility
Url:            http://unihedron.com/projects/gonvert/gonvert.php
Group:          Productivity/Scientific/Math
Source:         %{name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE gonvert-0.2.20-Makefile.patch -- fix paths
Patch1:         gonvert-0.2.20-Makefile.patch
# PATCH-FIX-OPENSUSE gonvert-0.2.20-desktopfile.patch -- fix name and icon
Patch2:         gonvert-0.2.20-desktopfile.patch
BuildRequires:  update-desktop-files
Requires:       python-gtk
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
gonvert is a conversion utility that allows conversion between many
units, like CGS, Ancient, and Imperial, with many categories, such as
length, mass, and numbers. All converted values are shown at once as
you type. It is easy to add and change your own units.

%prep
%setup -q
%patch1
%patch2

%build
make

%install
%make_install
%suse_update_desktop_file -r %{name} Education Math

%files
%defattr(-,root,root,0755)
%{_bindir}/gonvert
%doc %{_datadir}/doc/packages/gonvert
%{_datadir}/gonvert
%{_datadir}/applications/gonvert.desktop
%{_datadir}/pixmaps/*.png

%changelog
openSUSE Build Service is sponsored by