]> git.pld-linux.org Git - SPECS.git/blob - perl-JQ.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / perl-JQ.spec
1 %define         pnam    JQ
2 Summary:        JQ - Perl binding for jq
3 Name:           perl-JQ
4 Version:        0.01
5 %define gitref  82a99d257482dca7c768afa32043daac175179c6
6 %define snap    20151117
7 Release:        1.%{snap}
8 # same as perl
9 License:        GPL v1+ or Artistic
10 Group:          Development/Languages/Perl
11 Source0:        https://github.com/spiritloose/JQ/archive/%{gitref}/%{name}.tar.gz
12 # Source0-md5:  b18ab8e3e41b55ee906782471d6791f9
13 URL:            https://github.com/spiritloose/JQ
14 BuildRequires:  jq-devel
15 BuildRequires:  perl-devel >= 1:5.8.0
16 BuildRequires:  rpm-perlprov >= 4.1-13
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 JQ is a Perl binding for jq.
21
22 %prep
23 %setup -q -n %{pnam}-%{gitref}
24
25 %build
26 %{__perl} -I. Build.PL
27 %{__perl} Build
28
29 %install
30 rm -rf $RPM_BUILD_ROOT
31
32 install -d $RPM_BUILD_ROOT/%{perl_vendorarch}/auto/JQ
33 install -d $RPM_BUILD_ROOT/%{_mandir}/man3
34
35 %{__cp} blib/arch/auto/JQ/JQ.so $RPM_BUILD_ROOT/%{perl_vendorarch}/auto/JQ
36 %{__cp} blib/lib/JQ.pm $RPM_BUILD_ROOT/%{perl_vendorarch}
37 %{__cp} blib/libdoc/JQ.3pm $RPM_BUILD_ROOT/%{_mandir}/man3
38
39 %clean
40 rm -rf $RPM_BUILD_ROOT
41
42 %files
43 %defattr(644,root,root,755)
44 %doc Changes README.md
45 %{perl_vendorarch}/JQ.pm
46 %dir %{perl_vendorarch}/auto/JQ
47 %attr(755,root,root) %{perl_vendorarch}/auto/JQ/JQ.so
48 %{_mandir}/man3/*
This page took 3.071618 seconds and 3 git commands to generate.