Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37038356
en ru br
Репозитории ALT
S:2.21-alt1
5.1: 1.88-alt1
4.1: 1.87-alt1
4.0: 1.86-alt1
3.0: 1.80-alt2
www.altlinux.org/Changes

Группа :: Офис
Пакет: units

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: units
Version: 2.20
Release: alt1

Summary: A utility for converting amounts from one unit to another
License: GPLv3+
Group: Office
Url: https://www.gnu.org/software/units/units.html
# https://ftp.gnu.org/pub/gnu/%name/%name-%version.tar.gz
Source: %name-%version.tar
BuildRequires: libreadline-devel makeinfo rpm-build-python3

%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.  The units program can handle multiplicative scale changes as
well as conversions such as Fahrenheit to Celsius.

%prep
%setup
# remove generated files
rm parse.tab.c *.info*
# do not try to update currency.units from network during build
sed -i '/^install-support:/ s/ currency-units-update//' Makefile.in

%build
export PYTHON=%_bindir/python3
%configure
%make_build

%install
%makeinstall_std
ln -s units.1 %buildroot%_man1dir/units_cur.1

s=/usr/share/units/currency.units
t="$(readlink "%buildroot$s")"
case "$t" in
/*) ln -fnrs "%buildroot$t" "%buildroot$s" ;;
esac

%check
%make_build -k check

%define _unpackaged_files_terminate_build 1

%files
%_bindir/*
%_datadir/%name/
/var/lib/%name/
%_infodir/*.info*
%_man1dir/*
%doc NEWS README

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin