[packages/perl-OpenPgm] - initial, not ready for libpgm 5.x

qboosh qboosh at pld-linux.org
Wed Jul 17 20:19:38 CEST 2013


commit e76a1e7450b9ae9a0369e6f9637b31eb69796326
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Jul 17 20:19:29 2013 +0200

    - initial, not ready for libpgm 5.x

 perl-OpenPgm-glib.patch | 10 ++++++++
 perl-OpenPgm.spec       | 62 +++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 72 insertions(+)
---
diff --git a/perl-OpenPgm.spec b/perl-OpenPgm.spec
new file mode 100644
index 0000000..9701c16
--- /dev/null
+++ b/perl-OpenPgm.spec
@@ -0,0 +1,62 @@
+# NOTE: not ready for libpgm 5.x
+#
+# Conditional build:
+%bcond_without	tests	# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+Summary:	Perl interface to OpenPGM library
+Summary(pl.UTF-8):	Perlowy interfejs do biblioteki OpenPGM
+Name:		perl-OpenPgm
+Version:	0.01
+Release:	0.1
+License:	unknown
+Group:		Development/Languages/Perl
+Source0:	http://openpgm.googlecode.com/files/OpenPgm-%{version}.tbz2
+# Source0-md5:	770f99e3ebed4ef1f18bf43c92a2ae9d
+URL:		http://openpgm.googlecode.com/
+BuildRequires:	perl-ExtUtils-Depends >= 0.205
+BuildRequires:	perl-ExtUtils-PkgConfig >= 1.07
+BuildRequires:	perl-Glib >= 1.161
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+BuildRequires:	libpgm-devel >= 5.2
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Perl interface to OpenPGM library.
+
+%description -l pl.UTF-8
+Perlowy interfejs do biblioteki OpenPGM.
+
+%prep
+%setup -q -n OpenPgm-%{version}
+
+%{__perl} -pi -e 's/openpgm-2\.0/openpgm-5.2/g' Makefile.PL
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+
+%{__make} \
+	CC="%{__cc}" \
+	OPTIMIZE="%{rpmcflags}"
+
+%{?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
+%{perl_vendorarch}/OpenPgm.pm
+%dir %{perl_vendorarch}/auto/OpenPgm
+%{perl_vendorarch}/auto/OpenPgm/OpenPgm.bs
+%attr(755,root,root) %{perl_vendorarch}/auto/OpenPgm/OpenPgm.so
+%{_mandir}/man3/OpenPgm.3pm*
diff --git a/perl-OpenPgm-glib.patch b/perl-OpenPgm-glib.patch
new file mode 100644
index 0000000..be745c5
--- /dev/null
+++ b/perl-OpenPgm-glib.patch
@@ -0,0 +1,10 @@
+--- OpenPgm-0.01/OpenPgm.xs.orig	2010-01-01 16:45:47.000000000 +0100
++++ OpenPgm-0.01/OpenPgm.xs	2013-07-17 18:38:49.011767304 +0200
+@@ -1,6 +1,7 @@
+ #include "EXTERN.h"
+ #include "perl.h"
+ #include "XSUB.h"
++#include <glib.h>
+ #include <pgm/pgm.h>
+ 
+ #include "ppport.h"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-OpenPgm.git/commitdiff/e76a1e7450b9ae9a0369e6f9637b31eb69796326



More information about the pld-cvs-commit mailing list