From: radek Date: Thu, 9 Dec 2004 23:13:13 +0000 (+0000) Subject: - new X-Git-Tag: AC-STABLE X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=refs%2Ftags%2FAC-STABLE;p=packages%2Fperl-File-Type.git - new Changed files: perl-File-Type.spec -> 1.1 --- d6320e5b55c88107f22c534ca2d4c6fc5c36b0ee diff --git a/perl-File-Type.spec b/perl-File-Type.spec new file mode 100644 index 0000000..3eccda5 --- /dev/null +++ b/perl-File-Type.spec @@ -0,0 +1,57 @@ +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# +%include /usr/lib/rpm/macros.perl +%define pdir File +%define pnam Type +Summary: File::Type - determine file type using magic +#Summary(pl): +Name: perl-File-Type +Version: 0.22 +Release: 1 +# same as perl +License: GPL v1+ or Artistic +Group: Development/Languages/Perl +Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz +# Source0-md5: 4be3b0b7000b325c60351fcc8a04815d +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +File::Type uses magic numbers (typically at the start of a file) to +determine the MIME type of that file. + +File::Type can use either a filename, or file contents, to determine +the type of a file. + +# %description -l pl +# TODO + +%prep +%setup -q -n %{pdir}-%{pnam}-%{version} + +%build +%{__perl} Makefile.PL \ + INSTALLDIRS=vendor +%{__make} + +%{?with_tests:%{__make} test} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc Changes +%{perl_vendorlib}/File/*.pm +%{perl_vendorlib}/File/Type +%{_mandir}/man3/*