Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37868011
en ru br
ALT Linux repos
S:2.21-alt1
5.0: 1.87-alt1
4.1: 1.87-alt1
4.0: 1.86-alt1
3.0: 1.80-alt2

Group :: Office
RPM: units

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: units
Version: 1.86
Release: alt1

Packager: Stanislav Ievlev <inger at altlinux.org>

Summary: A utility for converting amounts from one unit to another
License: GPL
Group: Office

Source: ftp://ftp.gnu.org/pub/gnu/%name/%name-%version.tar
Patch: %name-1.55-texinfo.patch

PreReq(post,preun):%__install_info

# Automatically added by buildreq on Wed Sep 25 2002

BuildRequires: libncurses-devel libreadline-devel

%description
Units converts an amount from one unit to another, or tells you what
mathematical operation you need to perform to convert from one unit to
another.  Units can only handle multiplicative scale changes (i.e., it
can't tell you how to convert from Celsius to Fahrenheit, which requires
an additive step in addition to the multiplicative conversion).

Units is a handy little program which contains a large number of
conversions, from au's to parsecs and tablespoons to cups.  You probably
don't need to install it, but it comes in handy sometimes.

%prep
%setup -q
%patch -p1

find -type f |
xargs fgrep -l /usr/local |
xargs -r %__subst 's,/usr/local,%prefix,g'

%build
%configure
%make_build
makeinfo %name

%install
%makeinstall

%post
%install_info %name.info

%preun
%uninstall_info %name.info

%files
%_bindir/*
%_datadir/%name.dat
%_infodir/*.info*
%_man1dir/*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin