Browse Source

* New upstream release candidate, including C++ support again

(Closes: #458576).
* debian/rules:
  - A bit of housekeeping and cruft removal.
* debian/libgps-dev.install:
  - File added (instead of handling this in debian/rules).

git-svn-id: https://ssl.recluse.de/svn/debian/packages/gpsd/trunk@502 9c2cd6cd-4e54-406b-9ece-f07a8ab7d216
tags/debian/2.37-6
bzed 13 years ago
parent
commit
f28df219ae
3 changed files with 57 additions and 82 deletions
  1. +11
    -0
      debian/changelog
  2. +6
    -0
      debian/libgps-dev.install
  3. +40
    -82
      debian/rules

+ 11
- 0
debian/changelog View File

@@ -1,3 +1,14 @@
gpsd (2.37rc1-1) unstable; urgency=low

* New upstream release candidate, including C++ support again
(Closes: #458576).
* debian/rules:
- A bit of housekeeping and cruft removal.
* debian/libgps-dev.install:
- File added (instead of handling this in debian/rules).

-- Bernd Zeimetz <bzed@debian.org> Sun, 17 Feb 2008 13:00:48 +0100

gpsd (2.36-2) unstable; urgency=low

* debian/patches:


+ 6
- 0
debian/libgps-dev.install View File

@@ -0,0 +1,6 @@
debian/tmp/usr/include/*
debian/tmp/usr/share/man/man3/*
debian/tmp/usr/share/man/man5/*
debian/tmp/usr/lib/pkgconfig/*
debian/tmp/usr/lib/libgps.la
debian/tmp/usr/lib/libgps.a

+ 40
- 82
debian/rules View File

@@ -41,10 +41,10 @@ else
CFLAGS += -O2
endif

#supporting LinuxThreads
CFLAGS += -D_REENTRANT
#LDFLAGS
LDFLAGS += -Wl,-z,defs

CONFENV += CFLAGS="$(CFLAGS)"
CONFENV += LDFLAGS="$(LDFLAGS)" CFLAGS="$(CFLAGS)"


#we build the python extension manually
@@ -56,7 +56,7 @@ CONFFLAGS += --enable-dbus

#library versions
LIB_version := $(shell grep '^libgps_la_LDFLAGS' Makefile.am | \
sed 's,^[^0-9]*,,g;s,:,.,g')
sed 's,^[^0-9]*,,g;s,\([0-9]*\):\([0-9]*\):\([0-9]*\),\1.\3.\2,g')
LIB_major := $(shell echo $(LIB_version) | sed 's,\..*,,g')


@@ -83,82 +83,53 @@ endif
touch $@


define CLEAN_BUILDDIR
[ ! -r Makefile ] || $(MAKE) distclean
[ ! -d $(CURDIR)/debian/tmp ] || rm -rf $(CURDIR)/debian/tmp
rm -f *.1 *.3 *.5 *.8 .1
endef
configure: config.status
config.status: patch-stamp
dh_testdir
$(CONFENV) ./configure $(CONFFLAGS)

build: build-lib-static build-gpsd build-python
build: build-gpsd build-python
build-gpsd: build-gpsd-stamp
build-python: build-python-stamp
build-lib-static: build-lib-static-stamp

MAKEFLAGS_LIB_DEV = \
bin_PROGRAMS= \
sbin_PROGRAMS= \
man_MANS='libgps.3 libgpsd.3 libgpsmm.3 rtcm-104.5 srec.5'

build-lib-static-stamp: patch-stamp autotools-dev-stamp
build-gpsd-stamp: config.status
dh_testdir

$(CLEAN_BUILDDIR)

$(CONFENV) ./configure $(CONFFLAGS) --without-pic --disable-shared

$(MAKE) $(MAKEFLAGS_LIB_DEV)
$(MAKE)
#this is a rather ugly hack to work around broken linebreaks
#from docbook
sed -i 's,^.BI "void gps_set_callback(struct,.warn .BI "void gps_set_callback(struct,' libgps.3

$(MAKE) install $(MAKEFLAGS_LIB_DEV) DESTDIR=$(CURDIR)/debian/tmp

#install all files, except libgps.la (will be installed when we
#build a shared library, too)
find debian/tmp -name libgps.la -o -type f -print > \
debian/$(PACKAGE_LIB_DEV).install
dh_install -p$(PACKAGE_LIB_DEV)
rm debian/$(PACKAGE_LIB_DEV).install

dh_link -p$(PACKAGE_LIB_DEV) usr/lib/libgps.so.$(LIB_major) \
usr/lib/libgps.so

cp INSTALL TROUBLESHOOTING
touch $@


build-gpsd-stamp: patch-stamp autotools-dev-stamp
dh_testdir

$(CLEAN_BUILDDIR)

#sanity check if debian/control lists the right package name
grep -q '^Package: libgps$(LIB_major)' debian/control

LDFLAGS="-Wl,-z,defs" $(CONFENV) ./configure $(CONFFLAGS) --with-pic

$(MAKE)

#unfortunately sbuild/pbilder don't support ptys
#ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
# $(MAKE) testregress
#endif

build-python-stamp: build-gpsd-stamp
dh_testdir
$(MAKE) packet_names.h gpsfake.1 gpsprof.1
set -e; \
for py in $(PYVERS); do \
$$py setup.py build; \
done
touch $@


install: install-gpsd install-python

install-gpsd: build-gpsd-stamp
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
cp INSTALL TROUBLESHOOTING

#ldconfig link
dh_link -p$(PACKAGE_LIB) usr/lib/libgps.so.$(LIB_version) \
usr/lib/libgps.so.$(LIB_major)

dh_link -p$(PACKAGE_LIB_DEV) usr/lib/libgps.so.$(LIB_major) \
usr/lib/libgps.so
#the build-system creates some really weird files here
#(instead of not creating a file at all)
rm -f $(CURDIR)/debian/tmp/usr/share/man/man1/cgps.1 \
$(CURDIR)/debian/tmp/usr/share/man/man1/cgpxlogger.1 \
$(CURDIR)/debian/tmp/usr/share/man/man1/gpxlogger.1

dh_installman -p$(PACKAGE_CLIENTS) xgps.1

dh_link -p$(PACKAGE_CLIENTS) usr/share/man/man1/xgps.1.gz \
usr/share/man/man1/cgps.1.gz
dh_link -p$(PACKAGE_CLIENTS) usr/share/man/man1/xgps.1.gz \
@@ -167,49 +138,37 @@ build-gpsd-stamp: patch-stamp autotools-dev-stamp
usr/share/man/man1/cgpxlogger.1.gz
dh_link -p$(PACKAGE_CLIENTS) usr/share/man/man1/xgps.1.gz \
usr/share/man/man1/gpxlogger.1.gz

chmod 755 debian/gpsd.hotplug.wrapper
dh_install -p$(PACKAGE_GPSD)
dh_install -p$(PACKAGE_CLIENTS)
dh_install -p$(PACKAGE_LIB) debian/tmp/usr/lib/libgps.so.$(LIB_version)
dh_install -p$(PACKAGE_LIB_DEV) debian/tmp/usr/lib/libgps.la

install -d -m 755 debian/$(PACKAGE_CLIENTS)/etc/X11/app-defaults
install -m 644 xgps.ad debian/$(PACKAGE_CLIENTS)/etc/X11/app-defaults/xgps
install -m 644 xgpsspeed.ad debian/$(PACKAGE_CLIENTS)/etc/X11/app-defaults/xgpsspeed

touch $@


build-python-stamp: build-gpsd-stamp
dh_testdir

$(MAKE) packet_names.h gpsfake.1 gpsprof.1

set -e; \
install-python: build-python-stamp
set -e ;\
for py in $(PYVERS); do \
$$py setup.py build; \
$$py setup.py install --root=debian/$(PACKAGE_PY); \
$$py setup.py install --root=debian/$(PACKAGE_PY); \
done

dh_pysupport -p$(PACKAGE_PY)
chmod 755 debian/$(PACKAGE_PY)/usr/share/python-support/python-gps/gps.py

touch $@


clean: clean-patched unpatch
clean-patched:
dh_testdir
dh_testroot
dh_clean

#sanity check if debian/control lists the right package name
grep -q '^Package: libgps$(LIB_major)' debian/control
#update debconf po files
debconf-updatepo

rm -f autotools-dev-stamp
rm -f build-gpsd-stamp build-python-stamp
rm -f TROUBLESHOOTING

python setup.py clean
rm -rf build
[ ! -r Makefile ] || $(MAKE) distclean
rm -f *.1 *.3 *.5 *.8 .1
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
rm -f config.sub
endif
@@ -217,9 +176,6 @@ ifneq "$(wildcard /usr/share/misc/config.guess)" ""
rm -f config.guess
endif

python setup.py clean
rm -rf build
$(CLEAN_BUILDDIR)


binary-indep:
@@ -234,6 +190,8 @@ binary-arch: build
dh_installdebconf -s
dh_installinit -s
dh_installexamples -s
dh_pysupport -s
chmod 755 debian/$(PACKAGE_PY)/usr/share/python-support/python-gps/gps.py
dh_link -s
dh_strip -s
dh_compress -s
@@ -251,4 +209,4 @@ binary: binary-indep binary-arch
.PHONY: build build-gpsd build-python build-lib-static \
clean clean-patched \
binary-indep binary-arch binary install \
get-orig-source
install-python install-gpsd

Loading…
Cancel
Save