File: rules

package info (click to toggle)
pykickstart 1.83-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 1,888 kB
  • ctags: 1,625
  • sloc: python: 7,969; makefile: 122
file content (15 lines) | stat: -rwxr-xr-x 640 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/make -f

UPSTREAM_VERSION ?= $(shell uscan --dehs | sed -n 's/.*<upstream-version>\(.*\)<\/upstream-version>.*/\1/p')

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
	dh $@ --buildsystem=python_distutils --with python2

get-orig-source:
	wget http://download.fedora.redhat.com/pub/fedora/linux/development/source/SRPMS/pykickstart-${UPSTREAM_VERSION}-1.fc14.src.rpm \
	&& rpm2cpio pykickstart-${UPSTREAM_VERSION}-1.fc14.src.rpm |cpio -id \
	&& mv -f pykickstart-${UPSTREAM_VERSION}.tar.gz pykickstart_${UPSTREAM_VERSION}.orig.tar.gz \
	&& rm -f pykickstart-${UPSTREAM_VERSION}-1.fc14.src.rpm pykickstart.spec