1 |
%define _use_internal_dependency_generator 0 |
2 |
|
3 |
Summary: A Perl module emulating the file(1) command. |
4 |
Name: perl-File-MMagic |
5 |
Version: 1.21 |
6 |
Release: 2%{?dist} |
7 |
License: distributable |
8 |
Group: Applications/CPAN |
9 |
Source0: File-MMagic-%{version}.tar.gz |
10 |
Url: http://www.cpan.org |
11 |
BuildRoot: %{_tmppath}/perl-File-MMagic-buildroot/ |
12 |
BuildRequires: perl >= 0:5.00503 |
13 |
Requires: perl >= 0:5.00503 |
14 |
BuildArch: noarch |
15 |
|
16 |
%description |
17 |
This module attempts to guess file type from its contents like file(1) |
18 |
command. |
19 |
|
20 |
# Provide perl-specific find-{provides,requires}. |
21 |
%define __find_provides /usr/lib/rpm/find-provides.perl |
22 |
%define __find_requires /usr/lib/rpm/find-requires.perl |
23 |
|
24 |
%prep |
25 |
%setup -q -n File-MMagic-%{version} |
26 |
|
27 |
%build |
28 |
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor |
29 |
make |
30 |
make test |
31 |
|
32 |
%clean |
33 |
rm -rf $RPM_BUILD_ROOT |
34 |
|
35 |
%install |
36 |
rm -rf $RPM_BUILD_ROOT |
37 |
make install |
38 |
|
39 |
[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress |
40 |
|
41 |
find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; |
42 |
|
43 |
find $RPM_BUILD_ROOT/usr -type f -print | |
44 |
sed "s@^$RPM_BUILD_ROOT@@g" | |
45 |
grep -v perllocal.pod | |
46 |
grep -v "\.packlist" > File-MMagic-%{version}-filelist |
47 |
if [ "$(cat File-MMagic-%{version}-filelist)X" = "X" ] ; then |
48 |
echo "ERROR: EMPTY FILE LIST" |
49 |
exit -1 |
50 |
fi |
51 |
|
52 |
%files -f File-MMagic-%{version}-filelist |
53 |
%defattr(-,root,root) |
54 |
|
55 |
%changelog |
56 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
57 |
- Clean up spec so package can be built by koji/plague |
58 |
|
59 |
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
60 |
- Update to new release naming. No functional changes. |
61 |
- Make Packager generic |
62 |
|
63 |
* Wed Sep 22 2004 Chip Turner <cturner@redhat.com> 1.21-2 |
64 |
- rebuild |
65 |
|
66 |
* Fri Feb 13 2004 Chip Turner <cturner@redhat.com> 1.21-1 |
67 |
- move to 1.21 |
68 |
|
69 |
* Tue Dec 10 2002 Chip Turner <cturner@redhat.com> |
70 |
- update to latest version from CPAN |
71 |
|
72 |
* Tue Aug 6 2002 Chip Turner <cturner@redhat.com> |
73 |
- automated release bump and build |
74 |
|
75 |
* Tue Aug 6 2002 Chip Turner <cturner@localhost.localdomain> |
76 |
- update to 1.15 |
77 |
|
78 |
* Fri Dec 7 2001 root <root@redhat.com> |
79 |
- Spec file was autogenerated. |