af02401
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
af02401
af02401
Name:           rednotebook
ef07dc1
Version:        0.6.9
af02401
Release:        1%{?dist}
af02401
Summary:        A desktop diary
af02401
af02401
Group:          Applications/Productivity
af02401
License:        GPLv2+
af02401
URL:            http://digitaldump.wordpress.com/projects/rednotebook/
af02401
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
af02401
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)     
af02401
BuildArch:      noarch
af02401
af02401
BuildRequires:  python
af02401
BuildRequires:  python-setuptools-devel
af02401
BuildRequires:  desktop-file-utils
af02401
af02401
Requires:       PyYAML
af02401
Requires:       pygtk2
af02401
Requires:       gnome-python2-extras
f31c1ec
Requires:       hicolor-icon-theme
af02401
af02401
%description
af02401
RedNotebook is a desktop diary that makes it very easy for you
af02401
to keep track of the stuff you do and the thoughts you have. This
af02401
journal software helps you to write whole passages or just facts,
af02401
and does so in style.
af02401
af02401
af02401
%prep
af02401
%setup -q
af02401
af02401
af02401
%build
ab46037
python setup.py build
af02401
af02401
af02401
%install
af02401
rm -rf %{buildroot}
ab46037
python setup.py install --skip-build --root %{buildroot}
af02401
#remove shebang
af02401
for file in %{buildroot}%{python_sitelib}/%{name}/gui/mainWindow.py \
af02401
    %{buildroot}%{python_sitelib}/%{name}/gui/htmltextview.py \
af02401
    %{buildroot}%{python_sitelib}/%{name}/txt2tags.py   \
af02401
    %{buildroot}%{python_sitelib}/%{name}/redNotebook.py; do
af02401
    sed -i -e '/^#!\//, 1d' $file
af02401
done
af02401
af02401
af02401
%clean
af02401
rm -rf %{buildroot}
af02401
af02401
af02401
%files
af02401
%defattr(-,root,root,-)
af02401
%doc AUTHORS CHANGELOG LICENSE README
af02401
%{_bindir}/%{name}
af02401
%{_datadir}/applications/%{name}.desktop
af02401
%{_datadir}/pixmaps/%{name}.png
f31c1ec
%{_datadir}/icons/hicolor/*x*/apps/%{name}.png
af02401
%{python_sitelib}/%{name}/
af02401
%{python_sitelib}/%{name}*.egg-info
af02401
af02401
af02401
%changelog
ef07dc1
* Wed May 06 2009 Fabian Affolter <fabian@bernewireless.net> - 0.6.9-1
ef07dc1
- Updated to new upstream version 0.6.9
ef07dc1
ab46037
* Sun May 03 2009 Fabian Affolter <fabian@bernewireless.net> - 0.6.8-1
ab46037
- Updated to new upstream version 0.6.8
ab46037
8356fea
* Tue Apr 21 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.6.7-1
8356fea
- Updated to new upstream version 0.6.7
8356fea
7411eb9
* Tue Apr 07 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.6.6-1
7411eb9
- Updated to new upstream version 0.6.6
7411eb9
b320a86
* Fri Apr 03 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.6.5-1
b320a86
- Updated to new upstream version 0.6.5
b320a86
f31c1ec
* Wed Mar 18 2009 Fabian Affolter <fabian@bernewireless.net> - 0.6.2-1
f31c1ec
- Added hicolor-icon-theme as a requirement
f31c1ec
- Added icons directory
f31c1ec
- Updated to new upstream version 0.6.2
f31c1ec
af02401
* Sat Mar 07 2009 Fabian Affolter <fabian@bernewireless.net> - 0.6.1-1
af02401
- Updated to new upstream version 0.6.1
af02401
- Renamed docs, added License file
af02401
af02401
* Thu Feb 12 2009 Fabian Affolter <fabian@bernewireless.net> - 0.5.5-1
af02401
- Updated to new upstream version 0.5.5
af02401
af02401
* Sat Jan 24 2009 Fabian Affolter <fabian@bernewireless.net> - 0.5.2-1
af02401
- Updated to new upstream version 0.5.2
af02401
af02401
* Sat Jan 24 2009 Fabian Affolter <fabian@bernewireless.net> - 0.5.1-1
af02401
- Initial package for Fedora
af02401