Skip to content

Commit

Permalink
alvistack/1.9
Browse files Browse the repository at this point in the history
    git clean -xdf
    git submodule sync --recursive
    git submodule update --recursive
    git submodule foreach --recursive git clean -xdf
    tar zcvf ../crun_1.9.orig.tar.gz --exclude=.git .
    debuild -uc -us
    cp crun.spec ../crun_1.9-1.spec
    mv ../crun*1.9*.{gz,xz,spec,dsc} /osc/home\:alvistack/containers-crun-1.9/
    rm -rf ../crun*1.9*.*

See containers#1299

Signed-off-by: Wong Hoi Sing Edison <[email protected]>
  • Loading branch information
hswong3i committed Sep 8, 2023
1 parent 0643c7e commit 48ddb74
Show file tree
Hide file tree
Showing 15 changed files with 189 additions and 3 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*.socket
*.swp
.version
git-version.h
*~
.#*
.color_coded
Expand Down
1 change: 1 addition & 0 deletions .tarball-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.9
2 changes: 0 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,6 @@ dist-hook:
EXTRA_DIST += $(PYTHON_TESTS) tests/Makefile.tests tests/run_all_tests.sh tests/tests_utils.py build-aux/git-version-gen src/libcrun/signals.perf src/libcrun/mount_flags.perf
BUILT_SOURCES = .version git-version.h

CLEANFILES = crun.spec .version git-version.h $(LUACRUN_ROCKSPEC)

if ENABLE_CRUN
man1_MANS = crun.1
endif
Expand Down
79 changes: 79 additions & 0 deletions crun.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# Copyright 2023 Wong Hoi Sing Edison <[email protected]>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

%global debug_package %{nil}

Name: crun
Epoch: 100
Version: 1.9
Release: 1%{?dist}
Summary: OCI runtime written in C
License: GPLv2
URL: https://github.com/containers/crun/tags
Source0: %{name}_%{version}.orig.tar.gz
%if 0%{?centos_version} == 700
BuildRequires: devtoolset-11-gcc
BuildRequires: devtoolset-11-gcc-c++
%endif
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc
BuildRequires: glibc-static
BuildRequires: libcap-devel
BuildRequires: libseccomp-devel
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: python3
BuildRequires: systemd-devel
BuildRequires: yajl-devel
Provides: oci-runtime
Requires: libcap.so.2()(64bit)
Requires: libseccomp.so.2()(64bit)
Requires: libsystemd.so.0()(64bit)
Requires: libyajl.so.2()(64bit)
Requires: systemd

%description
crun is a runtime for running OCI containers.

%prep
%autosetup -T -c -n %{name}_%{version}-%{release}
tar -zx -f %{S:0} --strip-components=1 -C .

%build
%if 0%{?centos_version} == 700
. /opt/rh/devtoolset-11/enable
%endif
autoreconf -i
%if 0%{?suse_version} > 1500 || 0%{?sle_version} > 150000
export CFLAGS='-I /usr/include/libseccomp'
%endif
%configure \
%if 0%{?centos_version} == 700
--disable-systemd \
%endif
--disable-shared \
--disable-static
%make_build

%install
%make_install
rm -rf %{buildroot}/%{_libdir}/*
rm -rf %{buildroot}/%{_mandir}/man1/*

%files
%license COPYING
%{_bindir}/crun

%changelog
6 changes: 6 additions & 0 deletions debian/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*.substvars
*debhelper*
.debhelper
autoreconf.*
files
tmp
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
crun (100:1.9-1) UNRELEASED; urgency=medium

* https://github.com/containers/crun/releases/tag/1.9

-- Wong Hoi Sing Edison <[email protected]> Fri, 08 Sep 2023 11:09:45 +0800
11 changes: 11 additions & 0 deletions debian/clean
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Makefile
aclocal.m4
config.h
config.log
config.status
libocispec/aclocal.m4
libocispec/build-aux/ltmain.sh
libocispec/m4/libtool.m4
libtool
rpm/crun.spec
stamp-h1
34 changes: 34 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Source: crun
Section: devel
Priority: optional
Standards-Version: 4.5.0
Maintainer: Wong Hoi Sing Edison <[email protected]>
Homepage: https://github.com/containers/crun/tags
Vcs-Browser: https://github.com/alvistack/containers-crun
Vcs-Git: https://github.com/alvistack/containers-crun.git
Build-Depends:
debhelper,
debhelper-compat (= 10),
autoconf,
automake,
libcap-dev,
libseccomp-dev,
libsystemd-dev,
libyajl-dev,
pkg-config,
python3,

Package: crun
Architecture: amd64
Description: OCI runtime written in C
crun is a runtime for running OCI containers.
Depends:
${shlibs:Depends},
${misc:Depends},
libcap2,
libseccomp2,
libsystemd0,
libyajl2,
systemd,
Provides:
oci-runtime,
21 changes: 21 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/

Files: debian/*
Copyright: 2023 Wong Hoi Sing Edison <[email protected]>
License: Apache-2.0

License: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
.
http://www.apache.org/licenses/LICENSE-2.0
.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
.
The complete text of the Apache version 2.0 license
can be found in "/usr/share/common-licenses/Apache-2.0".
1 change: 1 addition & 0 deletions debian/crun.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usr/bin/crun
4 changes: 4 additions & 0 deletions debian/crun.lintian-overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
crun: copyright-without-copyright-notice
crun: initial-upload-closes-no-bugs
crun: no-manual-page
crun: zero-byte-file-in-doc-directory
21 changes: 21 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/make -f

SHELL := /bin/bash

override_dh_autoreconf:
dh_autoreconf

override_dh_auto_configure:
dh_auto_configure -- \
--disable-shared \
--disable-static

override_dh_auto_install:
dh_auto_install --destdir=debian/tmp

override_dh_auto_test:

override_dh_auto_clean:

%:
dh $@ --buildsystem=autoconf
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)
4 changes: 4 additions & 0 deletions debian/source/lintian-overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
crun source: configure-generated-file-in-source
crun source: file-without-copyright-information
crun source: no-debian-changes
crun source: source-is-missing
1 change: 1 addition & 0 deletions git-version.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#define GIT_VERSION "a538ac4ea1ff319bcfe2bf81cb5c6f687e2dc9d3"

0 comments on commit 48ddb74

Please sign in to comment.