Support Ubuntu and Tizen accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified accepted/tizen_unified tizen tizen_6.5 tizen_7.0 tizen_7.0_hotfix tizen_8.0 accepted/tizen/6.5/unified/20211029.013227 accepted/tizen/7.0/unified/20221110.060708 accepted/tizen/7.0/unified/hotfix/20221116.110841 accepted/tizen/8.0/unified/20231005.094930 accepted/tizen/unified/20210705.211036 submit/tizen/20210705.072447 submit/tizen/20210705.103758 submit/tizen_6.5/20211028.163401 tizen_6.5.m2_release tizen_7.0_m2_release tizen_8.0_m2_release
authorYongjoo Ahn <yongjoo1.ahn@samsung.com>
Thu, 25 Feb 2021 06:51:55 +0000 (15:51 +0900)
committerSangjung Woo <sangjung.woo@samsung.com>
Mon, 5 Jul 2021 05:38:16 +0000 (14:38 +0900)
- Support packages for Ubuntu and Tizen

Change-Id: I58c1abf44db39e5382ab4fd39f3f8b468b1f4aff
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/gst-gz-dev.install [new file with mode: 0644]
debian/gst-gz.install [new file with mode: 0644]
debian/rules [new file with mode: 0755]
packaging/gst-gz.changes [new file with mode: 0644]
packaging/gst-gz.manifest [new file with mode: 0644]
packaging/gst-gz.spec [new file with mode: 0644]

diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..682724d
--- /dev/null
@@ -0,0 +1,5 @@
+gst-gz (1.0.0) unstable bionic focal; urgency=medium
+
+  * initial packaging for Ubuntu
+
+ -- Yongjoo Ahn <yongjoo1.ahn@samsung.com>  Thu, 4 Mar 2021 10:00:00 +0900
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..ec63514
--- /dev/null
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..74da7cc
--- /dev/null
@@ -0,0 +1,19 @@
+Source: gst-gz
+Section: libs
+Priority: optional
+Maintainer: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
+Build-Depends: gcc (>=5), debhelper (>=9), gstreamer1.0-plugins-base, libgstreamer-plugins-base1.0-dev, libgstreamer1.0-dev
+Standards-Version: 3.9.6
+Homepage: https://github.com/Snec/gst-gz
+
+Package: gst-gz
+Architecture: any
+Multi-Arch: same
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: gst-gz provides GStreamer plugins in order to compress and decompress data with zlib
+
+Package: gst-gz-dev
+Architecture: any
+Multi-Arch: same
+Depends: gst-gz, ${shlibs:Depends}, ${misc:Depends}
+Description: Development package for gst-gz
diff --git a/debian/gst-gz-dev.install b/debian/gst-gz-dev.install
new file mode 100644 (file)
index 0000000..416fbb5
--- /dev/null
@@ -0,0 +1,2 @@
+/usr/include/*.h
+/usr/lib/*/*.a
diff --git a/debian/gst-gz.install b/debian/gst-gz.install
new file mode 100644 (file)
index 0000000..00b83e0
--- /dev/null
@@ -0,0 +1 @@
+/usr/lib/*/gstreamer-1.0/*.so
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..cf607f4
--- /dev/null
@@ -0,0 +1,46 @@
+#!/usr/bin/make -f
+# See debhelper(7) (uncomment to enable)
+# output every command that modifies files on the build system.
+#export DH_VERBOSE = 1
+
+
+# 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
+
+ROOT_DIR:=$(shell pwd)
+export VERSION:=3.2
+export INSTALL_PREFIX:=/usr/
+export INSTALL_LIBDIR:=lib
+export INSTALL_INCDIR:=include
+export DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+export DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
+export GST_POSTFIX:=gstreamer-1.0
+
+%:
+       dh $@ --parallel
+
+override_dh_auto_clean:
+       rm -rf debian/tmp
+
+override_dh_auto_build:
+       ./autogen.sh
+       ./configure --with-gstreamer-api=1.0
+       make
+
+override_dh_auto_install:
+       mkdir -p debian/tmp${INSTALL_PREFIX}${INSTALL_LIBDIR}/${DEB_HOST_MULTIARCH}/${GST_POSTFIX}
+       install -m 755 src/.libs/libgstgz.so \
+               debian/tmp${INSTALL_PREFIX}${INSTALL_LIBDIR}/${DEB_HOST_MULTIARCH}/${GST_POSTFIX}
+       install -m 755 src/.libs/libgstgz.a \
+               debian/tmp${INSTALL_PREFIX}${INSTALL_LIBDIR}/${DEB_HOST_MULTIARCH}
+       mkdir -p debian/tmp${INSTALL_PREFIX}${INSTALL_INCDIR}
+       install -m 644 src/*.h debian/tmp${INSTALL_PREFIX}${INSTALL_INCDIR}
+
+override_dh_install:
+       dh_install --sourcedir=debian/tmp --list-missing
diff --git a/packaging/gst-gz.changes b/packaging/gst-gz.changes
new file mode 100644 (file)
index 0000000..9dad4dc
--- /dev/null
@@ -0,0 +1,2 @@
+* Thu Mar 4 2021 Yongjoo Ahn <yongjoo1.ahn@samsung.com>
+- Initial packaging for Tizen
diff --git a/packaging/gst-gz.manifest b/packaging/gst-gz.manifest
new file mode 100644 (file)
index 0000000..b4b1185
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+   <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/gst-gz.spec b/packaging/gst-gz.spec
new file mode 100644 (file)
index 0000000..4de139e
--- /dev/null
@@ -0,0 +1,57 @@
+%define gstpostfix     gstreamer-1.0
+%define gstlibdir      %{_libdir}/%{gstpostfix}
+
+Name:   gst-gz
+Summary: gst-gz: GStreamer plugins for compress and decompress
+Version: 1.0.0
+Release: 1
+Group: Machine Learning
+Packager: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
+License: LGPL-2.1
+Source:     %{name}-%{version}.tar.gz
+Source1001: %{name}.manifest
+
+Requires: gstreamer >= 1.8.0
+BuildRequires: gstreamer-devel
+BuildRequires: gst-plugins-base-devel
+
+%description
+gst-gz provides GStreamer plugins in order to compress and decompress data with zlib (The repo is forked from https://github.com/Snec/gst-gz)
+
+%package devel
+Summary: develelopment package
+Requires: gst-gz = %{version}-%{release}
+%description devel
+development package for gst-gz
+
+%prep
+%setup -q
+cp %{SOURCE1001} .
+
+%build
+
+%autogen
+%configure
+make %{?_smp_mflags}
+
+%install
+mkdir -p %{buildroot}/%{gstlibdir}
+install -m 755 src/.libs/libgstgz.so %{buildroot}/%{gstlibdir}
+install -m 755 src/.libs/libgstgz.a %{buildroot}/%{_libdir}
+mkdir -p %{buildroot}/%{_includedir}
+install -m 644 src/*.h %{buildroot}/%{_includedir}
+
+%clean
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%manifest %{name}.manifest
+%{gstlibdir}/*.so
+
+%files devel
+%manifest %{name}.manifest
+%{_includedir}/*.h
+%{_libdir}/*.a