]> git.pld-linux.org Git - packages/perl-File-Type.git/commitdiff
- new AC-branch AC-STABLE auto/ac/perl-File-Type-0_22-1
authorradek <radek@pld-linux.org>
Thu, 9 Dec 2004 23:13:13 +0000 (23:13 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-File-Type.spec -> 1.1

perl-File-Type.spec [new file with mode: 0644]

diff --git a/perl-File-Type.spec b/perl-File-Type.spec
new file mode 100644 (file)
index 0000000..3eccda5
--- /dev/null
@@ -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/*
This page took 0.032137 seconds and 4 git commands to generate.