Minor spec file cleanup

Remove sections that are no longer needed with current rpmbuild.
This commit is contained in:
Kalev Lember 2013-02-27 12:34:58 +01:00
parent 465a1a3d5a
commit e3d6ebf8d2

View File

@ -1,6 +1,3 @@
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Name: speech-dispatcher
Version: 0.7.1
Release: 10%{?dist}
@ -122,9 +119,6 @@ mv %{buildroot}%{_datadir}/speech-dispatcher/conf/modules/* %{buildroot}%{_sysco
# Create log dir
%{__mkdir} -p -m 0700 %{buildroot}%{_localstatedir}/log/speech-dispatcher/
%clean
rm -rf %{buildroot}
%post
/sbin/ldconfig
if [ $1 -eq 1 ] ; then
@ -159,7 +153,6 @@ fi
/bin/systemctl try-restart speech-dispatcherd.service >/dev/null 2>&1 || :
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog NEWS README COPYING
%dir %{_sysconfdir}/speech-dispatcher/
%dir %{_sysconfdir}/speech-dispatcher/clients
@ -182,12 +175,10 @@ fi
%{_unitdir}/speech-dispatcherd.service
%files devel
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/lib*.so
%files doc
%defattr(-,root,root,-)
%{_infodir}/*
%post doc
@ -205,7 +196,6 @@ if [ $1 = 0 ]; then
fi
%files python
%defattr(-,root,root,-)
%{python_sitearch}/speechd*
%changelog