return to using CDBS, make package fully multi-arch compliant, drop previously (with DH) needed patches

This commit is contained in:
Mike Gabriel
2013-12-21 23:40:04 +01:00
parent 69bab2e6e9
commit d0c38565aa
7 changed files with 33 additions and 36 deletions

23
debian/control vendored
View File

@ -6,6 +6,7 @@ Uploaders: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>,
Stefano Karapetsas <stefano@karapetsas.com>, Stefano Karapetsas <stefano@karapetsas.com>,
Mike Gabriel <sunweaver@debian.org>, Mike Gabriel <sunweaver@debian.org>,
Build-Depends: debhelper (>= 9), Build-Depends: debhelper (>= 9),
cdbs,
autotools-dev, autotools-dev,
pkg-config, pkg-config,
libdbus-glib-1-dev, libdbus-glib-1-dev,
@ -16,23 +17,36 @@ Build-Depends: debhelper (>= 9),
libgirepository1.0-dev, libgirepository1.0-dev,
gobject-introspection, gobject-introspection,
mate-common, mate-common,
quilt, Standards-Version: 3.9.5
Standards-Version: 3.9.4
Homepage: http://www.mate-desktop.org/ Homepage: http://www.mate-desktop.org/
Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-mate/mate-polkit.git;a=summary Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-mate/mate-polkit.git;a=summary
Vcs-Git: git://anonscm.debian.org/pkg-mate/mate-polkit.git Vcs-Git: git://anonscm.debian.org/pkg-mate/mate-polkit.git
Package: mate-polkit Package: mate-polkit
Architecture: any Architecture: any
Multi-Arch: same
Depends: ${shlibs:Depends}, Depends: ${shlibs:Depends},
${misc:Depends}, ${misc:Depends},
policykit-1, policykit-1,
mate-polkit-common (= ${binary:Version}),
Description: MATE authentication agent for PolicyKit-1 Description: MATE authentication agent for PolicyKit-1
The mate-polkit package provides a D-Bus session bus service that is used to The mate-polkit package provides a D-Bus session bus service that is used to
bring up authentication dialogs used for obtaining privileges. bring up authentication dialogs used for obtaining privileges.
. .
This package contains the MATE policy kit authentication agent. This package contains the MATE policy kit authentication agent.
Package: mate-polkit-common
Architecture: any
Multi-Arch: foreign
Depends: ${shlibs:Depends},
${misc:Depends},
Description: MATE authentication agent for PolicyKit-1 (common files)
The mate-polkit package provides a D-Bus session bus service that is used to
bring up authentication dialogs used for obtaining privileges.
.
This package contains common files for the MATE policy kit authentication
agent.
Package: libpolkit-gtk-mate-1-0 Package: libpolkit-gtk-mate-1-0
Section: libs Section: libs
Architecture: any Architecture: any
@ -65,13 +79,14 @@ Description: MATE authentication agent for PolicyKit-1 (development files)
This package contains the development files for mate-polkit. This package contains the development files for mate-polkit.
Package: libpolkit-gtk-mate-1-0-dbg Package: libpolkit-gtk-mate-1-0-dbg
Section: libs Priority: extra
Section: debug
Architecture: any Architecture: any
Multi-Arch: same Multi-Arch: same
Depends: ${shlibs:Depends}, Depends: ${shlibs:Depends},
${misc:Depends}, ${misc:Depends},
libpolkit-gtk-mate-1-0 (= ${binary:Version}), libpolkit-gtk-mate-1-0 (= ${binary:Version}),
Description: MATE authentication agent for PolicyKit-1 (library) Description: MATE authentication agent for PolicyKit-1 (debugging symbols)
The mate-polkit package provides a D-Bus session bus service that is used to The mate-polkit package provides a D-Bus session bus service that is used to
bring up authentication dialogs used for obtaining privileges. bring up authentication dialogs used for obtaining privileges.
. .

2
debian/mate-polkit-common.install vendored Normal file
View File

@ -0,0 +1,2 @@
etc/
usr/share/locale/

View File

@ -1,3 +1 @@
etc/ usr/lib/*/polkit-mate/
usr/lib/polkit-mate/
usr/share/locale/

View File

@ -1,8 +0,0 @@
Description: Skip auto-generated .desktop. file in i18n workflow
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
--- a/po/POTFILES.skip
+++ b/po/POTFILES.skip
@@ -1 +1,2 @@
polkitgtkmate/example.c
+src/polkit-mate-authentication-agent-1.desktop.in
\ No newline at end of file

View File

@ -1,3 +0,0 @@
0xxx: Grabbed from upstream development.
1xxx: Possibly relevant for upstream adoption.
2xxx: Only relevant for official Debian release.

View File

@ -1 +0,0 @@
1001_skip-generated-desktop-file-via-POTFILES.patch

28
debian/rules vendored
View File

@ -1,22 +1,16 @@
#!/usr/bin/make -f #!/usr/bin/make -f
%: include /usr/share/cdbs/1/rules/debhelper.mk
dh $@ --with quilt include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/utils.mk
override_dh_install: DEB_DH_INSTALL_ARGS += --list-missing
dh_install --list-missing
override_dh_auto_configure: DEB_CONFIGURE_SCRIPT := ./autogen.sh
./autogen.sh
# dh_auto_configure -- \
# --localstatedir=/var \
# --libexecdir=/usr/lib/polkit-mate \
# --disable-static \
# --disable-introspection
override_dh_strip: DEB_CONFIGURE_EXTRA_FLAGS := --localstatedir=/var \
dh_strip -plibpolkit-gtk-mate-1-0 --dbg-package=libpolkit-gtk-mate-1-0-dbg --libdir=/usr/lib/$(shell dpkg-architecture -qDEB_BUILD_MULTIARCH) \
--includedir=/usr/include/$(shell dpkg-architecture -qDEB_BUILD_MULTIARCH) \
--libexecdir=/usr/lib/$(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)/polkit-mate \
get-orig-source: --disable-static \
uscan --noconf --force-download --rename --download-current-version --destdir=.. --disable-introspection