]> git.pld-linux.org Git - packages/perl-Git-Wrapper.git/commitdiff
- new auto/th/perl-Git-Wrapper-0.048-1
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 21 Oct 2018 14:26:57 +0000 (16:26 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 21 Oct 2018 14:26:57 +0000 (16:26 +0200)
perl-Git-Wrapper.spec [new file with mode: 0644]

diff --git a/perl-Git-Wrapper.spec b/perl-Git-Wrapper.spec
new file mode 100644 (file)
index 0000000..11be1c1
--- /dev/null
@@ -0,0 +1,58 @@
+#
+# Conditional build:
+%bcond_without tests           # do not perform "make test"
+#
+%define                pdir    Git
+%define                pnam    Wrapper
+%include       /usr/lib/rpm/macros.perl
+Summary:       Git::Wrapper - Wrap git(7) command-line interface
+Name:          perl-Git-Wrapper
+Version:       0.048
+Release:       1
+# same as perl
+License:       GPL v1+ or Artistic
+Group:         Development/Languages/Perl
+Source0:       http://www.cpan.org/modules/by-module/Git/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 8dcb01a160c400b655c0ba69f57f054f
+URL:           https://metacpan.org/release/Git-Wrapper/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: perl-Devel-CheckBin
+%if %{with tests}
+BuildRequires: perl-File-chdir
+BuildRequires: perl-Sort-Versions
+BuildRequires: perl-Test-Deep
+BuildRequires: perl-Test-Exception
+%endif
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Git::Wrapper provides an API for git(7) that uses Perl data structures for
+argument passing, instead of CLI-style --options as Git does.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes INSTALL
+%{perl_vendorlib}/Git/*.pm
+%{perl_vendorlib}/Git/Wrapper
+%{_mandir}/man3/*
This page took 0.525687 seconds and 4 git commands to generate.