File units.spec of Package units
#
# spec file for package units
#
# 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: units
Url: http://www.gnu.org/software/units/
BuildRequires: bison
BuildRequires: readline-devel
Version: 2.02
Release: 0
Summary: Conversion Utility
License: LGPL-2.1+
Group: Productivity/Scientific/Physics
Source0: http://ftp.gnu.org/gnu/units/units-%{version}.tar.gz
Source1: http://ftp.gnu.org/gnu/units/units-2.02.tar.gz.sig
Source2: units.keyring
%if 0%{?suse_version} >= 1230
BuildRequires: gpg-offline
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: %install_info_prereq
%description
The 'units' program converts quantities expressed in various scales to
their equivalents in other scales.
Units can also convert temperature values (Fahrenheit to Celsius, for
example) but this needs a slightly different input syntax. See the man
page for details.
Authors:
--------
Adrian Mariano <adrian@cam.cornell.edu>
%prep
%{?gpg_verify: %gpg_verify %{SOURCE1}}
%setup
%build
%configure
make
%install
make DESTDIR=$RPM_BUILD_ROOT install
%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
%files
%defattr(-, root, root)
/usr/bin/units*
/usr/share/units
%doc %{_infodir}/units.info.gz
%doc %{_mandir}/man1/units.1.gz
%changelog