Summary: Hierarchical note taking application Name: cherrytree Version: 0.99.15 Release: 1 License: GPLv3+ Group: Office URL: http://www.giuspen.com/cherrytree/ Source0: https://github.com/giuspen/cherrytree/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz #Source0: http://www.giuspen.com/software/%{name}-%{version}.tar.xz #Source1: CherrytreeManual.ctb.tar.xz #Source2: %{name}-0.38.4-%{name}.1 #Patch0: %{name}-0.38.4-desktop.patch #BuildArch: noarch BuildRequires: cmake BuildRequires: pkgconfig(gtkmm-3.0) BuildRequires: pkgconfig(gtksourceviewmm-3.0) BuildRequires: pkgconfig(glibmm-2.4) >= 2.64 BuildRequires: pkgconfig(python) BuildRequires: gettext Requires: python Requires: p7zip Requires: pygtk2.0 Requires: python-appindicator Requires: python-chardet Requires: python-dbus Requires: python-enchant Requires: python-gobject Requires: python-gtksourceview Requires: sqlite-tools %description Cherrytree is a hierarchical note taking application. The Main Features: * Rich Text supporting Images, Tables, Code Boxes, Hyperlinks and Anchors, Spell Check, Lists. * Syntax Highlighting supporting many programming languages. * Password Protection, Powerful Find and Replace utilities, TOC generator. * Print, Save as PDF, Export to HTML, Export to Plain Text. * Import from Several other Note Taking Applications. %files -f %{name}.lang %doc changelog.txt license.txt CherrytreeManual.ctb %{_bindir}/%{name} %{_datadir}/%{name}/glade/* %{_datadir}/%{name}/language-specs/* %{_datadir}/%{name}/modules/* %{_datadir}/appdata/%{name}.appdata.xml %{_datadir}/applications/%{name}.desktop %{_datadir}/mime/packages/%{name}.xml %{_iconsdir}/hicolor/scalable/apps/%{name}.svg %{_mandir}/man1/*.1.xz %{_mandir}/ru/man1/%{name}.1.xz %{py_puresitedir}/CherryTree-%{version}-py2.7.egg-info #---------------------------------------------------------------------------- %prep %setup -q #-a 1 #patch0 -p1 %build #python setup.py build %cmake %install python setup.py install --prefix=%{buildroot}/usr -f # These are no longer in use rm -rf %{buildroot}%{_datadir}/application-registry rm -rf %{buildroot}%{_datadir}/mime-info # Menu entry check desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop # Fix icon file permissions chmod 0644 %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{name}.svg # Add man in Russian #install -D %SOURCE2 %{buildroot}%{_mandir}/ru/man1/%{name}.1 %find_lang %{name}