forked from pool/gperiodic
64 lines
1.8 KiB
RPMSpec
64 lines
1.8 KiB
RPMSpec
|
#
|
||
|
# spec file for package gperiodic
|
||
|
#
|
||
|
# Copyright (c) 2014 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: gperiodic
|
||
|
Version: 3.0.0
|
||
|
Release: 0
|
||
|
Summary: A program for looking up data of elements from the periodic table
|
||
|
License: GPL-2.0+
|
||
|
Group: Productivity/Scientific/Chemistry
|
||
|
Url: http://frantz.fi/software/gperiodic.php
|
||
|
|
||
|
Source: http://download.sf.net/gperiodic/%name-%version.tar.gz
|
||
|
Patch1: all.diff
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
BuildRequires: pkgconfig(gtk+-2.0)
|
||
|
BuildRequires: intltool
|
||
|
|
||
|
%description
|
||
|
GPeriodic is a program for looking up data of elements from the
|
||
|
periodic table. This program also features a non-graphical interface.
|
||
|
|
||
|
%lang_package
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
%patch -P 1 -p1
|
||
|
|
||
|
%build
|
||
|
perl -i -pe 's{^\tmake\b}{\t\$(MAKE)}g' Makefile # reenable parallel build
|
||
|
make %{?_smp_mflags} CFLAGS="%optflags"
|
||
|
|
||
|
%install
|
||
|
%make_install
|
||
|
%find_lang %name
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%_bindir/gperiodic
|
||
|
%_mandir/man1/gperiodic*
|
||
|
%_datadir/applications/gperiodic*
|
||
|
%_datadir/icons/*
|
||
|
%_datadir/pixmaps/gperiodic*
|
||
|
%doc gpl.txt
|
||
|
|
||
|
%files lang -f %name.lang
|
||
|
%defattr(-,root,root)
|
||
|
|
||
|
%changelog
|