File units.spec of Package units
#
# spec file for package units (Version 1.88)
#
# 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/
#
Name: units
Url: http://www.gnu.org/software/units/
BuildRequires: bison readline-devel
License: LGPL-2.1+
Group: Productivity/Scientific/Physics
AutoReqProv: on
Version: 1.88
Release: 1
Summary: Units Conversion Utility
Source: units-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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
%setup
%build
./configure CFLAGS="$RPM_OPT_FLAGS" \
--prefix=/usr --infodir=%{_infodir} --mandir=%{_mandir}
%install
make DESTDIR=$RPM_BUILD_ROOT install
%files
%defattr(-, root, root)
/usr/bin/units
/usr/share/units.dat
%doc %{_infodir}/units.info.gz
%doc %{_mandir}/man1/units.1.gz
%changelog