2007-03-20 14:01:41 +00:00
|
|
|
Summary: A utility for converting amounts from one unit to another
|
2004-09-09 13:44:02 +00:00
|
|
|
Name: units
|
2014-03-27 15:41:53 +00:00
|
|
|
Version: 2.10
|
2014-03-31 12:59:28 +00:00
|
|
|
Release: 2%{?dist}
|
2004-09-09 13:45:39 +00:00
|
|
|
Source: ftp://ftp.gnu.org/gnu/units/%{name}-%{version}.tar.gz
|
2007-03-20 14:01:41 +00:00
|
|
|
URL: http://www.gnu.org/software/units/units.html
|
2009-12-01 15:40:25 +00:00
|
|
|
License: GPLv3+
|
2004-09-09 13:44:02 +00:00
|
|
|
Group: Applications/Engineering
|
2007-03-20 14:01:41 +00:00
|
|
|
Requires(post): /sbin/install-info
|
2007-03-23 13:37:45 +00:00
|
|
|
Requires(preun): /sbin/install-info
|
2009-12-01 15:54:24 +00:00
|
|
|
BuildRequires: bison
|
2009-12-01 15:40:25 +00:00
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: readline-devel
|
2004-09-09 13:44:02 +00:00
|
|
|
|
2014-03-31 12:59:28 +00:00
|
|
|
# used by the units_cur script
|
|
|
|
Requires: python-unidecode
|
|
|
|
|
2004-09-09 13:44:02 +00:00
|
|
|
%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
|
2004-09-09 13:45:39 +00:00
|
|
|
another. The units program can handle multiplicative scale changes as
|
|
|
|
well as conversions such as Fahrenheit to Celsius.
|
2004-09-09 13:44:02 +00:00
|
|
|
|
|
|
|
%prep
|
2010-05-05 10:56:18 +00:00
|
|
|
%setup -q
|
2004-09-09 13:44:02 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
2009-12-01 15:40:25 +00:00
|
|
|
make %{?_smp_mflags}
|
2004-09-09 13:44:02 +00:00
|
|
|
|
|
|
|
%install
|
2007-03-20 14:01:41 +00:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
2004-09-09 13:44:02 +00:00
|
|
|
gzip $RPM_BUILD_ROOT%{_infodir}/units.info
|
|
|
|
|
2013-05-20 13:24:45 +00:00
|
|
|
# provide a man page for units_cur as a symlink to units.1
|
|
|
|
ln -s units.1 %{buildroot}%{_mandir}/man1/units_cur.1
|
|
|
|
|
2012-09-07 15:24:10 +00:00
|
|
|
%check
|
|
|
|
make check
|
|
|
|
|
2004-09-09 13:44:02 +00:00
|
|
|
%post
|
2009-08-20 07:41:11 +00:00
|
|
|
if [ -e %{_infodir}/units.info.gz ]; then
|
|
|
|
/sbin/install-info %{_infodir}/units.info.gz %{_infodir}/dir || :
|
|
|
|
fi
|
2004-09-09 13:44:02 +00:00
|
|
|
|
|
|
|
%preun
|
2009-08-20 07:41:11 +00:00
|
|
|
if [ $1 = 0 -a -e %{_infodir}/units.info.gz ]; then
|
|
|
|
/sbin/install-info --delete %{_infodir}/units.info.gz %{_infodir}/dir || :
|
2007-01-24 09:38:19 +00:00
|
|
|
fi
|
2004-09-09 13:44:02 +00:00
|
|
|
|
|
|
|
%files
|
2007-03-23 13:37:45 +00:00
|
|
|
%doc ChangeLog COPYING NEWS README
|
2004-09-09 13:44:02 +00:00
|
|
|
%{_bindir}/*
|
2012-07-02 09:04:34 +00:00
|
|
|
%{_datadir}/units
|
2004-09-09 13:44:02 +00:00
|
|
|
%{_infodir}/*
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
|
|
|
%changelog
|
2014-03-31 12:59:28 +00:00
|
|
|
* Mon Mar 31 2014 Kamil Dudka <kdudka@redhat.com> - 2.10-2
|
|
|
|
- require python-unidecode used by the units_cur script
|
|
|
|
|
2014-03-27 15:41:53 +00:00
|
|
|
* Thu Mar 27 2014 Kamil Dudka <kdudka@redhat.com> - 2.10-1
|
|
|
|
- new upstream release
|
|
|
|
|
2013-08-04 05:37:04 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.02-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-07-15 22:24:40 +00:00
|
|
|
* Mon Jul 15 2013 Kamil Dudka <kdudka@redhat.com> - 2.02-1
|
|
|
|
- new upstream release
|
|
|
|
|
2013-05-20 13:24:45 +00:00
|
|
|
* Mon May 20 2013 Kamil Dudka <kdudka@redhat.com> - 2.01-3
|
|
|
|
- provide a man page for units_cur as a symlink to units.1
|
2013-05-20 13:26:24 +00:00
|
|
|
- mention the --check-verbose option in units.1 man page
|
2013-05-20 13:24:45 +00:00
|
|
|
|
2013-02-15 02:28:34 +00:00
|
|
|
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.01-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-10-25 08:51:23 +00:00
|
|
|
* Thu Oct 25 2012 Kamil Dudka <kdudka@redhat.com> - 2.01-1
|
|
|
|
- new upstream release
|
|
|
|
|
2012-09-07 15:24:10 +00:00
|
|
|
* Fri Sep 07 2012 Kamil Dudka <kdudka@redhat.com> - 2.00-4
|
|
|
|
- run the upstream smoke-test during build
|
|
|
|
|
2012-08-28 16:10:43 +00:00
|
|
|
* Tue Aug 28 2012 Kamil Dudka <kdudka@redhat.com> - 2.00-3
|
|
|
|
- fix specfile issues reported by the fedora-review script
|
|
|
|
|
2012-07-22 01:48:32 +00:00
|
|
|
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.00-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-07-02 09:40:28 +00:00
|
|
|
* Mon Jul 02 2012 Kamil Dudka <kdudka@redhat.com> - 2.00-1
|
2012-07-02 09:04:34 +00:00
|
|
|
- new upstream release, dropped applied patches
|
|
|
|
- patch Makefile.in to respect $(DESTDIR)
|
|
|
|
|
2012-01-14 07:33:24 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.88-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-11-17 08:18:26 +00:00
|
|
|
* Thu Nov 17 2011 Kamil Dudka <kdudka@redhat.com> - 1.88-5
|
|
|
|
- improve the units-1.88-coverity.patch (thanks to Adrian Mariano)
|
|
|
|
|
2011-11-16 12:39:00 +00:00
|
|
|
* Wed Nov 16 2011 Kamil Dudka <kdudka@redhat.com> - 1.88-4
|
|
|
|
- fix code defects found by Coverity
|
|
|
|
|
2011-02-08 00:23:32 +00:00
|
|
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.88-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-05-05 10:56:18 +00:00
|
|
|
* Wed May 05 2010 Kamil Dudka <kdudka@redhat.com> - 1.88-2
|
|
|
|
- fix typo in man page (#588565)
|
|
|
|
|
2010-02-23 14:21:11 +00:00
|
|
|
* Tue Feb 23 2010 Kamil Dudka <kdudka@redhat.com> - 1.88-1
|
|
|
|
- new upstream release, dropped applied patches
|
|
|
|
|
2009-12-01 15:54:24 +00:00
|
|
|
* Tue Dec 01 2009 Kamil Dudka <kdudka@redhat.com> - 1.87-7
|
|
|
|
- add BuildRequires for bison
|
|
|
|
|
2009-12-01 15:40:25 +00:00
|
|
|
* Tue Dec 01 2009 Kamil Dudka <kdudka@redhat.com> - 1.87-6
|
|
|
|
- update license to GPLv3+, sanitize specfile
|
|
|
|
- fix tons of gcc warnings
|
|
|
|
|
2009-08-20 07:41:11 +00:00
|
|
|
* Thu Aug 20 2009 Zdenek Prikryl <zprikryl@redhat.com> - 1.87-5
|
|
|
|
- Don't complain if installing with --excludedocs (#515941)
|
|
|
|
|
2009-07-27 06:33:33 +00:00
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.87-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-02-25 23:07:22 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.87-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-02-20 08:53:49 +00:00
|
|
|
* Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.87-2
|
|
|
|
- Autorebuild for GCC 4.3
|
|
|
|
|
2007-10-31 08:35:08 +00:00
|
|
|
* Wed Oct 31 2007 Zdenek Prikryl <zprikryl@redhat.com> - 1.87-1
|
|
|
|
- New version 1.87
|
|
|
|
|
2007-08-23 07:47:13 +00:00
|
|
|
* Thu Aug 23 2007 Harald Hoyer <harald@redhat.com> - 1.86-7
|
|
|
|
- changed license tag
|
|
|
|
|
2007-07-05 08:17:40 +00:00
|
|
|
* Thu Jul 05 2007 Florian La Roche <laroche@redhat.com>
|
|
|
|
- fix preun script to properly remove the info file
|
|
|
|
|
2007-08-23 07:47:13 +00:00
|
|
|
* Fri Mar 23 2007 Harald Hoyer <harald@redhat.com> - 1.86-5
|
2007-03-23 13:37:45 +00:00
|
|
|
- more specfile cleanups
|
|
|
|
|
2007-08-23 07:47:13 +00:00
|
|
|
* Tue Mar 20 2007 Harald Hoyer <harald@redhat.com> - 1.86-4
|
2007-03-20 14:01:41 +00:00
|
|
|
- added readline build requirement
|
|
|
|
- changed BUILDROOT
|
|
|
|
|
2007-08-23 07:47:13 +00:00
|
|
|
* Wed Jan 24 2007 Harald Hoyer <harald@redhat.com> - 1.86-3
|
2007-01-24 09:38:19 +00:00
|
|
|
- fixed previous fix for rhbz#220533
|
|
|
|
|
2007-01-23 13:46:43 +00:00
|
|
|
* Tue Jan 23 2007 Florian La Roche <laroche@redhat.com> - 1.86-2
|
|
|
|
- rhbz#220533
|
|
|
|
|
2006-11-13 13:56:21 +00:00
|
|
|
* Mon Nov 13 2006 Florian La Roche <laroche@redhat.com> - 1.86-1
|
|
|
|
- 1.86
|
|
|
|
|
2006-07-12 08:35:45 +00:00
|
|
|
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.85-1.2.2
|
|
|
|
- rebuild
|
|
|
|
|
2006-02-11 05:55:01 +00:00
|
|
|
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.85-1.2.1
|
|
|
|
- bump again for double-long bug on ppc(64)
|
|
|
|
|
2006-02-07 14:10:05 +00:00
|
|
|
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.85-1.2
|
|
|
|
- rebuilt for new gcc4.1 snapshot and glibc changes
|
|
|
|
|
2005-12-09 22:43:41 +00:00
|
|
|
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2005-07-19 11:38:34 +00:00
|
|
|
* Tue Jul 19 2005 Harald Hoyer <harald@redhat.com> - 1.85-1
|
|
|
|
- version 1.85
|
|
|
|
|
2005-03-03 12:52:57 +00:00
|
|
|
* Thu Mar 03 2005 Harald Hoyer <harald@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2005-01-12 16:07:12 +00:00
|
|
|
* Wed Jan 12 2005 Tim Waugh <twaugh@redhat.com>
|
|
|
|
- Rebuilt for new readline.
|
|
|
|
|
2004-09-09 13:48:00 +00:00
|
|
|
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2004-09-09 13:47:53 +00:00
|
|
|
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2004-09-09 13:46:26 +00:00
|
|
|
* Tue Jun 24 2003 Harald Hoyer <harald@redhat.de> 1.80-8
|
|
|
|
- au is now astronomicalunit
|
|
|
|
|
|
|
|
* Wed Jun 11 2003 Harald Hoyer <harald@redhat.de> 1.80-7
|
|
|
|
- fix parsecs #96982
|
|
|
|
|
|
|
|
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Fri May 23 2003 Jeremy Katz <katzj@redhat.com> 1.80-5
|
|
|
|
- fix build with gcc 3.3
|
|
|
|
|
2004-09-09 13:45:39 +00:00
|
|
|
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Tue Dec 17 2002 Harald Hoyer <harald@redhat.de> 1.80-2
|
|
|
|
- changed description
|
|
|
|
|
|
|
|
* Tue Nov 05 2002 Harald Hoyer <harald@redhat.de> 1.80-1
|
|
|
|
- update to version 1.80
|
|
|
|
|
2004-09-09 13:45:29 +00:00
|
|
|
* Tue Jul 23 2002 Harald Hoyer <harald@redhat.de>
|
|
|
|
- removed prestripping
|
|
|
|
|
2004-09-09 13:45:26 +00:00
|
|
|
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
|
|
|
|
- automated rebuild
|
|
|
|
|
|
|
|
* Thu May 23 2002 Tim Powers <timp@redhat.com>
|
|
|
|
- automated rebuild
|
|
|
|
|
2004-09-09 13:44:51 +00:00
|
|
|
* Fri Dec 14 2001 Harald Hoyer <harald@redhat.de> 1.74-1
|
|
|
|
- bumped version
|
|
|
|
- this fixed #54971
|
|
|
|
|
2004-09-09 13:44:43 +00:00
|
|
|
* Fri May 11 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.55-10
|
|
|
|
- rebuild with new readline
|
|
|
|
|
2004-09-09 13:44:02 +00:00
|
|
|
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
|
|
|
|
- automatic rebuild
|
|
|
|
|
|
|
|
* Sun Jun 11 2000 Bill Nottingham <notting@redhat.com>
|
|
|
|
- rebuild, FHS stuff
|
|
|
|
|
|
|
|
* Wed Apr 5 2000 Bill Nottingham <notting@redhat.com>
|
|
|
|
- rebuild against current ncurses/readline
|
|
|
|
|
|
|
|
* Fri Mar 24 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
- rebuild with new readline
|
|
|
|
|
|
|
|
* Thu Feb 3 2000 Bill Nottingham <notting@redhat.com>
|
|
|
|
- handle compressed man pages
|
|
|
|
|
|
|
|
* Mon Nov 22 1999 Bill Nottingham <notting@redhat.com>
|
|
|
|
- fix install-info (#6631)
|
|
|
|
|
|
|
|
* Mon Sep 13 1999 Bill Nottingham <notting@redhat.com>
|
|
|
|
- strip files
|
|
|
|
|
|
|
|
* Mon Aug 2 1999 Bill Nottingham <notting@redhat.com>
|
|
|
|
- update to 1.55
|
|
|
|
|
|
|
|
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
|
|
|
|
- auto rebuild in the new build environment (release 12)
|
|
|
|
|
|
|
|
* Thu Dec 17 1998 Michael Maher <mike@redhat.com>
|
|
|
|
- built package for 6.0
|
|
|
|
|
|
|
|
* Sun Aug 23 1998 Jeff Johnson <jbj@redhat.com>
|
|
|
|
- units.lib corrections (problem #685)
|
|
|
|
|
|
|
|
* Tue Aug 11 1998 Jeff Johnson <jbj@redhat.com>
|
|
|
|
- build root
|
|
|
|
|
|
|
|
* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
|
|
|
|
- translations modified for de, fr, tr
|
|
|
|
|
|
|
|
* Tue Oct 21 1997 Donnie Barnes <djb@redhat.com>
|
|
|
|
- spec file cleanups
|
|
|
|
|
|
|
|
* Mon Jul 21 1997 Erik Troan <ewt@redhat.com>
|
|
|
|
- built against glibc
|