submit qcoan to Science, updated version 3 OBS-URL: https://build.opensuse.org/request/show/628058 OBS-URL: https://build.opensuse.org/package/show/science/qcoan?expand=0&rev=1
62 lines
1.4 KiB
Makefile
62 lines
1.4 KiB
Makefile
#!/usr/bin/make -f
|
|
#tar -xzf %{source1}
|
|
|
|
VERSION := 2.0
|
|
SOURCE0 := ../SOURCES/coan-v$(VERSION).tar.bz2
|
|
SOURCE2 := ../SOURCES/qcoan.desktop
|
|
XTRACT_DIR := coan-$(VERSION)
|
|
#INST_DIR := $(CURDIR)/debian/tmp
|
|
INST_DIR := $(CURDIR)/debian/qcoan
|
|
#INST_DIR := $(DESTDIR)
|
|
#MAN_DIR := /usr/share/man
|
|
DOC_DIR := /usr/share/doc
|
|
|
|
.PHONY: configure build install binary clean build-arach build-indep binary-arch binary-indep
|
|
|
|
configure:
|
|
echo BUILD_DIR=$(BUILD_DIR)
|
|
echo INST_DIR=$(INST_DIR)
|
|
echo "dir:$(XTRACT_DIR)"
|
|
|
|
build:
|
|
#find .. # -> ../SOURCES, ../BUILD/ - .at.bz2 extracted here, current dir, ../qcoan_2.0-0.dsc, ../qcoan_2.0-0.diff.gz, ../DEBS, ../OTHER
|
|
qmake qcoan.pro
|
|
dh_auto_build
|
|
|
|
install:
|
|
mkdir -p $(INST_DIR)/usr/bin
|
|
cp -a debian/changelog ./changelog.Debian
|
|
gzip -9 changelog.Debian
|
|
mv C-FSL-v1.1.txt copyright
|
|
dh_install
|
|
dh_strip --dbg-package=qcoan-dbg
|
|
dh_shlibdeps
|
|
|
|
|
|
# cd BUILD; dh install binary-amd64 --no-act
|
|
# dh binary-arch --no-act ... gives a more comprehensive list
|
|
# dh install --no-act ... gives the order in which debhelpers shall be called
|
|
binary: configure build install
|
|
dh_testdir
|
|
dh_testroot
|
|
#dh_installchangelogs ChangeLog
|
|
dh_fixperms
|
|
#dh_installman
|
|
dh_installdocs --link-doc=qcoan
|
|
dh_installdeb
|
|
dh_md5sums
|
|
dh_gencontrol
|
|
dh_builddeb
|
|
|
|
build-arch: configure build
|
|
build-indep: configure build
|
|
binary-arch:
|
|
binary-indep:
|
|
|
|
clean:
|
|
dh_testdir
|
|
dh_testroot
|
|
rm -f build-qt/* changelog.Debian.gz
|
|
dh_clean
|
|
|