fix package

This commit is contained in:
Tom Callaway 2008-09-04 22:07:42 +00:00
parent 932f272375
commit a85ebdb09b

View File

@ -5,8 +5,8 @@
Summary: A set of tools to gather troubleshooting information from a system Summary: A set of tools to gather troubleshooting information from a system
Name: sos Name: sos
Version: 1.8 Version: 1.8
Release: 1%{?dist} Release: 2%{?dist}
Group: Application/Tools Group: Applications/System
# The source for this package was pulled from upstream's svn. Use the # The source for this package was pulled from upstream's svn. Use the
# following commands to generate the tarball: # following commands to generate the tarball:
# svn --username guest export https://sos.108.redhat.com/svn/sos/tags/r1-7 sos-1.7 # svn --username guest export https://sos.108.redhat.com/svn/sos/tags/r1-7 sos-1.7
@ -20,7 +20,7 @@ Url: https://hosted.fedoraproject.org/projects/sos
BuildRequires: python-devel BuildRequires: python-devel
Requires: libxml2-python Requires: libxml2-python
Provides: sysreport = 1.4.3-13 Provides: sysreport = 1.4.3-13
Obsoletes: sysreport Obsoletes: sysreport < 1.4.3-13
%description %description
Sos is a set of tools that gathers information about system Sos is a set of tools that gathers information about system
@ -32,32 +32,38 @@ support technicians and developers.
%setup -q %setup -q
%build %build
python setup.py build %{__python} setup.py build
%install %install
rm -rf ${RPM_BUILD_ROOT} rm -rf ${RPM_BUILD_ROOT}
install -D -m644 %{SOURCE1} ${RPM_BUILD_ROOT}/usr/share/sos/rhsupport.pub install -D -m644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_datadir}/%{name}/rhsupport.pub
python setup.py install --optimize 1 --root=$RPM_BUILD_ROOT %{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
ln -s /usr/sbin/sosreport $RPM_BUILD_ROOT/usr/sbin/sysreport
%find_lang %{name}
cd $RPM_BUILD_ROOT%{_sbindir}
ln -s sosreport sysreport
%clean %clean
rm -rf ${RPM_BUILD_ROOT} rm -rf ${RPM_BUILD_ROOT}
%files %files -f %{name}.lang
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_sbindir}/sosreport %{_sbindir}/sosreport
/usr/share/sos/rhsupport.pub %{_datadir}/sos/
/usr/bin/rh-upload-core %{_bindir}/rh-upload-core
/usr/sbin/sysreport %{_sbindir}/sysreport
/usr/sbin/sysreport.legacy %{_sbindir}/sysreport.legacy
/usr/share/sysreport %{_datadir}/sysreport
%{python_sitelib}/sos/ %{python_sitelib}/sos/
%{python_sitelib}/%{name}-0.0.0-py*.egg-info
%{_mandir}/man1/sosreport.1* %{_mandir}/man1/sosreport.1*
%{_localedir}/*/LC_MESSAGES/sos.mo
%doc README README.rh-upload-core TODO LICENSE ChangeLog %doc README README.rh-upload-core TODO LICENSE ChangeLog
%config /etc/sos.conf %config(noreplace) %{_sysconfdir}/sos.conf
%changelog %changelog
* Thu Sep 4 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.8-2
- more cleanups to get this package building
* Thu Sep 4 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.8-1 * Thu Sep 4 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.8-1
- fix license tag - fix license tag
- undid stupid duplicate variable declarations (name, version, release) - undid stupid duplicate variable declarations (name, version, release)