Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 28e5c8774fbd7409f78c62d5c8faa673 > files > 2

mimetypes-1.6-4mdk.src.rpm

%define name mimetypes
%define version 1.6
%define release 4mdk

Summary: List mimetypes and merge them into Apache's mime.types file                                               
Name: %{name}
Version: %{version}
Release: %{release}
License: GPL
Group: System/Servers
Source: %{name}-%{version}.tar.bz2
URL: http://www.osdl.org/projects/mimetypes/
Buildrequires: perl-devel
BuildRoot: %{_tmppath}/%{name}-buildroot
Buildarch: noarch

%description
mimetypes is a utility that generates mime.types files for Apache. The
standard file does not include many of the common Linux document MIME
types (such as StarOffice, and KDE and GNOME apps). This script
automates the extraction of MIME type information from both the KDE
and GNOME mimetype databases, and displays it in a manner appropriate
to Apache.

%prep
rm -rf $RPM_BUILD_ROOT

%setup -q

%build

perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr

make

make test

%install

%makeinstall

rm -rf $RPM_BUILD_ROOT/%_libdir/perl5/site_perl/5.8.0/i386-linux-thread-multi/perllocal.pod

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README TODO Changes
%{_bindir}/mimetypes
%{_mandir}/man1/*

%changelog
* Fri Jul 02 2004 Lenny Cartier <lenny@mandrakesoft.com> 1.6-4mdk
- rebuild

* Mon May 05 2003 Lenny Cartier <lenny@mandrakesoft.com> 1.6-3mdk
- buildrequires

* Tue Feb 11 2003 Lenny Cartier <lenny@mandrakesoft.com> 1.6-2mdk
- new
- what about a changelog ?

* Wed Jun 12 2002 Bryce Harrington <bryce@osdl.org> 1.6-1mdk
- Initial setup