Rectify the spec file

This commit is contained in:
xiaoweiwei 2020-03-06 15:13:45 +08:00
parent 226018c268
commit 477cb903ac

View File

@ -1,21 +1,19 @@
Name: build
Version: 20191114
Release: 324.3
Summary: A tool to build binary packages
License: GPL-2.0-only OR GPL-3.0-only
Version: 20191114
Release: 324.2
Url: https://github.com/openSUSE/obs-build
Source: obs-build-%{version}.tar.gz
BuildArch: noarch
Requires: bash binutils perl tar psmisc build-mkbaselibs
BuildRequires: bash binutils perl psmisc tar
%description
This is a tool to build binary packages in a safe and reproducible
way. The default is to build in a chroot sandbox, but it also
supports building in a virtual machine for better security.
The build tool can work with multiple package and recipe formats.
The currently supported package formats are deb, rpm, and arch.
The supported recipe formats are spec, dsc, kiwi, and PKGBUILD.
@ -55,30 +53,24 @@ for file in build build-*
do
bash -n ${file} || exit 1
done
if [ `id -u` -ne 0 ]
then
echo "warning: Not building as root, tests will not run!"
exit 0
fi
if [ ! -f "%{buildroot}/usr/lib/build/configs/default.conf" ]
then
echo "warning: No default config, tests will not run!"
exit 0
fi
cp -a %{buildroot}/usr/lib/build/configs/default.conf configs/
export BUILD_IGNORE_2ND_STAGE=1
export BUILD_DIR=$PWD
sed -i 's,build-mkbaselibs,,' configs/*.conf
./test/testbuild.sh /.build.binaries/
%files
%defattr(-,root,root)
%doc README
%{_bindir}/build
%{_bindir}/buildvc
%{_bindir}/unrpm
@ -100,10 +92,15 @@ sed -i 's,build-mkbaselibs,,' configs/*.conf
/usr/lib/build/mkdrpms
%files help
%defattr(-,root,root)
%doc README
%{_mandir}/man1/build.1*
%{_mandir}/man1/unrpm.1*
%{_mandir}/man1/buildvc.1*
%changelog
* Fri Mar 06 2020 openEuler Buildteam <buildteam@openeuler.com> - 20191114-324.3
- Rectify the spec file
* Thu Nov 28 2019 catastrowings <jianghuhao1994@163.com> - 20191114-324.2
- openEuler init