1
0
forked from pool/osc
osc-fork/debian.rules
Daniel Mach e1899beedd Accepting request 1084128 from home:nickbrown:branches:openSUSE:Tools
Fixed the installation of the completion, which was missing.
Create/Install a manpage.
Fixed a few lintian warnings about the packaging.

Adding this to the openSUSE:Tools prjconf would be useful so that lintian is automatically run on the built packages: https://github.com/openSUSE/obs-build/blob/master/build-recipe-dsc#L184

```
%if 0%{?debian}
support: lintian
%endif
```

OBS-URL: https://build.opensuse.org/request/show/1084128
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/osc?expand=0&rev=394
2023-05-03 08:25:44 +00:00

29 lines
789 B
Makefile

#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
export PYBUILD_NAME=osc
%:
dh $@ --with python3 --buildsystem=pybuild
override_dh_auto_build:
dh_auto_build
PYTHONPATH=. argparse-manpage \
--output=osc.1 \
--module=osc.commandline \
--function=get_parser \
--project-name=osc \
--author="Contributors to the osc project. See the project's GIT history for the complete list." \
--url="https://github.com/openSUSE/osc/"
override_dh_auto_install:
dh_auto_install
install -Dm0644 contrib/complete.csh debian/osc/etc/profile.d/osc.csh
install -Dm0644 contrib/complete.sh debian/osc/etc/bash_completion.d/osc.sh
install -Dm0755 contrib/osc.complete debian/osc/usr/lib/osc/complete
override_dh_auto_test:
echo "skipping test"