forked from pool/build
Accepting request 514523: - Temporary hack to aid liblua5_3 -> liblua5_3-5 rename
- switch baselibs scheme for debuginfo packages from foo-debuginfo-32bit to foo-32bit-debuginfo [fate#323217] - Fix path to files - provide build-mkbaselibs so this can really be used - fix build - new package for SLE baselibsconf, including ia64 arch defaults Rev openSUSE:Factory/105 Md5 8461b065de0769d11e9292679b2dacbf 2017-08-14 10:35:41 dimstar_suse 514523
This commit is contained in:
commit
af65d06bbf
2
PKGBUILD
2
PKGBUILD
@ -1,5 +1,5 @@
|
|||||||
pkgname=build
|
pkgname=build
|
||||||
pkgver=20170320
|
pkgver=20170804
|
||||||
pkgrel=0
|
pkgrel=0
|
||||||
pkgdesc="Build packages in sandbox"
|
pkgdesc="Build packages in sandbox"
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
|
8
_service
8
_service
@ -3,6 +3,14 @@
|
|||||||
<param name="versionformat">%ad</param>
|
<param name="versionformat">%ad</param>
|
||||||
<param name="url">git://github.com/openSUSE/obs-build.git</param>
|
<param name="url">git://github.com/openSUSE/obs-build.git</param>
|
||||||
<param name="scm">git</param>
|
<param name="scm">git</param>
|
||||||
|
<param name="extract">dist/build.changes</param>
|
||||||
|
<param name="extract">dist/build.spec</param>
|
||||||
|
<param name="extract">dist/build-mkbaselibs-sle.changes</param>
|
||||||
|
<param name="extract">dist/build-mkbaselibs-sle.spec</param>
|
||||||
|
<param name="extract">dist/build.dsc</param>
|
||||||
|
<param name="extract">dist/debian.changelog</param>
|
||||||
|
<param name="extract">dist/debian.control</param>
|
||||||
|
<param name="extract">dist/PKGBUILD</param>
|
||||||
</service>
|
</service>
|
||||||
<service name="recompress" mode="disabled">
|
<service name="recompress" mode="disabled">
|
||||||
<param name="compression">gz</param>
|
<param name="compression">gz</param>
|
||||||
|
20
build-mkbaselibs-sle.changes
Normal file
20
build-mkbaselibs-sle.changes
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Aug 2 14:58:59 UTC 2017 - lnussel@suse.de
|
||||||
|
|
||||||
|
- Fix path to files
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jun 30 19:05:52 CEST 2011 - ro@suse.de
|
||||||
|
|
||||||
|
- provide build-mkbaselibs so this can really be used
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 7 09:31:51 UTC 2011 - k0da@opensuse.org
|
||||||
|
|
||||||
|
- fix build
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 6 15:12:13 UTC 2011 - adrian@suse.de
|
||||||
|
|
||||||
|
- new package for SLE baselibsconf, including ia64 arch defaults
|
||||||
|
|
57
build-mkbaselibs-sle.spec
Normal file
57
build-mkbaselibs-sle.spec
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
#
|
||||||
|
# spec file for package build-mkbaselibs-sle
|
||||||
|
#
|
||||||
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Name: build-mkbaselibs-sle
|
||||||
|
Summary: Tools to generate base lib packages
|
||||||
|
License: GPL-2.0+
|
||||||
|
Group: Development/Tools/Building
|
||||||
|
Version: 20170804
|
||||||
|
Release: 0
|
||||||
|
#!BuildIgnore: build-mkbaselibs
|
||||||
|
Provides: build-mkbaselibs
|
||||||
|
Source: obs-build-%{version}.tar.gz
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
This package contains the parts which may be installed in the inner build system
|
||||||
|
for generating base lib packages.
|
||||||
|
|
||||||
|
This is the SLE variant including IA64 binary generation.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n obs-build-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%install
|
||||||
|
install -m 0755 -d $RPM_BUILD_ROOT/usr/lib/build
|
||||||
|
install -m 0755 mkbaselibs \
|
||||||
|
$RPM_BUILD_ROOT/usr/lib/build/mkbaselibs
|
||||||
|
install -m 0644 baselibs_configs/baselibs_global-deb.conf \
|
||||||
|
$RPM_BUILD_ROOT/usr/lib/build/baselibs_global-deb.conf
|
||||||
|
install -m 0644 baselibs_configs/baselibs_global.conf \
|
||||||
|
$RPM_BUILD_ROOT/usr/lib/build/baselibs_global.conf
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%dir /usr/lib/build
|
||||||
|
/usr/lib/build/mkbaselibs
|
||||||
|
/usr/lib/build/baselibs*
|
||||||
|
|
||||||
|
%changelog
|
@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Aug 2 14:59:15 UTC 2017 - lnussel@suse.de
|
||||||
|
|
||||||
|
- Temporary hack to aid liblua5_3 -> liblua5_3-5 rename
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jul 20 13:59:20 CEST 2017 - mls@suse.de
|
||||||
|
|
||||||
|
- switch baselibs scheme for debuginfo packages from
|
||||||
|
foo-debuginfo-32bit to foo-32bit-debuginfo [fate#323217]
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Mar 17 12:57:03 UTC 2017 - adrian@suse.de
|
Fri Mar 17 12:57:03 UTC 2017 - adrian@suse.de
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Format: 1.0
|
Format: 1.0
|
||||||
Source: build
|
Source: build
|
||||||
Version: 20170320
|
Version: 20170804-0
|
||||||
Binary: build
|
Binary: build
|
||||||
Maintainer: Adrian Schroeter <adrian@suse.de>
|
Maintainer: Adrian Schroeter <adrian@suse.de>
|
||||||
Architecture: all
|
Architecture: all
|
||||||
|
72
build.spec
72
build.spec
@ -18,19 +18,15 @@
|
|||||||
# needsbinariesforbuild
|
# needsbinariesforbuild
|
||||||
|
|
||||||
|
|
||||||
%define version_unconverted 20170320
|
|
||||||
|
|
||||||
Name: build
|
Name: build
|
||||||
Summary: A Script to Build SUSE Linux RPMs
|
Summary: A Script to Build SUSE Linux RPMs
|
||||||
License: GPL-2.0+ and GPL-2.0
|
License: GPL-2.0+ and GPL-2.0
|
||||||
Group: Development/Tools/Building
|
Group: Development/Tools/Building
|
||||||
Version: 20170320
|
Version: 20170804
|
||||||
Release: 0
|
Release: 0
|
||||||
Source: obs-build-%{version}.tar.gz
|
Source: obs-build-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# Manual requires to avoid hard require to bash-static
|
|
||||||
AutoReqProv: off
|
|
||||||
%if 0%{?suse_version} > 1200
|
%if 0%{?suse_version} > 1200
|
||||||
# required for test suite
|
# required for test suite
|
||||||
BuildRequires: build-mkbaselibs
|
BuildRequires: build-mkbaselibs
|
||||||
@ -126,6 +122,13 @@ chroot or a secure virtualized
|
|||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
# initvm
|
# initvm
|
||||||
make CFLAGS="$RPM_BUILD_FLAGS" initvm-all
|
make CFLAGS="$RPM_BUILD_FLAGS" initvm-all
|
||||||
|
#XXX temporary hack until lua is actually in
|
||||||
|
%if 0%{?suse_version} == 1330
|
||||||
|
if rpm -q liblua5_3-5; then
|
||||||
|
V=%suse_version
|
||||||
|
sed -i -e 's/liblua5_3/liblua5_3-5/g' configs/sl${V:0:2}.${V:2:1}.conf
|
||||||
|
fi
|
||||||
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -139,22 +142,48 @@ chmod 0644 $RPM_BUILD_ROOT/usr/lib/build/initvm.*
|
|||||||
|
|
||||||
# main
|
# main
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||||||
cd $RPM_BUILD_ROOT/usr/lib/build/configs/
|
|
||||||
%if 0%{?sle_version} && 0%{?is_opensuse}
|
# tweak default config on suse
|
||||||
# super special leap distro
|
|
||||||
major="$[%sle_version/10000+30]"
|
|
||||||
minor="$[%sle_version/100-1200]"
|
|
||||||
ln -s sl$major.$minor.conf default.conf
|
|
||||||
%else
|
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
%if 0%{?sles_version}
|
cd $RPM_BUILD_ROOT/usr/lib/build/configs/
|
||||||
ln -s sles%{sles_version}.conf default.conf
|
SUSE_V=%{?suse_version}
|
||||||
%else
|
SLE_V=%{?sle_version}
|
||||||
V=%suse_version
|
%if 0%{?sle_version} && 0%{?is_opensuse} && %suse_version == 1315
|
||||||
ln -s sl${V:0:2}.${V:2:1}.conf default.conf
|
# this is SUSE Leap 42.X
|
||||||
|
ln -s sl42.${SLE_V:3:1}.conf default.conf
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{?sle_version} && 0%{?is_opensuse} && %suse_version > 1315
|
||||||
|
# this is SUSE Leap 15 and higher
|
||||||
|
ln -s sl${SLE_V:0:2}.${SLE_V:3:1}.conf default.conf
|
||||||
|
%endif
|
||||||
|
%if !0%{?sle_version} && ( 0%{?suse_version} <= 1310 || 0%{?suse_version} == 1320 || 0%{?suse_version} == 1330 )
|
||||||
|
# this is old openSUSE releases and Factory
|
||||||
|
ln -s sl${SUSE_V:0:2}.${SUSE_V:2:1}.conf default.conf
|
||||||
|
%endif
|
||||||
|
%if 0%{?sle_version} && !0%{?is_opensuse}
|
||||||
|
# this is SUSE SLE 12 and higher
|
||||||
|
ln -s sle${SLE_V:0:2}.${SLE_V:3:1}.conf default.conf
|
||||||
|
%endif
|
||||||
|
%if 0%{?sles_version} == 1110
|
||||||
|
# this is SUSE SLE 11
|
||||||
|
ln -s sles11sp2.conf default.conf
|
||||||
|
%endif
|
||||||
|
# make sure that we have a config
|
||||||
test -e default.conf || exit 1
|
test -e default.conf || exit 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# tweak baselibs config on suse
|
||||||
|
%if 0%{?suse_version}
|
||||||
|
cd $RPM_BUILD_ROOT/usr/lib/build
|
||||||
|
%if %suse_version == 1500
|
||||||
|
# SLE 15 / Leap 15
|
||||||
|
ln -sf baselibs_configs/baselibs_global-sle15.conf baselibs_global.conf
|
||||||
|
%endif
|
||||||
|
%if %suse_version <= 1315
|
||||||
|
# SLE 12 / Leap 42 and older
|
||||||
|
ln -sf baselibs_configs/baselibs_global-sle12.conf baselibs_global.conf
|
||||||
|
%endif
|
||||||
|
test -e baselibs_global.conf || exit 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -162,14 +191,9 @@ if [ `whoami` != "root" ]; then
|
|||||||
echo "WARNING: Not building as root, tests did not run!"
|
echo "WARNING: Not building as root, tests did not run!"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
if [ ! -e $RPM_BUILD_ROOT/usr/lib/build/configs/default.conf ]; then
|
if [ ! -f "$RPM_BUILD_ROOT/usr/lib/build/configs/default.conf" ]; then
|
||||||
%if 0%{?suse_version}
|
echo "WARNING: No default config, tests did not run!"
|
||||||
echo "ERROR: No default build conf, tests did not run!"
|
|
||||||
exit 1
|
|
||||||
%else
|
|
||||||
echo "WARNING: No default build conf, tests did not run!"
|
|
||||||
exit 0
|
exit 0
|
||||||
%endif
|
|
||||||
fi
|
fi
|
||||||
# get back the default.conf link
|
# get back the default.conf link
|
||||||
cp -av $RPM_BUILD_ROOT/usr/lib/build/configs/default.conf configs/
|
cp -av $RPM_BUILD_ROOT/usr/lib/build/configs/default.conf configs/
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
build (20170320) unstable; urgency=low
|
build (20170804-0) unstable; urgency=low
|
||||||
|
|
||||||
* Update to current git trunk
|
* Update to current git trunk
|
||||||
- add sles11sp2 build config and adapt autodetection
|
- add sles11sp2 build config and adapt autodetection
|
||||||
|
18
debian.control
Normal file
18
debian.control
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
Source: build
|
||||||
|
Section: devel
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: Adrian Schroeter <adrian@suse.de>
|
||||||
|
Build-Depends: debhelper (>= 5)
|
||||||
|
Standards-Version: 3.7.2
|
||||||
|
|
||||||
|
Package: obs-build
|
||||||
|
Architecture: all
|
||||||
|
Depends: ${perl:Depends}, rpm
|
||||||
|
Recommends: rpm2cpio
|
||||||
|
Conflicts: build
|
||||||
|
Replaces: build
|
||||||
|
Provides: build
|
||||||
|
Description: A script to build SUSE Linux RPMs
|
||||||
|
This package provides a script for building RPMs for SUSE Linux
|
||||||
|
in a chroot environment.
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:9046961c3e5f2f0f18a2d8bcd83e83dbb84953ee5fbbf45c01ba3c217a9c6eb3
|
|
||||||
size 1561
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:5840e93399c30643bf5f24749b08dd5068951b92c053f3389cb6f64f71bef719
|
|
||||||
size 259476
|
|
3
obs-build-20170804.tar.gz
Normal file
3
obs-build-20170804.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:86f9e08880031b39a7ffbc8a889587710c09262fef747c5427a901a7a955edc0
|
||||||
|
size 281132
|
Loading…
Reference in New Issue
Block a user