~ubuntu-branches/ubuntu/utopic/libxml2/utopic

« back to all changes in this revision

Viewing changes to .pc/0006-fix-python-multiarch-includes.patch/python/Makefile.am

  • Committer: Package Import Robot
  • Author(s): Aron Xu, Christian Svensson, Daniel Schepler, Helmut Grohne, Adam Conrad, Matthias Klose, Aron Xu
  • Date: 2014-07-09 05:40:15 UTC
  • mfrom: (43.2.6 sid)
  • Revision ID: package-import@ubuntu.com-20140709054015-1q7dyagza4p2gkm0
Tags: 2.9.1+dfsg1-4
[ Christian Svensson ]
* Do not build-depend on readline (Closes: #742350)

[ Daniel Schepler ]
* Patch to bootstrap without python (Closes: #738080)

[ Helmut Grohne ]
* Drop unneeded B-D on perl and binutils (Closes: #753005)

[ Adam Conrad ]
* Actually run dh_autoreconf, which the old/new mixed rules file misses.

[ Matthias Klose ]
* Add patch to fix python multiarch issue
* Allow the package to cross-build by tweaking B-Ds on python
* Set PYTHON_LIBS for cross builds

[ Aron Xu ]
* Use correct $CC
* Configure udeb without python
* New round of cherry-picking upstream fixes
  - Includes fixes for CVE-2014-0191 (Closes: #747309).
* Call prename with -vf
* Require python-all-dev (>= 2.7.5-5~)
* Bump std-ver: 3.9.4 -> 3.9.5, no change

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Makefile for libxml2 python library
2
 
AUTOMAKE_OPTIONS = 1.4 foreign
3
 
 
4
 
SUBDIRS = . tests
5
 
 
6
 
docsdir = $(datadir)/doc/libxml2-python-$(LIBXML_VERSION)
7
 
dist_docs_DATA = TODO
8
 
 
9
 
EXTRA_DIST =                    \
10
 
        setup.py                \
11
 
        generator.py            \
12
 
        libxml.py               \
13
 
        libxml2-export.c        \
14
 
        libxml2-python-api.xml  \
15
 
        libxml2class.py         \
16
 
        libxml2class.txt
17
 
 
18
 
if WITH_PYTHON
19
 
AM_CPPFLAGS = \
20
 
        -I$(top_builddir)/include \
21
 
        -I$(top_srcdir)/include \
22
 
        -I$(PYTHON_INCLUDES)
23
 
 
24
 
python_LTLIBRARIES = libxml2mod.la
25
 
 
26
 
libxml2mod_la_SOURCES = libxml.c libxml_wrap.h libxml2-py.h libxml2-py.c types.c
27
 
libxml2mod_la_LDFLAGS = $(CYGWIN_EXTRA_LDFLAGS) $(WIN32_EXTRA_LDFLAGS) -module -avoid-version \
28
 
        $(top_builddir)/libxml2.la $(CYGWIN_EXTRA_PYTHON_LIBADD) $(WIN32_EXTRA_PYTHON_LIBADD) $(PYTHON_LIBS)
29
 
 
30
 
BUILT_SOURCES = libxml2-export.c libxml2-py.h libxml2-py.c
31
 
 
32
 
# libxml.c #includes libxml2-export.c
33
 
libxml.$(OBJEXT): libxml2-export.c
34
 
 
35
 
libxml2.py: $(srcdir)/libxml.py libxml2class.py
36
 
        cat $(srcdir)/libxml.py `test -f libxml2class.py || echo $(srcdir)/`libxml2class.py > $@
37
 
 
38
 
dist_python_DATA = \
39
 
        drv_libxml2.py \
40
 
        libxml2.py
41
 
        
42
 
CLEANFILES = *.pyc
43
 
 
44
 
MAINTAINERCLEANFILES = libxml2.py libxml2class.*
45
 
 
46
 
API_DESC = $(top_srcdir)/doc/libxml2-api.xml $(srcdir)/libxml2-python-api.xml
47
 
GENERATED = libxml2class.py libxml2class.txt $(BUILT_SOURCES)
48
 
 
49
 
$(GENERATED): $(srcdir)/generator.py $(API_DESC)
50
 
        $(PYTHON) $(srcdir)/generator.py $(srcdir)
51
 
endif
52
 
 
53
 
tests test: all
54
 
        cd tests && $(MAKE) tests