Changes of Revision 2
[-] | Added | perl-Math-Calc-Units.spec |
x 1
2 +%define cpan_name Math-Calc-Units 3 + 4 +Name: perl-%cpan_name 5 +Version: 1.06 6 +Release: 1 7 +Provides: %cpan_name 8 +Requires: perl = %{perl_version} 9 +Group: Development/Libraries/Perl 10 +License: Artistic 11 +URL: http://search.cpan.org/dist/Math-Calc-Units/ 12 +Summary: Human-readable unit-aware calculator 13 +Source: %cpan_name-%{version}.tar.gz 14 +BuildRoot: %{_tmppath}/%{name}-%{version}-build 15 + 16 +%description 17 +Math::Calc::Units is a simple calculator that keeps track of units. It currently handles combinations of byte sizes and duration only, although adding any other multiplicative types is easy. Any unknown type is treated as a unique user type (with some effort to map English plurals to their singular forms). 18 + 19 +The primary intended use is via the ucalc script that prints out all of the "readable" variants of a value. For example, "3 bytes" will only produce "3 byte", but "3 byte / sec" produces the original along with "180 byte / minute", "10.55 kilobyte / hour", etc. 20 + 21 +%prep 22 +%setup -q -n %cpan_name-%{version} 23 + 24 +%build 25 +perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" 26 +make 27 +make test 28 + 29 +%install 30 +make DESTDIR=$RPM_BUILD_ROOT install_vendor 31 +%perl_process_packlist 32 + 33 +%clean 34 +# clean up the hard disc after build 35 +rm -rf $RPM_BUILD_ROOT 36 + 37 +%files 38 +%defattr(-,root,root) 39 +%{_bindir}/uc* 40 +%doc %{_mandir}/man?/* 41 +%{perl_vendorlib}/Math 42 +%{perl_vendorarch}/auto/Math 43 +/var/adm/perl-modules/%{name} 44 +%doc Artistic.html COPYING Changes LICENSE MANIFEST README 45 + 46 +%changelog -n %{name} 47 +* Sun Jan 19 2008 - gerrit.beine@googlemail.com 48 +- moved to openSUSE Build Service 49 +* Thu Dec 06 2007 - gerrit@beine-computer.de 50 +- first release 1.06 51 + 52 + 53 |