!16 remove %prep for rpmbuild

From: @panxh_purple
Reviewed-by: @xiezhipeng1
Signed-off-by: @xiezhipeng1
This commit is contained in:
openeuler-ci-bot 2021-03-18 10:03:03 +08:00 committed by Gitee
commit 7944f0bff7

View File

@ -1,7 +1,7 @@
Name: osinfo-db
Version: 20201218
Summary: osinfo database files
Release: 1
Release: 2
License: LGPLv2+
URL: http://libosinfo.org/
Source0: https://releases.pagure.org/libosinfo/%{name}-%{version}.tar.xz
@ -15,11 +15,6 @@ osinfo-db provides the database files for use with the libosinfo
library. It provides information about guest operating systems for
use with virtualization provisioning tools.
%prep
%autosetup -p1
rm -rf %{_sourcedir}/%{name}-%{version}.tar.xz
tar -cJvf %{_sourcedir}/%{name}-%{version}.tar.xz ./
%install
osinfo-db-import --root %{buildroot} --dir %{_datadir}/osinfo %{SOURCE0}
@ -34,6 +29,9 @@ osinfo-db-import --root %{buildroot} --dir %{_datadir}/osinfo %{SOURCE0}
%{_datadir}/osinfo/LICENSE
%changelog
* Wed Mar 17 2021 panxiaohe <panxiaohe@huawei.com> - 20201218-2
- remove %prep for rpmbuild
* Sat Jan 23 2021 zoulin <zoulin13@huawei.com> - 20201218-1
- update version to 20201218