diff options
author | navid <navid@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2007-12-14 10:36:15 +0000 |
---|---|---|
committer | navid <navid@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2007-12-14 10:36:15 +0000 |
commit | 668647b482aeaaf0faeed8bb901d124185da2eee (patch) | |
tree | 6766ee66104be38934c6ddff30dea6db417d5286 /src/sos.spec | |
parent | e201c1810c4b84f18efbde98bfe00845739ffaa5 (diff) | |
download | sos-668647b482aeaaf0faeed8bb901d124185da2eee.tar.gz |
added languages to rpm package
only obsolete sysreport if dist == rhel
activate workaround in xen plugin for BZ#371251
sos-internal.spec clean-up (as sos-html-logs was removed from source)
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@473 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'src/sos.spec')
-rw-r--r-- | src/sos.spec | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/sos.spec b/src/sos.spec index 69107896..3b3f8534 100644 --- a/src/sos.spec +++ b/src/sos.spec @@ -23,8 +23,10 @@ BuildArch: noarch Url: https://hosted.fedoraproject.org/projects/sos BuildRequires: python-devel Requires: libxml2-python +%if 0%{?rhel} Provides: sysreport = 1.4.3-13 Obsoletes: sysreport +%endif %description Sos is a set of tools that gathers information about system @@ -42,7 +44,16 @@ python setup.py build rm -rf ${RPM_BUILD_ROOT} install -D -m644 %{SOURCE1} ${RPM_BUILD_ROOT}/usr/share/sos/rhsupport.pub python setup.py install --optimize 1 --root=$RPM_BUILD_ROOT + +%if 0%{?rhel} ln -s /usr/sbin/sosreport $RPM_BUILD_ROOT/usr/sbin/sysreport +%endif +%if ! 0%{?rhel} +rm -f $RPM_BUILD_ROOT/usr/sbin/sysreport.legacy +rm -f $RPM_BUILD_ROOT/usr/share/sysreport/functions +rm -f $RPM_BUILD_ROOT/usr/share/sysreport/sysreport-fdisk +rm -f $RPM_BUILD_ROOT/usr/share/sysreport/text.xsl +%endif %clean rm -rf ${RPM_BUILD_ROOT} @@ -52,9 +63,11 @@ rm -rf ${RPM_BUILD_ROOT} %{_sbindir}/sosreport /usr/share/sos/rhsupport.pub /usr/bin/rh-upload-core +%if 0%{?rhel} /usr/sbin/sysreport /usr/sbin/sysreport.legacy /usr/share/sysreport +%endif %{python_sitelib}/sos/ %{_mandir}/man1/sosreport.1* %{_localedir}/*/LC_MESSAGES/sos.mo |