[packages/perl-PkgConfig] - new

qboosh qboosh at pld-linux.org
Sun Jul 2 12:23:33 CEST 2017


commit 3dd203e0de516f9fd56d14f9a270849ee7f02c81
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Jul 2 12:24:47 2017 +0200

    - new

 perl-PkgConfig.spec | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 62 insertions(+)
---
diff --git a/perl-PkgConfig.spec b/perl-PkgConfig.spec
new file mode 100644
index 0000000..a6e2cc2
--- /dev/null
+++ b/perl-PkgConfig.spec
@@ -0,0 +1,62 @@
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%define		pdir	PkgConfig
+%include	/usr/lib/rpm/macros.perl
+Summary:	PkgConfig - Pure-Perl Core-Only replacement for pkg-config
+Summary(pl.UTF-8):	PkgConfig - czysto perlowy zamiennik programu pkg-config
+Name:		perl-PkgConfig
+Version:	0.16026
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-authors/id/P/PL/PLICEASE/PkgConfig-%{version}.tar.gz
+# Source0-md5:	ae468afd4e21967aa121f748a5329621
+URL:		http://search.cpan.org/dist/PkgConfig/
+BuildRequires:	perl-ExtUtils-MakeMaker >= 6.56
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl-Test-Simple >= 0.94
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+PkgConfig provides a pure-perl, core-only replacement for the
+pkg-config utility.
+
+%description -l pl.UTF-8
+Moduł PkgConfig zawiera czysto perlowy, nie korzystający z
+zewnętrznych modułów zamiennik programu pkg-config.
+
+%prep
+%setup -q -n %{pdir}-%{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 README
+%attr(755,root,root) %{_bindir}/pkg-config.pl
+%attr(755,root,root) %{_bindir}/ppkg-config
+%{perl_vendorlib}/PkgConfig.pm
+%{_mandir}/man1/pkg-config.pl.1p*
+%{_mandir}/man1/ppkg-config.1p*
+%{_mandir}/man3/PkgConfig.3pm*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-PkgConfig.git/commitdiff/3dd203e0de516f9fd56d14f9a270849ee7f02c81



More information about the pld-cvs-commit mailing list