[Pkg-cracklib-commits] [pkg-cracklib] 03/05: rename python/_cracklibmodule.c to python/_cracklib.c and use debian/patches/rename-python-c-module.patch to change python/Makefile.am and python/setup.py.in (Closes: #681748)
Jan Dittberner
jandd at alioth.debian.org
Mon Aug 12 07:54:29 UTC 2013
This is an automated email from the git hooks/post-receive script.
jandd pushed a commit to branch experimental
in repository pkg-cracklib.
commit d2fc2fd810f99e3ceb0416f5632ecb3644f1d2e8
Author: Jan Dittberner <jandd at debian.org>
Date: Mon Jul 16 13:02:00 2012 +0200
rename python/_cracklibmodule.c to python/_cracklib.c and use debian/patches/rename-python-c-module.patch to change python/Makefile.am and python/setup.py.in (Closes: #681748)
---
debian/changelog | 3 +++
debian/patches/rename-python-c-module.patch | 26 ++++++++++++++++++++++++++
debian/patches/series | 1 +
debian/rules | 2 ++
4 files changed, 32 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 5a3ee84..97932bd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,9 @@
cracklib2 (2.8.19-2) experimental; urgency=low
* Build with python 3.3
+ * rename python/_cracklibmodule.c to python/_cracklib.c and use
+ debian/patches/rename-python-c-module.patch to change
+ python/Makefile.am and python/setup.py.in (Closes: #681749)
-- Jan Dittberner <jandd at debian.org> Mon, 16 Jul 2012 10:09:33 +0200
diff --git a/debian/patches/rename-python-c-module.patch b/debian/patches/rename-python-c-module.patch
new file mode 100644
index 0000000..138683a
--- /dev/null
+++ b/debian/patches/rename-python-c-module.patch
@@ -0,0 +1,26 @@
+--- a/python/Makefile.am
++++ b/python/Makefile.am
+@@ -1,8 +1,8 @@
+ if BUILD_PYTHON
+ python_PYTHON = cracklib.py
+-pyexec_LTLIBRARIES = _cracklibmodule.la
++pyexec_LTLIBRARIES = _cracklib.la
+ AM_CFLAGS = -I$(top_srcdir)/lib -Wall
+-_cracklibmodule_la_LDFLAGS = -module -avoid-version $(top_builddir)/lib/libcrack.la
++_cracklib_la_LDFLAGS = -module -avoid-version $(top_builddir)/lib/libcrack.la
+ DEFS += '-DDEFAULT_CRACKLIB_DICT="$(DEFAULT_CRACKLIB_DICT)"'
+ DEFS += '-DPYTHON_H="python at PYTHON_VERSION@/Python.h"'
+ endif
+--- a/python/setup.py.in
++++ b/python/setup.py.in
+@@ -22,8 +22,8 @@
+ from setuptools import setup, Extension, find_packages
+
+ extensions = [
+- Extension("_cracklibmodule",
+- ["_cracklibmodule.c"],
++ Extension("_cracklib",
++ ["_cracklib.c"],
+ include_dirs = ["@top_builddir@/lib"],
+ libraries = ["crack"],
+ library_dirs = ["@top_builddir@/lib/.libs"]),
diff --git a/debian/patches/series b/debian/patches/series
index bbcc002..8f5b179 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
install-debian-python-modules.patch
pass-dict-to-cracklib-test.patch
+rename-python-c-module.patch
diff --git a/debian/rules b/debian/rules
index f3abdd9..b4ffb5f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,6 +15,7 @@ PY3VERS := $(shell py3versions -vs)
override_dh_auto_configure:
aclocal && libtoolize && automake --add-missing && autoreconf
mkdir -p $(CURDIR)/debian/buildtmp/base
+ cp $(CURDIR)/python/_cracklibmodule.c $(CURDIR)/python/_cracklib.c
cd $(CURDIR)/debian/buildtmp/base; \
$(CURDIR)/configure \
--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
@@ -62,6 +63,7 @@ override_dh_auto_test:
override_dh_auto_clean:
rm -rf debian/buildtmp
rm -rf debian/doc
+ rm -f python/_cracklib.c
if [ -f Makefile ]; then $(MAKE) clean; fi
if [ -f Makefile ]; then $(MAKE) distclean; fi
# remove files created or modified by autogen.sh
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-cracklib/pkg-cracklib.git
More information about the Pkg-cracklib-commits
mailing list