File gonvert.spec of Package gonvert

#
# spec file for package gonvert (Version 0.2.24)
#
# Copyright (c) 2010 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/
#

# norootforbuild


Name:           gonvert
BuildRequires:  update-desktop-files
Summary:        Unit Conversion Utility
Version:        0.2.24
Release:        1
Source:         %{name}-%{version}.tar.bz2
Patch1:         %{name}-0.2.20-Makefile.patch
Patch2:         %{name}-0.2.20-desktopfile.patch
Url:            http://unihedron.com/projects/gonvert/gonvert.php
Group:          Productivity/Scientific/Math
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       python-gtk
License:        GPLv2+
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
%patch1
%patch2
#delete waste from doc
%__rm doc/*~

%build
make

%install
%makeinstall
%suse_update_desktop_file -r %name Math

%clean
[ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}"

%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