[virt-tools-list] [PATCH virt-viewer] spec: Remove outdated bits

Cole Robinson crobinso at redhat.com
Tue Jul 31 15:13:21 UTC 2018


Group, buildroot cleanup, and defattr are not needed on RHEL6 and later

Signed-off-by: Cole Robinson <crobinso at redhat.com>
---
 mingw-virt-viewer.spec.in | 10 ----------
 virt-viewer.spec.in       |  2 --
 2 files changed, 12 deletions(-)

diff --git a/mingw-virt-viewer.spec.in b/mingw-virt-viewer.spec.in
index f4344a1..f6ec447 100644
--- a/mingw-virt-viewer.spec.in
+++ b/mingw-virt-viewer.spec.in
@@ -18,7 +18,6 @@ Release:        %{relver}%{?extra_release}
 Summary:        MinGW Windows virt-viewer console application
 
 License:        GPLv2+
-Group:          Applications/Internet
 URL:            http://virt-manager.org/
 Source0:        ftp://virt-manager.org/downloads/virt-viewer/virt-viewer-%{version}.tar.gz
 
@@ -71,19 +70,15 @@ BuildArch:      noarch
 
 %package -n mingw32-virt-viewer
 Summary:        MinGW Windows virt-viewer console application
-Group:          Applications/Internet
 
 %package -n mingw64-virt-viewer
 Summary:        MinGW Windows virt-viewer console application
-Group:          Applications/Internet
 
 %package -n mingw64-virt-viewer-msi
 Summary:        MinGW Windows virt-viewer MSI
-Group:          Applications/Internet
 
 %package -n mingw32-virt-viewer-msi
 Summary:        MinGW Windows virt-viewer MSI
-Group:          Applications/Internet
 
 %description
 MinGW Windows virt-viewer console application
@@ -129,12 +124,8 @@ cp build_win64$MINGW_BUILDDIR_SUFFIX/data/virt-viewer-x64- at VERSION@.msi $RPM_BUI
 # Don't need the XDG desktop files on Windows
 find $RPM_BUILD_ROOT -name "*.desktop" -delete
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 
 %files -n mingw32-virt-viewer -f virt-viewer.lang
-%defattr(-,root,root)
 %{mingw32_bindir}/virt-viewer.exe
 %{mingw32_bindir}/remote-viewer.exe
 %{mingw32_bindir}/windows-cmdline-wrapper.exe
@@ -150,7 +141,6 @@ rm -rf $RPM_BUILD_ROOT
 %{mingw32_datadir}/virt-viewer/virt-viewer-x86- at VERSION@.msi
 
 %files -n mingw64-virt-viewer -f virt-viewer.lang
-%defattr(-,root,root)
 %{mingw64_bindir}/virt-viewer.exe
 %{mingw64_bindir}/remote-viewer.exe
 %{mingw64_bindir}/windows-cmdline-wrapper.exe
diff --git a/virt-viewer.spec.in b/virt-viewer.spec.in
index df441f2..3a055b7 100644
--- a/virt-viewer.spec.in
+++ b/virt-viewer.spec.in
@@ -19,7 +19,6 @@ Name: @PACKAGE@
 Version: @VERSION@
 Release: 1%{?dist}%{?extra_release}
 Summary: Virtual Machine Viewer
-Group: Applications/System
 License: GPLv2+
 URL: http://virt-manager.org/
 Source0: http://virt-manager.org/download/sources/%{name}/%{name}-%{version}.tar.gz
@@ -87,7 +86,6 @@ autoreconf -if
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
 %__make install  DESTDIR=$RPM_BUILD_ROOT
 %find_lang %{name}
 
-- 
2.17.1




More information about the virt-tools-list mailing list