[perl-URI-Find-Simple] Address review TODOs

Petr Šabata psabata at fedoraproject.org
Tue Jan 24 11:30:53 UTC 2012


commit a4ca53cd39601b347ad209158574a6ede2863a34
Author: Petr Šabata <contyk at redhat.com>
Date:   Tue Jan 24 12:27:31 2012 +0100

    Address review TODOs

 .gitignore                |    1 +
 perl-URI-Find-Simple.spec |   49 +++++++++++++++++++++++++++++++++++++++++++++
 sources                   |    1 +
 3 files changed, 51 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ef13e05 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/URI-Find-Simple-1.03.tar.gz
diff --git a/perl-URI-Find-Simple.spec b/perl-URI-Find-Simple.spec
new file mode 100644
index 0000000..04e9d6e
--- /dev/null
+++ b/perl-URI-Find-Simple.spec
@@ -0,0 +1,49 @@
+Name:           perl-URI-Find-Simple
+Version:        1.03
+Release:        1%{?dist}
+Summary:        Simple interface to URI::Find
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/URI-Find-Simple/
+Source0:        http://www.cpan.org/authors/id/T/TO/TOMI/URI-Find-Simple-%{version}.tar.gz
+BuildArch:      noarch
+BuildRequires:  perl(lib)
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(Encode)
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(Test::More)
+BuildRequires:  perl(URI::Find)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%description
+URI::Find is all very well, but sometimes you just want a list of the links
+in a given piece of text, or you want to change all the URLs in some text
+somehow, and don't want to mess with callback interfaces.
+
+This module uses URI::Find, but hides the callback interface, providing two
+functions - one to list all the uris, and one to change all the uris.
+
+%prep
+%setup -q -n URI-Find-Simple-%{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.03-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..843e496 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a3d62887ea6b6a17559364e8a31fcd8f  URI-Find-Simple-1.03.tar.gz


More information about the scm-commits mailing list