File units.spec of Package units
#
# spec file for package units (Version 1.87)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# 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 v2.1 or later
Group: Productivity/Scientific/Physics
AutoReqProv: on
Version: 1.87
Release: 1
Summary: Units Conversion Utility
Source: units-%{version}.tar.gz
Patch: units-%{version}.diff
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
%patch
%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
* Wed Feb 13 2008 schwab@suse.de
- Update to units 1.85.
* Units reads ~/.units.dat if it exists before reading the standard
units database.
* Added support for ** as an exponent operator.
* Type 'search text' to list units that contain 'text' in their name.
* Precedence of '*' changed to match precedence of '/'.
(Multiplication by juxtaposition retains a higher precedence than
'/'.) The --oldstar option selects the old precedence and --newstar
forces the new precedence.
* Thu Mar 29 2007 schwab@suse.de
- Add bison to BuildRequires.
* Mon Dec 04 2006 schwab@suse.de
- Update to units 1.85.
* Added --one-line (-1) option which causes the program to print only
one line of output.
* Added --compact option which causes the program to print only the
conversion factors and a newline on output.
* Added build support for DESTDIR.
* Made minor changes that allow the program to be compiled into a
library and linked with other programs.
* Fixed bugs (including bus error on Intel Mac) and added
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Sun May 22 2005 schwab@suse.de
- Update to units 1.85.
* Thu Oct 07 2004 schwab@suse.de
- Update to units 1.80.
* Sat Sep 11 2004 schwab@suse.de
- Fix missing declarations.
* Sat Apr 17 2004 schwab@suse.de
- Pacify autobuild.
* Fri Feb 27 2004 schwab@suse.de
- Add %%defattr.
* Thu Apr 17 2003 coolo@suse.de
- use BuildRoot
* Tue Jan 14 2003 nadvornik@suse.cz
- fixed multi-line string literals
* Tue Sep 17 2002 ro@suse.de
- removed bogus self-provides
* Thu Jun 13 2002 uli@suse.de
- update -> 1.74 (rewritten parser supports () for grouping,
supports noninteger powers of numbers (e.g. 3^0.25), supports a bunch of
functions (log, ln, log2, sin, cos, tan, exp) which can have units as
arguments but they must reduce to dimensionless (e.g.
log(watts/horsepower)), supports sqrt(unit) and cuberoot(unit), higher
roots as unit^(1|4); functions can be defined in units.dat along with
their inverse, and conversion to a function by specifying it's name alone
as the "want" item; tables with linear interpolation)
* Fri Feb 23 2001 ro@suse.de
- added readline/readline-devel to neededforbuild (split from bash)
* Mon Sep 25 2000 uli@suse.de
- update -> 1.55
* Wed Mar 01 2000 schwab@suse.de
- Specfile cleanup, remove Makefile.Linux
- /usr/{info,man} -> /usr/share/{info,man}
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Wed Jan 22 1997 florian@suse.de
- first version of units 1.53