From c6f6c41ceac03f9f9fe50dacc92b28aefcdedf4f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
Date: Thu, 26 May 2016 16:43:19 +0200
Subject: Import

---
 .gitignore                                   |  1 +
 RDF-NS-20150725-Do-not-use-usr-bin-env.patch | 26 ++++++++++
 perl-RDF-NS.spec                             | 73 ++++++++++++++++++++++++++++
 sources                                      |  1 +
 4 files changed, 101 insertions(+)
 create mode 100644 RDF-NS-20150725-Do-not-use-usr-bin-env.patch
 create mode 100644 perl-RDF-NS.spec

diff --git a/.gitignore b/.gitignore
index e69de29..6dd8582 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/RDF-NS-20150725.tar.gz
diff --git a/RDF-NS-20150725-Do-not-use-usr-bin-env.patch 
b/RDF-NS-20150725-Do-not-use-usr-bin-env.patch
new file mode 100644
index 0000000..1ed8976
--- /dev/null
+++ b/RDF-NS-20150725-Do-not-use-usr-bin-env.patch
@@ -0,0 +1,26 @@
+From 19a77a005e16353b643b568c86467914421c32f1 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
+Date: Fri, 8 Apr 2016 15:34:06 +0200
+Subject: [PATCH] Do not use /usr/bin/env
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Petr Písař <ppi...@redhat.com>
+---
+ bin/rdfns | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/bin/rdfns b/bin/rdfns
+index c9af67a..34dacb1 100755
+--- a/bin/rdfns
++++ b/bin/rdfns
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env perl
++#!perl
+ #ABSTRACT: look up common URI namespaces and prefixes
+ #PODNAME: rdfns
+ 
+-- 
+2.5.5
+
diff --git a/perl-RDF-NS.spec b/perl-RDF-NS.spec
new file mode 100644
index 0000000..24e2a7d
--- /dev/null
+++ b/perl-RDF-NS.spec
@@ -0,0 +1,73 @@
+Name:           perl-RDF-NS
+Version:        20150725
+Release:        1%{?dist}
+Summary:        Popular RDF name space prefixes from prefix.cc
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/RDF-NS/
+Source0:        
http://www.cpan.org/authors/id/V/VO/VOJ/RDF-NS-%{version}.tar.gz
+# Fix shell bang
+Patch0:         RDF-NS-20150725-Do-not-use-usr-bin-env.patch
+BuildArch:      noarch
+BuildRequires:  coreutils
+BuildRequires:  perl
+BuildRequires:  perl(Module::Build::Tiny) >= 0.039
+BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
+BuildRequires:  sed
+# Run-time:
+BuildRequires:  perl(base)
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(File::ShareDir) >= 1.00
+BuildRequires:  perl(RDF::Trine::Node::Blank)
+BuildRequires:  perl(RDF::Trine::Node::Resource)
+BuildRequires:  perl(Scalar::Util)
+BuildRequires:  perl(URI)
+# Tests:
+BuildRequires:  perl(Test::More)
+# Test::Pod 1.41 not used
+BuildRequires:  perl(version)
+# Optional tests:
+BuildRequires:  perl(RDF::Trine)
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+Requires:       perl(File::ShareDir) >= 1.00
+
+# Remove under-specified dependencies
+%global __requires_exclude 
%{?__requires_exclude:%{__requires_exclude}|}^perl\\(File::ShareDir\\)$
+
+%description
+Hard-coding URI name spaces and prefixes for RDF applications is neither
+fun nor maintainable. In the end we all use more or less the same
+prefix definitions, as collected at <http://prefix.cc/>. This Perl module
+includes all these prefixes as defined at specific snapshots in time.
+
+%prep
+%setup -q -n RDF-NS-%{version}
+%patch0 -p1
+chmod -x lib/App/rdfns.pm
+# Fix script installation, <https://github.com/nichtich/RDF-NS/issues/18>
+mv bin script
+sed -i -e 's/^bin\//script\//' MANIFEST
+
+%build
+perl Build.PL --installdirs=vendor
+./Build
+
+%install
+./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+./Build test
+
+%files
+%license LICENSE
+%doc Changes README
+%{_bindir}/rdfns
+%{perl_vendorlib}/*
+%{_mandir}/man1/*
+%{_mandir}/man3/*
+
+%changelog
+* Fri Apr 08 2016 Petr Pisar <ppi...@redhat.com> 20150725-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..a8c2d02 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+8c7e907682a7b18cb6900d4fae6d3fc3  RDF-NS-20150725.tar.gz
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-RDF-NS.git/commit/?h=master&id=c6f6c41ceac03f9f9fe50dacc92b28aefcdedf4f
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://lists.fedoraproject.org/admin/lists/perl-devel@lists.fedoraproject.org

Reply via email to