From c7030e8d7e7f93d246cad02dbd8fbf0ab218b163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl=20F=C3=BCrstenberg?= Date: Sun, 4 Jan 2015 05:32:37 +0100 Subject: [PATCH] Debianization To build the debian package, it's recommended to use git-buildpackage. It's assumed the debian files is in the "debian" branch, and the obs upstream source is in the "master" branch. Override if necessary. --- debian/.gitignore | 7 ++++ debian/changelog | 5 +++ debian/compat | 1 + debian/control | 86 ++++++++++++++++++++++++++++++++++++++ debian/copyright | 43 +++++++++++++++++++ debian/gbp.conf | 6 +++ debian/libobs-dev.install | 4 ++ debian/libobs0.install | 3 ++ debian/obs-plugins.install | 2 + debian/obs-studio.install | 6 +++ debian/rules | 36 ++++++++++++++++ debian/source/format | 1 + 12 files changed, 200 insertions(+) create mode 100644 debian/.gitignore create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/gbp.conf create mode 100644 debian/libobs-dev.install create mode 100644 debian/libobs0.install create mode 100644 debian/obs-plugins.install create mode 100644 debian/obs-studio.install create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/debian/.gitignore b/debian/.gitignore new file mode 100644 index 0000000..cd2dcaf --- /dev/null +++ b/debian/.gitignore @@ -0,0 +1,7 @@ +files +*.debhelper +*.substvars +libobs-dev +libobs +obs-studio +tmp diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..8973fde --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +obsproject (0.7.2-1) unstable; urgency=low + + * Initial release (Closes: #774744) + + -- Carl Fürstenberg Fri, 09 Jan 2015 19:34:46 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..2768749 --- /dev/null +++ b/debian/control @@ -0,0 +1,86 @@ +Source: obsproject +Section: video +Priority: optional +Maintainer: Carl Fürstenberg +Build-Depends: + debhelper (>= 9), + cmake, + libavformat-ffmpeg-dev, + libavcodec-ffmpeg-dev, + libavutil-ffmpeg-dev, + libswresample-ffmpeg-dev, + libswscale-ffmpeg-dev, + libx11-dev, + libgl1-mesa-dev | libgl-dev, + libpulse-dev, + libxcomposite-dev, + libxinerama-dev, + libv4l-dev, + libudev-dev, + libfreetype6-dev, + libfontconfig-dev, + qtbase5-dev, + libqt5x11extras5-dev, + libx264-dev, + libxcb-xinerama0-dev, + libxcb-shm0-dev +Standards-Version: 3.9.5 +Homepage: https://obsproject.com/ +#Vcs-Git: git://anonscm.debian.org/collab-maint/obs.git +#Vcs-Browser: http://anonscm.debian.org/?p=collab-maint/obs.git;a=summary + +Package: obs-studio +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, libobs0 (>= ${binary:Version}), obs-plugins (>= ${binary:Version}) +Description: OBS Studio + a rewrite of what was formerly known as "Open Broadcaster + Software", software originally designed for recording and streaming live + video content, efficiently. + +Package: obs-plugins +Multi-Arch: same +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, libobs0 (>= ${binary:Version}) +Pre-Depends: ${misc:Pre-Depends} +Description: OBS Studio Plugins + a rewrite of what was formerly known as "Open Broadcaster + Software", software originally designed for recording and streaming live + video content, efficiently. + . + This package contains various default plugins for obs-studio. + +Package: libobs0 +Multi-Arch: same +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Pre-Depends: ${misc:Pre-Depends} +Description: OBS library + a rewrite of what was formerly known as "Open Broadcaster + Software", software originally designed for recording and streaming live + video content, efficiently. + . + this package contains the libraries needed for obs-studio. + +Package: libobs0-dbg +Section: debug +Priority: extra +Architecture: any +Depends: ${misc:Depends}, libobs0 (= ${binary:Version}) +Description: debugging symbols for OBS library + a rewrite of what was formerly known as "Open Broadcaster + Software", software originally designed for recording and streaming live + video content, efficiently. + . + This package contains the debugging symbols for libobs0. + +Package: libobs-dev +Section: libdevel +Architecture: any +Depends: ${misc:Depends}, libobs0 (= ${binary:Version}) +Description: OBS library development files + a rewrite of what was formerly known as "Open Broadcaster + Software", software originally designed for recording and streaming live + video content, efficiently. + . + This package contains the development files for libobs0. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..c9bad9a --- /dev/null +++ b/debian/copyright @@ -0,0 +1,43 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: obs +Source: https://obsproject.com/ + +Files: * +Copyright: 2013-2014 by Hugh Bailey +License: GPL-2+ + +Files: libobs/obs-audio-controls.c + libobs/obs-audio-controls.h +Copyright: 2014 by Leonhard Oelke +License: GPL-2+ + +Files: obs/platform-x11.cpp +Copyright: 2013 by Hugh Bailey + 2014 by Zachary Lund +License: GPL-2+ + +Files: obs/window-remux.cpp + obs/window-remux.hpp +Copyright: 2014 by Ruwen Hahn +License: GPL-2+ + +Files: debian/* +Copyright: 2015 Carl Fürstenberg +License: GPL-2+ + +License: GPL-2+ + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..6d4cc28 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,6 @@ +[buildpackage] +upstream-tree = tag +upstream-tag = %(version)s +upstream-branch = master +debian-branch = debian +submodules = true diff --git a/debian/libobs-dev.install b/debian/libobs-dev.install new file mode 100644 index 0000000..8e930c9 --- /dev/null +++ b/debian/libobs-dev.install @@ -0,0 +1,4 @@ +usr/include/* +usr/lib/*/libobsglad.so +usr/lib/*/libobs.so +usr/lib/*/cmake/LibObs/* diff --git a/debian/libobs0.install b/debian/libobs0.install new file mode 100644 index 0000000..88d6529 --- /dev/null +++ b/debian/libobs0.install @@ -0,0 +1,3 @@ +usr/lib/*/lib*.so.* +usr/lib/*/libobs-opengl.so +usr/share/obs/libobs/* diff --git a/debian/obs-plugins.install b/debian/obs-plugins.install new file mode 100644 index 0000000..169151c --- /dev/null +++ b/debian/obs-plugins.install @@ -0,0 +1,2 @@ +/usr/share/obs/obs-plugins/* +/usr/lib/*/obs-plugins/* diff --git a/debian/obs-studio.install b/debian/obs-studio.install new file mode 100644 index 0000000..635371d --- /dev/null +++ b/debian/obs-studio.install @@ -0,0 +1,6 @@ +usr/bin/obs +usr/share/obs/obs-studio/* + +usr/share/icons/hicolor/256x256/apps/obs.png + +usr/share/applications/obs.desktop diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..27026fa --- /dev/null +++ b/debian/rules @@ -0,0 +1,36 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +#DH_VERBOSE = 1 + +# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/* +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/default.mk + +# see FEATURE AREAS in dpkg-buildflags(1) +#export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +# see ENVIRONMENT in dpkg-buildflags(1) +# package maintainers to append CFLAGS +#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +# package maintainers to append LDFLAGS +#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + +DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) +# main packaging script based on dh7 syntax +%: + dh $@ + +override_dh_auto_configure: + dh_auto_configure -- \ + -DOBS_MULTIARCH_SUFFIX=/$(DEB_HOST_MULTIARCH) \ + -DUNIX_STRUCTURE=1 + +override_dh_strip: + dh_strip --dbg-package=libobs0-dbg + +override_dh_install: + dh_install + rm -rf $(CURDIR)/debian/obs-studio/usr/share/obs/obs-studio/license + +.PHONY: override_dh_strip override_dh_auto_configure override_dh_install diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt)