Blob Blame History Raw
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Name:           lekhonee
Version:        0.3.1
Release:        1%{?dist}
Summary:        A blog client

Group:          Applications/Publishing
License:        GPLv2
URL:            http://fedorahosted.org/lekhonee
Source0:        https://fedorahosted.org/releases/l/e/lekhonee/%{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, PyKDE4-devel
Requires:       PyQt4, mx, PyKDE4

%description
A desktop wordpress client

%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                    \
--dir=${RPM_BUILD_ROOT}%{_datadir}/applications           \
%{buildroot}/%{_datadir}/applications/lekhonee.desktop

 
%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc docs/README docs/ChangeLog docs/COPYING 
%{python_sitelib}/*
%{_bindir}/*
%{_datadir}/*
%config(noreplace) %{_sysconfdir}/chotha.data

%changelog
* Wed May 13 2009 Kushal Das <kushal@fedoraproject.org> 0.3.1-1
- New release of the source

* Tue May 12 2009 Kushal Das <kushal@fedoraproject.org> 0.3-1
- New release of the source

* Mon Oct 20 2008 Kushal Das <kushal@fedoraproject.org> 0.2.1-1
- New release of the source

* Mon Oct 20 2008 Kushal Das <kushal@fedoraproject.org> 0.2-6
- Fixed the desktop file issue

* Mon Oct 20 2008 Kushal Das <kushal@fedoraproject.org> 0.2-5
- New desktop file line

* Mon Oct 20 2008 Kushal Das <kushal@fedoraproject.org> 0.2-4
- Changed to new source

* Mon Oct 20 2008 Kushal Das <kushal@fedoraproject.org> 0.2-3
- Fixing rpmlint errors

* Wed Oct 15 2008 Kushal Das <kushal@fedoraproject.org> 0.2-2
- Initial release