[perl-URI-Title] Initial import

Petr Šabata psabata at fedoraproject.org
Tue Jan 24 11:59:28 UTC 2012


commit 7f781cc54f7f9eb461e92f5490bcc7e5077fb228
Author: Petr Šabata <contyk at redhat.com>
Date:   Tue Jan 24 12:33:57 2012 +0100

    Initial import

 .gitignore          |    1 +
 perl-URI-Title.spec |   73 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 3 files changed, 75 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..0c7a301 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/URI-Title-1.85.tar.gz
diff --git a/perl-URI-Title.spec b/perl-URI-Title.spec
new file mode 100644
index 0000000..7e8e637
--- /dev/null
+++ b/perl-URI-Title.spec
@@ -0,0 +1,73 @@
+Name:           perl-URI-Title
+Version:        1.85
+Release:        1%{?dist}
+Summary:        Get the titles of things on the web in a sensible way
+# Mentioned in URI::Title POD
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/URI-Title/
+Source0:        http://www.cpan.org/authors/id/T/TO/TOMI/URI-Title-%{version}.tar.gz
+BuildArch:      noarch
+BuildRequires:  perl(base)
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(File::Temp)
+BuildRequires:  perl(File::Type) >= 0.22
+BuildRequires:  perl(HTML::Entities)
+BuildRequires:  perl(HTTP::Request)
+BuildRequires:  perl(HTTP::Response)
+BuildRequires:  perl(Image::Size)
+BuildRequires:  perl(LWP::UserAgent)
+BuildRequires:  perl(Module::Pluggable) >= 1.2
+BuildRequires:  perl(MP3::Info)
+BuildRequires:  perl(Test::More)
+Requires:       perl(File::Type) >= 0.22
+Requires:       perl(Module::Pluggable) >= 1.2
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%global __requires_exclude %{?__requires_exclude:__requires_exclude|}^perl\\(File::Type\\)
+%global __requires_exclude %__requires_exclude|^perl\\(Module::Pluggable\\)
+
+%description
+I keep having to find the title of things on the web.  This
+seems like a really simple request, just get() the object,
+parse for a title tag, you're done.  Ha, I wish.  There are
+several problems with this approach:
+
+What if the resource is on a very slow server?  Do we wait
+forever or what?
+What if the resource is a 900 gig file?  You don't want to
+download that.
+What if the page title isn't in a title tag, but is buried
+in the HTML somewhere?
+What if the resource is an MP3 file, or a word document
+or something?
+...
+
+So, let's solve these issues once.
+
+%prep
+%setup -q -n URI-Title-%{version}
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+make pure_install PERL_INSTALL_ROOT=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} \;
+find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
+%{_fixperms} %{buildroot}/*
+
+%check
+make test
+
+%files
+%doc Changes
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Fri Jan 20 2012 Petr Šabata <contyk at redhat.com> 1.85-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..99cc7b5 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+0b0a8069325d4a5cd8307f9d779c2ca5  URI-Title-1.85.tar.gz


More information about the scm-commits mailing list