]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
Improve Debian Packaging (#319)
authorLadislav Slezák <lslezak@suse.cz>
Fri, 13 Jan 2017 18:33:16 +0000 (19:33 +0100)
committerGitHub <noreply@github.com>
Fri, 13 Jan 2017 18:33:16 +0000 (19:33 +0100)
* Improve Debian packaging

- build a single tarball with all Debian packaging (workaround for an OBS bug
  https://github.com/openSUSE/obs-service-source_validator/pull/41)
- rename debian/ to package_deb/ to not conflict with
  upstream packaging (github#310)

* Use dists/debian path for the Debian files

19 files changed:
.gitignore
.travis.ubuntu.sh
Makefile.am
configure.ac
dists/debian/.gitignore [moved from debian/.gitignore with 100% similarity]
dists/debian/changelog [moved from debian/debian.changelog with 100% similarity]
dists/debian/compat [moved from debian/debian.compat with 100% similarity]
dists/debian/control [moved from debian/debian.control with 100% similarity]
dists/debian/libpam-snapper.install [moved from debian/debian.libpam-snapper.install with 100% similarity]
dists/debian/libpam-snapper.manpages [moved from debian/debian.libpam-snapper.manpages with 100% similarity]
dists/debian/libsnapper-dev.install [moved from debian/debian.libsnapper-dev.install with 100% similarity]
dists/debian/libsnapper.install [moved from debian/debian.libsnapper.install with 100% similarity]
dists/debian/rules [moved from debian/debian.rules with 100% similarity]
dists/debian/snapper-Debian.dsc.in.in [moved from debian/snapper-Debian.dsc.in.in with 100% similarity]
dists/debian/snapper-xUbuntu.dsc.in.in [moved from debian/snapper-xUbuntu.dsc.in.in with 100% similarity]
dists/debian/snapper-zypp-plugin.install [moved from debian/debian.snapper-zypp-plugin.install with 100% similarity]
dists/debian/snapper-zypp-plugin.manpages [moved from debian/debian.snapper-zypp-plugin.manpages with 100% similarity]
dists/debian/snapper.install [moved from debian/debian.snapper.install with 100% similarity]
dists/debian/snapper.manpages [moved from debian/debian.snapper.manpages with 100% similarity]

index d222ed9deb6b087c4f57168ecc26e6b10b903503..8d775c53fa16c8c1e0f8e857fbc59af269620321 100644 (file)
@@ -8,6 +8,7 @@ autom4te.cache
 config.*
 configure
 depcomp
+/debian
 install-sh
 libtool
 ltmain.sh
index 888e4a14a1ac16c7dcd09e3a939eb3540f674fd9..18f8d04df907d916aa9f6d587866614e5a94828f 100755 (executable)
@@ -4,8 +4,8 @@ set -e -x
 
 make -f Makefile.repo
 
-# convert the OBS Debian files to the native Debian files
-(cd debian && rename 's/^debian\.//' debian.*)
+# copy the Debian files to the expected place
+cp -a dists/debian debian
 
 # build binary packages
 dpkg-buildpackage -j`nproc` -rfakeroot -b
index f501a8a1d653477e7518511df269eedaf2c39282..d16f124646f19b92e63cb4f880e9ad4fa33494ba 100644 (file)
@@ -59,7 +59,8 @@ package-clean:
 # $< is the first depencency of the rule, i.e. snapper-$(VERSION).tar.gz in this case.
 #
 package: snapper-$(VERSION).tar.bz2 package-clean
-       cp debian/* package/
+       tar cfzv package/debian.tar.gz --transform='s|dists/||' --show-transformed --exclude='*.in' dists/debian/*
+       cp dists/debian/*.dsc.in package/
        echo "$(shell md5sum $< | sed -e 's/\s.*//') $(shell wc -c $<)" >>package/snapper-Debian.dsc.in
        echo "$(shell md5sum $< | sed -e 's/\s.*//') $(shell wc -c $<)" >>package/snapper-xUbuntu.dsc.in
        for FLAV in $(DEBIAN_FLAVOURS); do cp -v package/snapper-Debian.dsc.in  package/snapper-$${FLAV}.dsc; done
index f8199b06f77249dc46ab5bd07d9c5aeec84e8697..03ee675d9e742af59f4feb15d889dedcef2ee714 100644 (file)
@@ -183,6 +183,6 @@ AC_OUTPUT(
        testsuite-real/Makefile
        testsuite-cmp/Makefile
        package/snapper.spec:snapper.spec.in
-        debian/snapper-Debian.dsc.in:debian/snapper-Debian.dsc.in.in
-        debian/snapper-xUbuntu.dsc.in:debian/snapper-xUbuntu.dsc.in.in
+       dists/debian/snapper-Debian.dsc.in:dists/debian/snapper-Debian.dsc.in.in
+       dists/debian/snapper-xUbuntu.dsc.in:dists/debian/snapper-xUbuntu.dsc.in.in
 )
similarity index 100%
rename from debian/.gitignore
rename to dists/debian/.gitignore
similarity index 100%
rename from debian/debian.compat
rename to dists/debian/compat
similarity index 100%
rename from debian/debian.control
rename to dists/debian/control
similarity index 100%
rename from debian/debian.rules
rename to dists/debian/rules