[packages/perl-JQ] - initial, version 0.01 (20151117)
adwol
adwol at pld-linux.org
Fri Jul 13 02:13:37 CEST 2018
commit eb115466bf548823b3dde4d4f5765d3413c6ddb9
Author: Adam Osuchowski <adwol at pld-linux.org>
Date: Fri Jul 13 02:12:59 2018 +0200
- initial, version 0.01 (20151117)
perl-JQ.spec | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
---
diff --git a/perl-JQ.spec b/perl-JQ.spec
new file mode 100644
index 0000000..fc5b5b9
--- /dev/null
+++ b/perl-JQ.spec
@@ -0,0 +1,48 @@
+%include /usr/lib/rpm/macros.perl
+%define pnam JQ
+Summary: JQ - Perl binding for jq
+Name: perl-JQ
+Version: 0.01
+%define gitref 82a99d257482dca7c768afa32043daac175179c6
+%define snap 20151117
+Release: 1.%{snap}
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: https://github.com/spiritloose/JQ/archive/%{gitref}/%{name}.tar.gz
+# Source0-md5: b18ab8e3e41b55ee906782471d6791f9
+URL: https://github.com/spiritloose/JQ
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+JQ is a Perl binding for jq.
+
+%prep
+%setup -q -n %{pnam}-%{gitref}
+
+%build
+%{__perl} -I. Build.PL
+%{__perl} Build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT/%{perl_vendorarch}/auto/JQ
+install -d $RPM_BUILD_ROOT/%{_mandir}/man3
+
+%{__cp} blib/arch/auto/JQ/JQ.so $RPM_BUILD_ROOT/%{perl_vendorarch}/auto/JQ
+%{__cp} blib/lib/JQ.pm $RPM_BUILD_ROOT/%{perl_vendorarch}
+%{__cp} blib/libdoc/JQ.3pm $RPM_BUILD_ROOT/%{_mandir}/man3
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README.md
+%{perl_vendorarch}/JQ.pm
+%dir %{perl_vendorarch}/auto/JQ
+%attr(755,root,root) %{perl_vendorarch}/auto/JQ/JQ.so
+%{_mandir}/man3/*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-JQ.git/commitdiff/eb115466bf548823b3dde4d4f5765d3413c6ddb9
More information about the pld-cvs-commit
mailing list