DEBIAN_FLAVOURS = \
Debian_7.0 \
- Debian_8.0 \
+ Debian_8.0
+
+UBUNTU_FLAVOURS = \
xUbuntu_14.04 \
xUbuntu_14.10 \
xUbuntu_15.04 \
show-debian:
@echo "Debian flavors: $(DEBIAN_FLAVOURS)"
+show-ubuntu:
+ @echo "Ubuntu flavors: $(UBUNTU_FLAVOURS)"
+
package-clean:
rm -f package/snapper-*.tar.bz2
rm -f package/debian.*
- rm -f package/*.dsc
+ rm -f package/*.dsc*
# Create all the files necessary for building the package with OBS:
#
# - Clean up the package/ directory
# - create a new tarball (via the depencency)
# - copy the content of the debian/ directory
-# - generate a master .dsc file with the "Files:" line for the tarball
-# with its md5sum, file size in bytes, and name
-# - copy that .dsc master file for each flavor of Debian to be supported
-# - remove the .dsc master file and the .dsc.in file
+# - for both Debian and Ubuntu, generate a master .dsc.in from file with the
+# "Files:" line for the tarball with its md5sum, file size in bytes, and name
+# - copy that .dsc.in master file for each flavor of Debian or Ubuntu to be supported
+# - remove the .dsc.in master file and the .dsc.in.in file
# - move the new tarball to the package/ directory
#
# Unfortunately, using variables for the md5sum and the file size didn't work out
# (not even with the GNU make ':=' syntax): They cannot be assigned in the 'actions'
# part of a rule, only outside rules.
#
-# The debian/snapper.dsc file is generated by autoconf (see configure.ac) from
-# debian/snapper.dsc.in with @VERSION@ expanded with the content of
-# $toplevel/VERSION.
+# The .dsc files are generated from a .dsc.in file for each Debian and Ubuntu,
+# which in turn are generated by configure/autoconf from .dsc.in.in files (see
+# configure.ac) where @VERSION@ is expanded with the content of the toplevel
+# VERSION file.
#
# $< 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/
- echo "$(shell md5sum $< | sed -e 's/\s.*//') $(shell wc -c $<)" >>package/snapper.dsc
- for DEB in $(DEBIAN_FLAVOURS); do cp -v package/snapper.dsc package/snapper-$${DEB}.dsc; done
- rm package/snapper.dsc*
+ 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
+ for FLAV in $(UBUNTU_FLAVOURS); do cp -v package/snapper-xUbuntu.dsc.in package/snapper-$${FLAV}.dsc; done
+ rm package/snapper*.dsc.in*
mv snapper-$(VERSION).tar.bz2 package/
Architecture: any
Build-Depends: debhelper (>= 4.1.16), acl-dev, g++, libboost-dev, libboost-thread-dev, libboost-system-dev, libboost-test-dev, libxml2-dev, libz-dev, libdbus-1-dev, libpam-dev, xsltproc, docbook-xsl, locales-all
#
-# The 'Files' line is generated during 'make debian-package':
+# The 'Files' line is generated during 'make package':
# Files:
# 423a20ae6e882d44e65a4eff97f2269f 630905 snapper-0.2.8.tar.gz
-# md5sum size filename
+#
Files:
--- /dev/null
+Format: 1.0
+Source: snapper
+Version: @VERSION@
+Binary: snapper
+Maintainer: Arvin Schnell <aschnell@suse.com>
+Architecture: any
+Build-Depends: debhelper (>= 4.1.16), acl-dev, g++, libboost-dev, libboost-thread-dev, libboost-system-dev, libboost-test-dev, libxml2-dev, libz-dev, libdbus-1-dev, libpam-dev, xsltproc, docbook-xsl, language-pack-en, language-pack-de
+#
+# The 'Files' line is generated during 'make package':
+# Files:
+# 423a20ae6e882d44e65a4eff97f2269f 630905 snapper-0.2.8.tar.gz
+#
+Files: