af02401
Name:           rednotebook
45720f6
Version:        1.3.0
45720f6
Release:        1%{?dist}
af02401
Summary:        A desktop diary
af02401
af02401
Group:          Applications/Productivity
af02401
License:        GPLv2+
d0e6553
URL:            http://rednotebook.sourceforge.net
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
45720f6
BuildRequires:  python2-devel
af02401
BuildRequires:  python-setuptools-devel
af02401
BuildRequires:  desktop-file-utils
af02401
af02401
Requires:       PyYAML
af02401
Requires:       pygtk2
0e55ab5
Requires:       pywebkitgtk
d9fef2d
Requires:       python-chardet
af02401
Requires:       gnome-python2-extras
f31c1ec
Requires:       hicolor-icon-theme
af02401
de6fed0
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
d4d99ef
af02401
af02401
%build
de6fed0
%{__python} setup.py build
af02401
af02401
af02401
%install
af02401
rm -rf %{buildroot}
de6fed0
%{__python} setup.py install --skip-build --root %{buildroot}
0e55ab5
desktop-file-install                                    \
0e55ab5
    --add-category="Calendar"                           \
0e55ab5
    --delete-original                                   \
0e55ab5
    --dir=%{buildroot}%{_datadir}/applications          \
0e55ab5
    %{buildroot}/%{_datadir}/applications/%{name}.desktop
