/[packages]/cauldron/perl-File-LibMagic/current/SPECS/perl-File-LibMagic.spec
ViewVC logotype

Contents of /cauldron/perl-File-LibMagic/current/SPECS/perl-File-LibMagic.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 30343 - (show annotations) (download)
Fri Jan 21 20:42:57 2011 UTC (12 years ago) by jquelin
File size: 949 byte(s)
mageia rebuild
1 %define upstream_name File-LibMagic
2 %define upstream_version 0.96
3
4 Name: perl-%{upstream_name}
5 Version: %perl_convert_version %{upstream_version}
6 Release: %mkrel 3
7
8 Summary: Perl wrapper for libmagic
9 License: GPL+ or Artistic
10 Group: Development/Perl
11 Url: http://search.cpan.org/dist/%{upstream_name}
12 Source0: http://www.cpan.org/modules/by-module/File/%{upstream_name}-%{upstream_version}.tgz
13
14 Buildrequires: perl-devel
15 BuildRequires: libmagic-devel
16 BuildRequires: db4-devel
17 BuildRequires: gdbm-devel
18
19
20 %description
21 The File::LibMagic is a simple perlinterface to libmagic from the
22 file-4.x package
23
24 %prep
25 %setup -q -n %{upstream_name}-%{upstream_version}
26
27 %build
28 %{__perl} Makefile.PL INSTALLDIRS=vendor
29 %make CFLAGS="%{optflags}"
30
31 %install
32 rm -rf %{buildroot}
33 %makeinstall_std
34
35 %check
36 make test
37
38 %clean
39 rm -rf %{buildroot}
40
41 %files
42 %defattr(-,root,root)
43 %doc README
44 %{perl_vendorarch}/File
45 %{perl_vendorarch}/auto/File
46 %{_mandir}/*/*

  ViewVC Help
Powered by ViewVC 1.1.28