aboutsummaryrefslogtreecommitdiffstats
path: root/sos.spec
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2020-08-31 13:29:37 -0400
committerJake Hunsaker <jhunsake@redhat.com>2020-11-03 13:39:05 -0500
commita5162c73ddd948085ca99fba81353104c54623de (patch)
tree36380a1aa77181fe640962038778a209138f2ac7 /sos.spec
parentcb0511f71196556ead4f0b0dc0a41a4ec0ee7f20 (diff)
downloadsos-a5162c73ddd948085ca99fba81353104c54623de.tar.gz
[build] Update specfile for RPM builds
First, fixes incorrect package names in the Requires added to the final RPM. Second, fixes the specfile to remove the unpackaged copy of sos.conf. Resolves: #2222 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
Diffstat (limited to 'sos.spec')
-rw-r--r--sos.spec6
1 files changed, 3 insertions, 3 deletions
diff --git a/sos.spec b/sos.spec
index fc6fb5a6..61ff3c9e 100644
--- a/sos.spec
+++ b/sos.spec
@@ -12,8 +12,8 @@ BuildArch: noarch
Url: https://github.com/sosreport/sos/
BuildRequires: python3-devel
BuildRequires: gettext
-Requires: libxml2-python
-Requires: rpm-python
+Requires: python3-libxml2
+Requires: python3-rpm
Requires: tar
Requires: xz
Requires: python3-pexpect
@@ -41,7 +41,7 @@ install -d -m 755 ${RPM_BUILD_ROOT}/etc/sos/groups.d
install -d -m 755 ${RPM_BUILD_ROOT}/etc/sos/extras.d
install -m 644 %{name}.conf ${RPM_BUILD_ROOT}/etc/sos/%{name}.conf
-rm ${RPM_BUILD_ROOT}/sos.conf
+rm -rf ${RPM_BUILD_ROOT}/usr/config/
%find_lang %{name} || echo 0