# sitelib for noarch packages, sitearch for others (remove the unneeded one) %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: lekhonee Version: 0.2 Release: 3%{?dist} Summary: A blog client Group: Applications/Publishing License: GPLv2 URL: http://kushaldas.in Source0: http://kushal.fedorapeople.org/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel, python-setuptools, PyQt4-devel, desktop-file-utils Requires: PyQt4, mx %description A blog client, which works for Wordpress and livejournal %prep %setup -q %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT desktop-file-install --vendor="fedora" \ --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \ %{buildroot}/%{_datadir}/applications/lekhonee.desktop rm -rf %{buildroot}/%{_datadir}/applications/lekhonee.desktop %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc docs/README docs/ChangeLog docs/COPYING # For noarch packages: sitelib %{python_sitelib}/* %{_bindir}/* %{_datadir}/* %config(noreplace) %{_sysconfdir}/chotha.data %changelog * Mon Oct 20 2008 Kushal Das 0.2-3 - Fixing rpmlint errors * Wed Oct 15 2008 Kushal Das 0.2-2 - Initial release