SPECS: perl-pyperl.spec (NEW) - new
arekm
arekm at pld-linux.org
Mon May 22 10:40:29 CEST 2006
Author: arekm Date: Mon May 22 08:40:29 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new
---- Files affected:
SPECS:
perl-pyperl.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/perl-pyperl.spec
diff -u /dev/null SPECS/perl-pyperl.spec:1.1
--- /dev/null Mon May 22 10:40:29 2006
+++ SPECS/perl-pyperl.spec Mon May 22 10:40:24 2006
@@ -0,0 +1,72 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir Python
+%define pnam pyperl
+Summary: Encapuslate python objects
+Name: perl-Python-pyperl
+Version: 1.0
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pnam}-%{version}.tar.gz
+# Source0-md5: 6e48c2c889bf55c2656e6ed4589854bf
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: python-devel
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Encapuslate python objects.
+
+%prep
+%setup -q -n %{pnam}-%{version}
+
+%build
+cd Python-Object
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make}
+%{?with_tests:%{__make} test}
+cd ..
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C Python-Object install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+python setup.py install \
+ --root=$RPM_BUILD_ROOT \
+ --optimize=2
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes
+%{perl_vendorarch}/Python
+%{perl_vendorarch}/Python.pm
+%dir %{perl_vendorarch}/auto/Python
+%dir %{perl_vendorarch}/auto/Python/Object
+%attr(755,root,root) %{perl_vendorarch}/auto/Python/Object/*.so
+%{_mandir}/man3/*
+
+%{py_sitedir}/*.py[co]
+%attr(755,root,root) %{py_sitedir}/*.so
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2006/05/22 08:40:24 arekm
+- new
+
+
================================================================
More information about the pld-cvs-commit
mailing list