~ubuntu-branches/ubuntu/trusty/mysql-workbench/trusty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov, Mateusz Kijowski
  • Date: 2012-05-17 22:59:56 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120517225956-ifdw1n3vk7y1poot
Tags: 5.2.40+dfsg-1
* New upstream release [May 2012]
* source compression to .xz
* dropped glib-single-include.patch (applied upstream).
* dropped '©' characters from debian/copyright.
* dropped copyright.hints file.
* native server administration profile renamed to "Debian".
  (Closes: #671050)
* dropped unnecessary 'python-all' from Depends (Closes: #674768)
* limit parallel build to 4 due to FTBFS with 8 CPUs.

[ Mateusz Kijowski ]
* debian/copyright cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-bindnow
17
17
 
18
18
%:
19
 
        dh $@ --parallel --with autoreconf,python2
 
19
        dh $@ --parallel --max-parallel=4 --with autoreconf,python2
20
20
 
21
21
override_dh_autoreconf:
22
22
        #NOCONFIGURE="1" ./autogen.sh
41
41
        # generate documentation for mysql-workbench-docs package
42
42
        #cd doc && ./DoxygenRun.sh
43
43
        # build all the rest
44
 
        dh_auto_build
 
44
        dh_auto_build --max-parallel=4
45
45
 
46
46
override_dh_auto_install:
47
 
        dh_auto_install --destdir=$(CURDIR)/debian/tmp
 
47
        dh_auto_install --max-parallel=4 --destdir=$(CURDIR)/debian/tmp
48
48
        # .desktop to unix line endings
49
49
        sed -i 's/\r//g' debian/tmp/usr/share/applications/*.desktop
50
50
        # remove *.la files
69
69
#       dh_strip --dbg-package=$(PACKAGE)-dbg
70
70
 
71
71
 
72
 
COPHINTS := debian/copyright.hints
73
72
VER = $(shell dpkg-parsechangelog | perl -ne 'print $$1 if m/Version:\s*([\d\.]+)/')
74
73
get-orig-source: $(PACKAGE)-$(VER)
75
74
        @echo "Clean-up..."
98
97
             MySQLWorkbench.xcodeproj \
99
98
             res/fonts \
100
99
             tools/utils_wrapper
101
 
        @echo "Packing and scanning for copyright changes..."
 
100
        @echo "Packing..."
102
101
        tar cJf "$(PACKAGE)_$(VER)+dfsg.orig.tar.xz" "$(PACKAGE)-$(VER)" \
103
 
        && cd $(PACKAGE)-$(VER) \
104
 
        && licensecheck --recursive --copyright --check='.*' --ignore='\.(jpg|ico|icns|mwb|sqlite|png)\Z|^debian/' --lines="99999" * \
105
 
        | grep -v '\*No copyright\* UNKNOWN' > ../$(COPHINTS).new
106
 
        DIF=$$(diff -U0 $(COPHINTS) $(COPHINTS).new) \
107
 
        ; [ "$$?" -eq 0 ] && $(RM) $(COPHINTS).new \
108
 
        || echo "$${DIF}" | tee $(COPHINTS).diff
109
 
        $(RM) -r $(PACKAGE)-$(VER)
 
102
        && $(RM) -r $(PACKAGE)-$(VER)
110
103
 
111
104
$(PACKAGE)-$(VER):
112
105
        uscan --noconf --verbose --force-download --rename --repack --destdir=. --download-version $(VER)