summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2003-03-06 22:50:04 +0000
committerjbj <devnull@localhost>2003-03-06 22:50:04 +0000
commit51e7f7a5e9f5e5c762e049a97309e32928dd5bcc (patch)
tree37e4d7c11c27ddc328d97ba8aba526b184692ee8 /scripts
parent29cffe52fca8d5480c333c557996d2bc0196a801 (diff)
downloadrpm-51e7f7a5e9f5e5c762e049a97309e32928dd5bcc.tar.gz
- fix: memory leak (85522).
CVS patchset: 6656 CVS date: 2003/03/06 22:50:04
Diffstat (limited to 'scripts')
-rw-r--r--scripts/macros.perl12
-rw-r--r--scripts/macros.php9
-rw-r--r--scripts/macros.python18
3 files changed, 39 insertions, 0 deletions
diff --git a/scripts/macros.perl b/scripts/macros.perl
new file mode 100644
index 000000000..b147fbc87
--- /dev/null
+++ b/scripts/macros.perl
@@ -0,0 +1,12 @@
+# Perl specific macro definitions.
+# To make use of these macros insert the following line into your spec file:
+# %include /usr/lib/rpm/macros.perl
+
+%define __find_requires /usr/lib/rpm/find-perl-requires
+%define __find_provides /usr/lib/rpm/find-perl-provides
+
+%define perl_sitelib %(eval "`perl -V:installsitelib`"; echo $installsitelib)
+%define perl_sitearch %(eval "`perl -V:installsitearch`"; echo $installsitearch)
+%define perl_archlib %(eval "`perl -V:installarchlib`"; echo $installarchlib)
+%define perl_privlib %(eval "`perl -V:installprivlib`"; echo $installprivlib)
+
diff --git a/scripts/macros.php b/scripts/macros.php
new file mode 100644
index 000000000..9781775a9
--- /dev/null
+++ b/scripts/macros.php
@@ -0,0 +1,9 @@
+# Perl specific macro definitions.
+# To make use of these macros insert the following line into your spec file:
+# %include /usr/lib/rpm/macros.php
+
+%define __find_requires /usr/lib/rpm/find-php-requires
+%define __find_provides /usr/lib/rpm/find-php-provides
+
+%define php_pear_dir %{_datadir}/pear
+
diff --git a/scripts/macros.python b/scripts/macros.python
new file mode 100644
index 000000000..8975fef4b
--- /dev/null
+++ b/scripts/macros.python
@@ -0,0 +1,18 @@
+# Python specific macro definitions.
+# To make use of these macros insert the following line into your spec file:
+# %include /usr/lib/rpm/macros.python
+
+# python main version
+%define py_ver %(echo `python -c "import sys; print sys.version[:3]"`)
+
+# directories
+%define py_prefix %(echo `python -c "import sys; print sys.prefix"`)
+%define py_libdir %{py_prefix}/lib/python%{py_ver}
+%define py_incdir /usr/include/python%{py_ver}
+%define py_sitedir %{py_libdir}/site-packages
+%define py_dyndir %{py_libdir}/lib-dynload
+
+# pure python modules compilation
+%define py_comp python -c "import compileall; import sys; compileall.compile_dir(sys.argv[1], ddir=sys.argv[1][len('$RPM_BUILD_ROOT'):])"
+
+%define py_ocomp python -O -c "import compileall; import sys; compileall.compile_dir(sys.argv[1], ddir=sys.argv[1][len('$RPM_BUILD_ROOT'):])"