aboutsummaryrefslogtreecommitdiffstats
path: root/src/sos-internal.spec
diff options
context:
space:
mode:
Diffstat (limited to 'src/sos-internal.spec')
-rw-r--r--src/sos-internal.spec15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/sos-internal.spec b/src/sos-internal.spec
index 603508fb..55920b1c 100644
--- a/src/sos-internal.spec
+++ b/src/sos-internal.spec
@@ -2,7 +2,7 @@
%define name sos-internal
%define version 1.8
-%define release 0
+%define release 0pre0
Summary: SoS internal utilities for report analysis
Name: %{name}
@@ -17,6 +17,8 @@ License: GPL
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildArch: noarch
Url: https://hosted.fedoraproject.org/projects/sos
+Requires: python-cherrypy
+Requires: python-sqlite2
%description
Sos is a set of tools that gathers information about system
@@ -33,6 +35,14 @@ rm -rf ${RPM_BUILD_ROOT}
cd sos-%{version}
install -D -m755 extras/sos-open ${RPM_BUILD_ROOT}/usr/bin/sos-open
+install -D -m755 extras/sos-html-logs/sos-html-logs ${RPM_BUILD_ROOT}/usr/bin/sos-html-logs
+
+mkdir -p ${RPM_BUILD_ROOT}/%{python_sitelib}/soshtmllogs/parsers
+cp extras/sos-html-logs/lib/*.py ${RPM_BUILD_ROOT}/%{python_sitelib}/soshtmllogs
+cp extras/sos-html-logs/lib/parsers/*.py extras/sos-html-logs/lib/parsers/*.rules ${RPM_BUILD_ROOT}/%{python_sitelib}/soshtmllogs/parsers
+
+mkdir -p ${RPM_BUILD_ROOT}/usr/share
+cp -r extras/sos-html-logs/share ${RPM_BUILD_ROOT}/usr/share/sos-html-logs
install -D -m644 %{SOURCE1} ${RPM_BUILD_ROOT}/usr/share/sos/rhsupport.pub
install -D -m600 %{SOURCE2} ${RPM_BUILD_ROOT}/usr/share/sos/rhsupport.key
@@ -50,7 +60,10 @@ echo "done."
%defattr(-,root,root,-)
/usr/share/sos/rhsupport.pub
/usr/share/sos/rhsupport.key
+/usr/bin/sos-html-logs
/usr/bin/sos-open
+/%{python_sitelib}/soshtmllogs
+/usr/share/sos-html-logs
%changelog
* Wed Sep 4 2007 Navid Sheikhol-Eslami <navid at redhat dot com> - 1.0