perl-DateTime-Format-IBeat/perl-DateTime-Format-IBeat.spec

60 lines
1.8 KiB
RPMSpec
Raw Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-DateTime-Format-IBeat
Version: 0.161
Release: 2mamba
Summary: DateTime::Format::IBeat - Format times in .beat notation
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.cpan.org
Source: http://search.cpan.org/CPAN/authors/id/E/EM/EMARTIN/DateTime-Format-IBeat-%{version}.tar.gz
License: GPL, Artistic
BuildRequires: perl(Class::ISA)
BuildRequires: perl(DateTime)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod)
BuildRequires: perl-devel
Requires: perl >= %perl_major_ver
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
No Time Zones, No Geographical Borders
How long is a Swatch .beat? In short, we have divided up the virtual and real day into 1000 beats. One Swatch beat is the equivalent of 1 minute 26.4 seconds. That means that 12 noon in the old time system is the equivalent of 500 Swatch .beats
%prep
%setup -q -n DateTime-Format-IBeat-%{version}
mv LICENCE LICENSE
%build
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
%make
%make test
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall_perl
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w %{buildroot}/*
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{perl_vendorlib}/DateTime
%{_mandir}/man3/*.3pm.gz
%doc Artistic Changes COPYING LICENSE README
%changelog
* Thu Aug 16 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.161-2mamba
- imported in devel
* Mon Mar 07 2011 gil <puntogil@libero.it> 0.161-1mamba
- package created by autospec