d95bdf9
Name:		perl-HTTP-Server-Simple-Static
d95bdf9
Version:	0.07
781c1a3
Release:	9%{?dist}
d95bdf9
Summary:	Serve static files with HTTP::Server::Simple
d95bdf9
Group:		Development/Libraries
d95bdf9
License:	GPL+ or Artistic
d95bdf9
URL:		http://search.cpan.org/dist/HTTP-Server-Simple-Static/
d95bdf9
Source0:	http://search.cpan.org/CPAN/authors/id/S/SJ/SJQUINNEY/HTTP-Server-Simple-Static-%{version}.tar.gz
d95bdf9
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
d95bdf9
BuildArch:	noarch
d95bdf9
BuildRequires:	perl(URI::Escape), perl(Exporter), perl(File::MMagic), perl(File::Spec::Functions)
d95bdf9
BuildRequires:	perl(Test::Pod), perl(Test::Pod::Coverage), perl(HTTP::Server::Simple), perl(IO::File)
d95bdf9
BuildRequires:	perl(MIME::Types)
d95bdf9
Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
d95bdf9
d95bdf9
%description
d95bdf9
HTTP::Server::Simple::Static adds a method to serve static files from your
d95bdf9
HTTP::Server::Simple subclass.
d95bdf9
d95bdf9
%prep
d95bdf9
%setup -q -n HTTP-Server-Simple-Static-%{version}
d95bdf9
d95bdf9
%build
d95bdf9
%{__perl} Makefile.PL INSTALLDIRS=vendor
d95bdf9
make %{?_smp_mflags}
d95bdf9
d95bdf9
%install
d95bdf9
rm -rf $RPM_BUILD_ROOT
d95bdf9
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
d95bdf9
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
d95bdf9
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
d95bdf9
chmod -R u+w $RPM_BUILD_ROOT/*
d95bdf9
d95bdf9
# We'll get this as a doc file instead.
d95bdf9
rm -rf $RPM_BUILD_ROOT%{perl_vendorlib}/HTTP/Server/Simple/example.pl
d95bdf9
d95bdf9
%check
d95bdf9
make test
d95bdf9
d95bdf9
%clean
d95bdf9
rm -rf $RPM_BUILD_ROOT
d95bdf9
d95bdf9
%files
d95bdf9
%defattr(-,root,root,-)
d95bdf9
%doc Changes README example.pl
d95bdf9
%{perl_vendorlib}/HTTP/
d95bdf9
%{_mandir}/man3/*.3pm*
d95bdf9
d95bdf9
%changelog
781c1a3
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.07-9
781c1a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
781c1a3
6ae67f4
* Tue Jun 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.07-8
6ae67f4
- Perl mass rebuild
6ae67f4
f1c84ec
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.07-7
f1c84ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f1c84ec
9f574e2
* Fri Dec 17 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.07-6
9f574e2
- 661697 rebuild for fixing problems with vendorach/lib
9f574e2
6b4a2e7
* Sun May 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.07-5
6b4a2e7
- Mass rebuild with perl-5.12.0
6b4a2e7
6d25010
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 0.07-4
6d25010
- rebuild against perl 5.10.1
6d25010
973e219
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.07-3
973e219
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
973e219
d95bdf9
* Mon Mar 30 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 0.07-2
d95bdf9
- package example.pl as %%doc
d95bdf9
d95bdf9
* Sat Mar 28 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 0.07-1
d95bdf9
- initial package for Fedora