af02401
7e5fd13
# heavily borrowed from /usr/lib/rpm/find-lang.sh
7e5fd13
find %{buildroot} -type f -o -type l|sort|sed '
7e5fd13
s:'"%{buildroot}"'::
7e5fd13
s:\(.*/i18n/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3:
7e5fd13
s:^\([^%].*\)::
7e5fd13
/^$/d' > %{name}.lang
7e5fd13
af02401
af02401
%clean
af02401
rm -rf %{buildroot}
af02401
af02401
35ff4d3
%post
35ff4d3
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
35ff4d3
35ff4d3
35ff4d3
%postun
35ff4d3
if [ $1 -eq 0 ] ; then
35ff4d3
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
35ff4d3
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
35ff4d3
fi
35ff4d3
35ff4d3
35ff4d3
%posttrans
35ff4d3
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
35ff4d3
35ff4d3
7e5fd13
%files -f %{name}.lang
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
7e5fd13
# be careful to not list locales twice
7e5fd13
%dir %{python_sitelib}/%{name}/
7e5fd13
%{python_sitelib}/%{name}/*.py*
7e5fd13
%{python_sitelib}/%{name}/external/
7e5fd13
%{python_sitelib}/%{name}/files/
7e5fd13
%{python_sitelib}/%{name}/gui/
7e5fd13
%{python_sitelib}/%{name}/images/
7e5fd13
%{python_sitelib}/%{name}/util/
af02401
%{python_sitelib}/%{name}*.egg-info
af02401
de6fed0
af02401
%changelog
45720f6
* Fri Feb 10 2012 Fabian Affolter <mail@fabian-affolter.ch> - 1.3.0-1
45720f6
- Updated to new upstream version 1.3.0
45720f6
166dc28
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-2
166dc28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
166dc28
3ddaca2
* Thu Oct 06 2011 Christoph Wickert <cwickert@fedoraproject.org> - 1.2.0-1
3ddaca2
- Update to 1.2.0
3ddaca2
7e5fd13
* Tue Aug 09 2011 Christoph Wickert <cwickert@fedoraproject.org> - 1.1.8-1
7e5fd13
- Updated to new upstream version 1.1.8
7e5fd13
- List locales correctly tagged as %%lang
7e5fd13
e7c3f96
* Fri Jul 15 2011 Christoph Wickert <cwickert@fedoraproject.org> - 1.1.7-1
e7c3f96
- Updated to new upstream version 1.1.7
e7c3f96
9666ab1
* Mon May 16 2011 Fabian Affolter <mail@fabian-affolter.ch> - 1.1.5-1
Fabian Affolter 97b5ed4
- Updated to new upstream version 1.1.5
Fabian Affolter 97b5ed4
0e50d9f
* Sun Mar 27 2011 Christoph Wickert <cwickert@fedoraproject.org> - 1.1.4-1
0e50d9f
- Update to 1.1.4
0e50d9f
9666ab1
* Sun Mar 06 2011 Fabian Affolter <mail@fabian-affolter.ch> - 1.1.3-1
Fabian Affolter 6e75f5b
- Updated to new upstream version 1.1.3
Fabian Affolter 6e75f5b
14f12a0
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-2
14f12a0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
14f12a0
9666ab1
* Mon Dec 27 2010 Fabian Affolter <mail@fabian-affolter.ch> - 1.1.2-1
77c8777
- Updated to new upstream version 1.1.2
77c8777
9666ab1
* Sun Aug 29 2010 Fabian Affolter <mail@fabian-affolter.ch> - 1.1.1-1
9401cda
- Updated to new upstream version 1.1.1
9401cda
9666ab1
* Sat Aug 14 2010 Fabian Affolter <mail@fabian-affolter.ch> - 1.1.0-1
Fabian Affolter 8a181ce
- Updated to new upstream version 1.1.0
Fabian Affolter 8a181ce
9dfb4ab
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.0.0-2
9dfb4ab
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
9dfb4ab
9666ab1
* Sat Jun 26 2010 Fabian Affolter <mail@fabian-affolter.ch> - 1.0.0-1
27a4d61
- Updated to new upstream version 1.0.0
27a4d61
d9fef2d
* Tue May 11 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.9.5-2
d9fef2d
- Require python-chardet
d9fef2d
8d4b7c5
* Tue May 11 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.9.5-1
8d4b7c5
- Update to 0.9.5
8d4b7c5
50b7c6b
* Wed Feb 24 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.9.3-1
50b7c6b
- Update to 0.9.3
50b7c6b
0e55ab5
* Mon Feb 01 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.9.2-1
0e55ab5
- Update to 0.9.2
0e55ab5
0e55ab5
* Sun Jan 10 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.9.1-1
0e55ab5
- Update to 0.9.1
0e55ab5
- Require pywebkitgtk for new print preview
0e55ab5
- Use desktop-file-install
0e55ab5
a3a1752
* Fri Dec 18 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.9.0-1
a3a1752
- Update to 0.9.0
a3a1752
9666ab1
* Thu Nov 19 2009 Fabian Affolter <mail@fabian-affolter.ch> - 0.8.9-2
d0e6553
- Updated the URL after a request from the upstream maintainer
d0e6553
9666ab1
* Wed Nov 18 2009 Fabian Affolter <mail@fabian-affolter.ch> - 0.8.9-1
ce6262d
- Updated to new upstream version 0.8.9
ce6262d
9666ab1
* Mon Nov 16 2009 Fabian Affolter <mail@fabian-affolter.ch> - 0.8.8-1
05ac7e2
- Updated to new upstream version 0.8.8
05ac7e2
9666ab1
* Tue Sep 29 2009 Fabian Affolter <mail@fabian-affolter.ch> - 0.8.7-1
de6fed0
- Updated to new upstream version 0.8.7
de6fed0
c0ddcc5
* Thu Sep 17 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.6.1-1
c0ddcc5
- Update to 0.8.6.1, fixes #523880
c0ddcc5
d59e653
* Thu Sep 17 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.6-2
d59e653
- Fix libglade error with GTK 2.16.6 (#523880)
d59e653
d6e9142
* Fri Sep 04 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.6-1
d6e9142
- Updated to new upstream version 0.8.6
d6e9142
91b7d2d
* Fri Aug 14 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.5-1
91b7d2d
- Updated to new upstream version 0.8.5 (fixes #518778)
91b7d2d
8a1e021
* Fri Aug 14 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.4-1
8a1e021
- Updated to new upstream version 0.8.4
8a1e021
3375a07
* Fri Aug 07 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.3-1
3375a07
- Updated to new upstream version 0.8.3
3375a07
d76433a
* Wed Jul 29 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.2-1
d76433a
- Updated to new upstream version 0.8.2
d76433a
b245cc3
* Sat Jul 25 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.1-1
b245cc3
- Updated to new upstream version 0.8.1
b245cc3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b245cc3
9666ab1
* Wed Jul 22 2009 Fabian Affolter <mail@fabian-affolter.ch> - 0.8.0-1
49784a5
- Updated BR python
35ff4d3
- Icon cache update added
35ff4d3
- Updated to new upstream version 0.8.0
35ff4d3
9666ab1
* Wed Jul 15 2009 Fabian Affolter <mail@fabian-affolter.ch> - 0.7.6-1
4ae44e6
- Updated to new upstream version 0.7.6
4ae44e6
9666ab1
* Mon Jul 06 2009 Fabian Affolter <mail@fabian-affolter.ch> - 0.7.5-1
97d1c8d
- Removed the shebang stuff, upstream changed this
97d1c8d
- Updated to new upstream version 0.7.5
97d1c8d
9666ab1
* Mon Jun 29 2009 Fabian Affolter <mail@fabian-affolter.ch> - 0.7.4-1
c86e43e
- Moved the removing of the shebang to prep section
c86e43e
- Updated to new upstream version 0.7.4
c86e43e
9666ab1
* Thu May 26 2009 Fabian Affolter <mail@fabian-affolter.ch> - 0.7.2-1
b054464
- Updated to new upstream version 0.7.2
b054464
9666ab1
* Wed May 06 2009 Fabian Affolter <mail@fabian-affolter.ch> - 0.7.1-1
35cdcf7
- Updated to new upstream version 0.7.1
35cdcf7
9666ab1
* Wed May 06 2009 Fabian Affolter <mail@fabian-affolter.ch> - 0.6.9-1
ef07dc1
- Updated to new upstream version 0.6.9
ef07dc1
9666ab1
* Sun May 03 2009 Fabian Affolter <mail@fabian-affolter.ch> - 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
9666ab1
* Wed Mar 18 2009 Fabian Affolter <mail@fabian-affolter.ch> - 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
9666ab1
* Sat Mar 07 2009 Fabian Affolter <mail@fabian-affolter.ch> - 0.6.1-1
af02401
- Updated to new upstream version 0.6.1
af02401
- Renamed docs, added License file
af02401
9666ab1
* Thu Feb 12 2009 Fabian Affolter <mail@fabian-affolter.ch> - 0.5.5-1
af02401
- Updated to new upstream version 0.5.5
af02401
9666ab1
* Sat Jan 24 2009 Fabian Affolter <mail@fabian-affolter.ch> - 0.5.2-1
af02401
- Updated to new upstream version 0.5.2
af02401
9666ab1
* Sat Jan 24 2009 Fabian Affolter <mail@fabian-affolter.ch> - 0.5.1-1
af02401
- Initial package for Fedora
af02401