diff options
author | xuhy <huayong.xu@samsung.com> | 2023-11-16 17:39:20 +0800 |
---|---|---|
committer | xuhy <huayong.xu@samsung.com> | 2023-11-16 17:39:20 +0800 |
commit | 76ea0b5d4a1b8180f2552c2729d84388a77beecb (patch) | |
tree | 9a2b028c24c205b075d9386acd7a62a2eb2271a7 /debian | |
parent | c30d127e8780dc678168ee121b9f2eeb1a8aaafa (diff) | |
download | librpm-tizen-master.tar.gz librpm-tizen-master.tar.bz2 librpm-tizen-master.zip |
The following issues are fixed:
1. Prevent execution of arbitrary scripts
2. Enable dash(-) in spec file.
3. Ignore bad expressions in %if conditionals.
4. Ignore unknown tags.
5. Ignore error macro.
Change-Id: Id5b7b47c1a78de364ef0d513023fbe9ccc773a87
Signed-off-by: xuhy <huayong.xu@samsung.com>
Diffstat (limited to 'debian')
-rw-r--r-- | debian/changelog | 65 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 50 | ||||
-rw-r--r-- | debian/librpm-tizen.install | 4 | ||||
-rwxr-xr-x | debian/rules | 29 |
5 files changed, 149 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 000000000..3f0942eb2 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,65 @@ +librpm-tizen (4.14.1.1.tizen20230628-20230828) unstable; urgency=low + + * Rebase on latest Tizen + + -- Xu Huayong <huayong.xu@samsung.com> Tue, 05 Sep 2023 14:21:46 +0300 + +librpm-tizen (4.11.0.1.tizen20140530-tizen20140723) unstable; urgency=low + + * Rebase on latest Tizen 3.0 + + -- Markus Lehtonen <markus.lehtonen@linux.intel.com> Wed, 23 Jul 2014 19:50:46 +0300 + +librpm-tizen (4.11.0.1.tizen20130618-tizen20140306) unstable; urgency=low + + [ Markus Lehtonen ] + * Fix build against Lua 5.2 + + -- Markus Lehtonen <markus.lehtonen@linux.intel.com> Thu, 06 Mar 2014 12:43:43 +0200 + +librpm-tizen (4.11.0.1.tizen20130618-tizen20131001) unstable; urgency=low + + * Ignore bad expressions in %if conditionals + * lua: Enable Lua + * lua: fall through failed lua scripts + + -- Markus Lehtonen <markus.lehtonen@linux.intel.com> Tue, 01 Oct 2013 12:12:43 +0300 + +librpm-tizen (4.11.0.1.tizen20130618-tizen20130821) unstable; urgency=low + + [ Zhang Qiang ] + * fix segmentation fault error while parsing spec + + [ Markus Lehtonen ] + * Prevent execution of arbitrary scripts + * Bump the log level of "unexpanded script" msg + + -- Markus Lehtonen <markus.lehtonen@linux.intel.com> Wed, 21 Aug 2013 14:31:24 +0300 + +librpm-tizen (4.11.0.1.tizen20130618-tizen20130619) unstable; urgency=low + + * Version bump to latest from Tizen 3.0 + + -- Markus Lehtonen <markus.lehtonen@linux.intel.com> Tue, 18 Jun 2013 14:07:13 +0300 + +librpm-tizen (4.11.0.1.tizen20130304-tizen20130307) unstable; urgency=low + + * Version bump to latest from Tizen + + -- Markus Lehtonen <markus.lehtonen@linux.intel.com> Thu, 07 Mar 2013 09:27:00 +0200 + +librpm-tizen (4.10.91.tizen20121215-tizen20130226) unstable; urgency=low + + * Enable lua + * Add a provide tag to make gbs depend on new changes + * Install Tizen macros + * Ignore unknown internal scripts + + -- Markus Lehtonen <markus.lehtonen@linux.intel.com> Wed, 27 Feb 2013 10:12:00 +0200 + +librpm-tizen (4.10.91.tizen20121215-tizen20130226) unstable; urgency=low + + * Initial packaging + + -- Markus Lehtonen <markus.lehtonen@linux.intel.com> Tue, 17 Dec 2012 13:22:00 +0200 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 000000000..7f8f011eb --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 000000000..a8235fff4 --- /dev/null +++ b/debian/control @@ -0,0 +1,50 @@ +Source: librpm-tizen +Section: vcs +Priority: optional +Build-Depends: debhelper, + dh-python, + dpkg-dev, + dh-autoreconf, + libtool, + autoconf, + automake, + autotools-dev, + autopoint, + zlib1g-dev, + libarchive-dev, + libpopt-dev, + libxml2-dev, + libreadline-dev, + libsqlite3-dev, + python3-all-dev, + python3, + pkg-config, + libnspr4-dev, + libnss3-dev, + liblzma-dev, + libmagic-dev, + libelf-dev, + libdw-dev, + libdb-dev, + liblua5.1-dev +Maintainer: Markus Lehtonen <markus.lehtonen@linux.intel.com> +Standards-Version: 3.9.3 +Homepage: http://rpm.org/ +X-Python-Version: >= 3 + +Package: librpm-tizen +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends} +Description: The RPM libraries for git-buildpackage + RPM Package Manager is the main tool for managing the software packages + of Tizen. + . + RPM can be used to install and remove software packages. With rpm, it + is easy to update packages. RPM keeps track of all these manipulations + in a central database.»·This way it is possible to get an overview of + all installed packages. RPM also supports database queries. + . + This is a special stripped-down version of RPM, only intended to be used by the + git-buildpackage tool. Doesn't interfere with the RPM libraries of the host system. + This package only contains rpmlib and rpm-python. + diff --git a/debian/librpm-tizen.install b/debian/librpm-tizen.install new file mode 100644 index 000000000..84594ba09 --- /dev/null +++ b/debian/librpm-tizen.install @@ -0,0 +1,4 @@ +usr/lib*/*/*.so.* +usr/lib*/*/rpm/* +usr/lib/python*/*packages/*/*.so +usr/lib/python*/*packages/*/*.py* diff --git a/debian/rules b/debian/rules new file mode 100755 index 000000000..ccf3f5465 --- /dev/null +++ b/debian/rules @@ -0,0 +1,29 @@ +#!/usr/bin/make -f + +python_mod_name := rpm_tizen + +CPPFLAGS += $(shell pkg-config --cflags nss) + +%: + dh $@ --with python3,autoreconf,autotools_dev + +override_dh_auto_configure: + dh_auto_configure -- --disable-dependency-tracking \ + --libdir=/usr/lib/librpm-tizen \ + --with-lua \ + --without-acl \ + --without-cap \ + --enable-shared \ + --enable-python \ + --with-external-db \ + --build=${DEB_BUILD_GNU_CPU}-tizen-linux \ + PYTHON_MODULENAME=$(python_mod_name) \ + LUA_PKGCONFIG_NAME=lua5.1 \ + CPPFLAGS="$(CPPFLAGS)" + +override_dh_auto_install: + dh_auto_install --destdir=debian/tmp + # Install extra sources + install -m644 packaging/rpm-tizen_macros debian/tmp/usr/lib/librpm-tizen/rpm/tizen_macros + install -d debian/tmp/usr/lib/librpm-tizen/rpm/tizen + ln -s ../tizen_macros debian/tmp/usr/lib/librpm-tizen/rpm/tizen/macros |