rpms/perl-File-MMagic-XS/devel perl-File-MMagic-XS.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Tom Callaway (spot) fedora-extras-commits at redhat.com
Fri Sep 15 19:23:40 UTC 2006


Author: spot

Update of /cvs/extras/rpms/perl-File-MMagic-XS/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv20552/devel

Modified Files:
	.cvsignore sources 
Added Files:
	perl-File-MMagic-XS.spec 
Log Message:
auto-import perl-File-MMagic-XS-0.08-2 on branch devel from perl-File-MMagic-XS-0.08-2.src.rpm


--- NEW FILE perl-File-MMagic-XS.spec ---
Name:           perl-File-MMagic-XS
Version:        0.08
Release:        2%{?dist}
Summary:        Guess file type with XS
Group:          Development/Libraries
License:        Apache Software License
URL:            http://search.cpan.org/dist/File-MMagic-XS
Source0:        http://search.cpan.org/CPAN/authors/id/D/DM/DMAKI/File-MMagic-XS-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:  perl(File::MMagic), gdbm-devel
Requires:  perl(File::MMagic)
Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
This is a port of Apache2 mod_mime_magic.c in Perl, written in XS with the aim 
of being efficient and fast especially for applications that need to be run for
an extended amount of time.

%prep
%setup -q -n File-MMagic-XS-%{version}

cat << \EOF > %{name}-prov
#!/bin/sh
%{__perl_provides} $* |\
    sed -e '/^perl(File::MMagic::XS)$/d'
EOF
%define __perl_provides %{_builddir}/File-MMagic-XS-%{version}/%{name}-prov
chmod +x %{__perl_provides}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*

%check
make test

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc Changes
%{perl_vendorarch}/auto/File/MMagic/
%{perl_vendorarch}/File/MMagic/
%{_mandir}/man3/*


%changelog
* Sun Sep 10 2006 Tom "spot" Callaway <tcallawa at redhat.com> 0.08-2
- filter out extra perl(File::MMagic::XS) provides
- fix license descriptor to make rpmlint happy

* Thu Aug  3 2006 Tom "spot" Callaway <tcallawa at redhat.com> 0.08-1
- initial package for Fedora Extras


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/perl-File-MMagic-XS/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	15 Sep 2006 19:23:12 -0000	1.1
+++ .cvsignore	15 Sep 2006 19:23:40 -0000	1.2
@@ -0,0 +1 @@
+File-MMagic-XS-0.08.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/perl-File-MMagic-XS/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	15 Sep 2006 19:23:12 -0000	1.1
+++ sources	15 Sep 2006 19:23:40 -0000	1.2
@@ -0,0 +1 @@
+b8ce9617527a999c85d54fc8a4e88ebc  File-MMagic-XS-0.08.tar.gz




More information about the fedora-extras-commits mailing list