remove %prep for rpmbuild

This commit is contained in:
panxiaohe 2021-03-17 19:18:07 +08:00
parent f6490d96b6
commit 1e78ffc314

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