File: rules

package info (click to toggle)
trac 0.11.1-2.1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 3,948 kB
  • ctags: 3,998
  • sloc: python: 31,861; cs: 287; sh: 238; makefile: 41; xml: 10
file content (51 lines) | stat: -rwxr-xr-x 1,151 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/make -f

PYVER=$(shell python -c 'import sys; print sys.version[:3]')
include /usr/share/dpatch/dpatch.make

clean: unpatch 
	dh_testdir
	dh_testroot
	rm -f build-stamp
	rm -rf dist build
	-find . -name *\.py[co] -exec rm {} \;
	dh_clean

build: patch build-stamp

build-stamp:
	dh_testdir

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	python setup.py install \
		--root=$(CURDIR)/debian/trac \
		--single-version-externally-managed
	chmod +x $(CURDIR)/debian/trac/usr/lib/python$(PYVER)/site-packages/trac/admin/templates/deploy_trac.wsgi
	chmod +x $(CURDIR)/debian/trac/usr/lib/python$(PYVER)/site-packages/trac/admin/templates/deploy_trac.fcgi
	chmod +x $(CURDIR)/debian/trac/usr/lib/python$(PYVER)/site-packages/trac/admin/templates/deploy_trac.cgi

binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs
	dh_installdocs
	dh_installman
	dh_link
	dh_lintian
	dh_pycentral
	dh_compress -X.py
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-arch: build install

binary: binary-indep binary-arch

.PHONY: build clean binary-indep binary-arch binary install configure