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