Name: lonote Version: 2.2.1 Release: 1%{?dist} Summary: Personal Notebook based on Qt Webkit License: ASL 2.0 URL: https://bitbucket.org/civalin/lonote Source0: https://bitbucket.org/civalin/%{name}/downloads/%{name}-%{version}.zip BuildArch: noarch BuildRequires: python3-devel >= 3.2 BuildRequires: desktop-file-utils Requires: python3-bottle Requires: python3-whoosh Requires: python3-lxml %description LoNote is a Note-Taking software based on Python3 and PyQt4. Each page is saved in HTML format and the program is actually a WYSIWYG HTML editor specialized for note-taking convenience. %prep %setup # Remove bundled bottle.py rm lonotelib/bottle.py* # Remove bundled Whoosh #rm -r lonotelib/whoosh # Remove a shebang sed -i -e '/^#!\//, 1d' lonotelib/diff_match_patch.py %build %{__python3} setup.py build %install %{__python3} setup.py install --root=%{buildroot} --skip-build # Rearrage the documents to conform Fedora convention mv %{buildroot}%{_docdir}/%{name} %{buildroot}%{_docdir}/%{name}-%{version} #dos2unix %{buildroot}%{_docdir}/%{name}-%{version}/*.txt rm -r %{buildroot}%{_datadir}/%{name}/garbage rm -r %{buildroot}%{python3_sitelib}/lonotelib/whoosh # validate the desktop entry file desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop find %{buildroot}%{_datadir}/locale -name \*po |xargs rm %find_lang %{name} %files -f %{name}.lang %{_docdir}/%{name}-%{version}/ %{_bindir}/%{name} %{_mandir}/man1/%{name}.1.* %{python3_sitelib}/* #%{python3_sitelib}/*.egg-info %{_datadir}/%{name}/ %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.* %changelog * Sun Apr 7 2013 Robin Lee - 2.0-1 - Update to 2.0 * Thu Feb 14 2013 Fedora Release Engineering - 1.8.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Oct 24 2012 Robin Lee - 1.8.7-1 - Update to 1.8.7 * Wed Oct 10 2012 Robin Lee - 1.8.6-2 - Fix and validate the desktop entry file * Tue Oct 9 2012 Robin Lee - 1.8.6-1 - Submit for Fedora