Summary: A utility for converting amounts from one unit to another Name: units Version: 2.00 Release: 1%{?dist} Source: ftp://ftp.gnu.org/gnu/units/%{name}-%{version}.tar.gz URL: http://www.gnu.org/software/units/units.html License: GPLv3+ Group: Applications/Engineering BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires(post): /sbin/install-info Requires(preun): /sbin/install-info BuildRequires: bison BuildRequires: ncurses-devel BuildRequires: readline-devel Patch0: units-2.00-make-install.patch %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 -q %patch0 -p1 %build %configure make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT gzip $RPM_BUILD_ROOT%{_infodir}/units.info %clean rm -rf $RPM_BUILD_ROOT %post if [ -e %{_infodir}/units.info.gz ]; then /sbin/install-info %{_infodir}/units.info.gz %{_infodir}/dir || : fi %preun if [ $1 = 0 -a -e %{_infodir}/units.info.gz ]; then /sbin/install-info --delete %{_infodir}/units.info.gz %{_infodir}/dir || : fi %files %defattr(-,root,root,-) %doc ChangeLog COPYING NEWS README %{_bindir}/* %{_datadir}/units %{_infodir}/* %{_mandir}/man1/* %changelog * Mon Jun 02 2012 Kamil Dudka - 2.00-1 - new upstream release, dropped applied patches - patch Makefile.in to respect $(DESTDIR) * Sat Jan 14 2012 Fedora Release Engineering - 1.88-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Thu Nov 17 2011 Kamil Dudka - 1.88-5 - improve the units-1.88-coverity.patch (thanks to Adrian Mariano) * Wed Nov 16 2011 Kamil Dudka - 1.88-4 - fix code defects found by Coverity * Mon Feb 07 2011 Fedora Release Engineering - 1.88-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed May 05 2010 Kamil Dudka - 1.88-2 - fix typo in man page (#588565) * Tue Feb 23 2010 Kamil Dudka - 1.88-1 - new upstream release, dropped applied patches * Tue Dec 01 2009 Kamil Dudka - 1.87-7 - add BuildRequires for bison * Tue Dec 01 2009 Kamil Dudka - 1.87-6 - update license to GPLv3+, sanitize specfile - fix tons of gcc warnings * Thu Aug 20 2009 Zdenek Prikryl - 1.87-5 - Don't complain if installing with --excludedocs (#515941) * Sun Jul 26 2009 Fedora Release Engineering - 1.87-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Feb 25 2009 Fedora Release Engineering - 1.87-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Wed Feb 20 2008 Fedora Release Engineering - 1.87-2 - Autorebuild for GCC 4.3 * Wed Oct 31 2007 Zdenek Prikryl - 1.87-1 - New version 1.87 * Thu Aug 23 2007 Harald Hoyer - 1.86-7 - changed license tag * Thu Jul 05 2007 Florian La Roche - fix preun script to properly remove the info file * Fri Mar 23 2007 Harald Hoyer - 1.86-5 - more specfile cleanups * Tue Mar 20 2007 Harald Hoyer - 1.86-4 - added readline build requirement - changed BUILDROOT * Wed Jan 24 2007 Harald Hoyer - 1.86-3 - fixed previous fix for rhbz#220533 * Tue Jan 23 2007 Florian La Roche - 1.86-2 - rhbz#220533 * Mon Nov 13 2006 Florian La Roche - 1.86-1 - 1.86 * Wed Jul 12 2006 Jesse Keating - 1.85-1.2.2 - rebuild * Fri Feb 10 2006 Jesse Keating - 1.85-1.2.1 - bump again for double-long bug on ppc(64) * Tue Feb 07 2006 Jesse Keating - 1.85-1.2 - rebuilt for new gcc4.1 snapshot and glibc changes * Fri Dec 09 2005 Jesse Keating - rebuilt * Tue Jul 19 2005 Harald Hoyer - 1.85-1 - version 1.85 * Thu Mar 03 2005 Harald Hoyer - rebuilt * Wed Jan 12 2005 Tim Waugh - Rebuilt for new readline. * Tue Jun 15 2004 Elliot Lee - rebuilt * Fri Feb 13 2004 Elliot Lee - rebuilt * Tue Jun 24 2003 Harald Hoyer 1.80-8 - au is now astronomicalunit * Wed Jun 11 2003 Harald Hoyer 1.80-7 - fix parsecs #96982 * Wed Jun 04 2003 Elliot Lee - rebuilt * Fri May 23 2003 Jeremy Katz 1.80-5 - fix build with gcc 3.3 * Wed Jan 22 2003 Tim Powers - rebuilt * Tue Dec 17 2002 Harald Hoyer 1.80-2 - changed description * Tue Nov 05 2002 Harald Hoyer 1.80-1 - update to version 1.80 * Tue Jul 23 2002 Harald Hoyer - removed prestripping * Fri Jun 21 2002 Tim Powers - automated rebuild * Thu May 23 2002 Tim Powers - automated rebuild * Fri Dec 14 2001 Harald Hoyer 1.74-1 - bumped version - this fixed #54971 * Fri May 11 2001 Bernhard Rosenkraenzer 1.55-10 - rebuild with new readline * Wed Jul 12 2000 Prospector - automatic rebuild * Sun Jun 11 2000 Bill Nottingham - rebuild, FHS stuff * Wed Apr 5 2000 Bill Nottingham - rebuild against current ncurses/readline * Fri Mar 24 2000 Bernhard Rosenkraenzer - rebuild with new readline * Thu Feb 3 2000 Bill Nottingham - handle compressed man pages * Mon Nov 22 1999 Bill Nottingham - fix install-info (#6631) * Mon Sep 13 1999 Bill Nottingham - strip files * Mon Aug 2 1999 Bill Nottingham - update to 1.55 * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 12) * Thu Dec 17 1998 Michael Maher - built package for 6.0 * Sun Aug 23 1998 Jeff Johnson - units.lib corrections (problem #685) * Tue Aug 11 1998 Jeff Johnson - build root * Mon Apr 27 1998 Prospector System - translations modified for de, fr, tr * Tue Oct 21 1997 Donnie Barnes - spec file cleanups * Mon Jul 21 1997 Erik Troan - built against glibc