2018-07-05 13:40:00 +03:00
|
|
|
Summary: Hierarchical note taking application
|
2018-04-15 13:06:43 +07:00
|
|
|
Name: cherrytree
|
2018-07-05 13:40:00 +03:00
|
|
|
Version: 0.38.5
|
2018-04-15 13:06:43 +07:00
|
|
|
Release: 1
|
|
|
|
License: GPLv3+
|
|
|
|
Group: Office
|
2018-07-05 13:40:00 +03:00
|
|
|
Url: http://www.giuspen.com/cherrytree/
|
|
|
|
Source0: http://www.giuspen.com/software/%{name}-%{version}.tar.xz
|
2018-04-15 13:06:43 +07:00
|
|
|
Source1: CherrytreeManual.ctb.tar.xz
|
2018-07-05 13:40:00 +03:00
|
|
|
Source2: %{name}-0.38.4-%{name}.1
|
|
|
|
Patch0: %{name}-0.38.4-desktop.patch
|
2018-04-15 13:06:43 +07:00
|
|
|
BuildArch: noarch
|
2018-07-05 13:40:00 +03:00
|
|
|
BuildRequires: pkgconfig(python)
|
2018-04-15 13:06:43 +07:00
|
|
|
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
|
2013-01-10 13:42:37 +00:00
|
|
|
|
|
|
|
%description
|
2016-11-18 19:56:12 +03:00
|
|
|
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.
|
|
|
|
|
2018-07-05 13:40:00 +03:00
|
|
|
%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
|
2018-04-15 13:06:43 +07:00
|
|
|
%{_mandir}/man1/*.1.xz
|
2018-07-05 13:40:00 +03:00
|
|
|
%{_mandir}/ru/man1/%{name}.1.xz
|
|
|
|
%{py_puresitedir}/CherryTree-%{version}-py2.7.egg-info
|
2016-11-18 19:56:12 +03:00
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
2013-01-10 13:42:37 +00:00
|
|
|
|
|
|
|
%prep
|
2016-11-18 19:56:12 +03:00
|
|
|
%setup -q -a 1
|
2018-04-15 13:06:43 +07:00
|
|
|
%patch0 -p1
|
2013-01-10 13:42:37 +00:00
|
|
|
|
|
|
|
%build
|
2013-01-11 01:04:28 +11:00
|
|
|
python setup.py build
|
2013-01-10 13:42:37 +00:00
|
|
|
|
|
|
|
%install
|
2018-07-05 13:40:00 +03:00
|
|
|
python setup.py install --prefix=%{buildroot}/usr -f
|
2016-11-18 19:56:12 +03:00
|
|
|
# These are no longer in use
|
2018-07-05 13:40:00 +03:00
|
|
|
rm -rf %{buildroot}%{_datadir}/application-registry
|
|
|
|
rm -rf %{buildroot}%{_datadir}/mime-info
|
2016-11-18 19:56:12 +03:00
|
|
|
# Menu entry check
|
2018-07-05 13:40:00 +03:00
|
|
|
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
|
2016-11-18 19:56:12 +03:00
|
|
|
# Fix icon file permissions
|
2018-07-05 13:40:00 +03:00
|
|
|
chmod 0644 %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
|
2016-11-18 19:56:12 +03:00
|
|
|
# Add man in Russian
|
2018-07-05 13:40:00 +03:00
|
|
|
install -D %SOURCE2 %{buildroot}%{_mandir}/ru/man1/%{name}.1
|
2015-01-03 23:11:28 +04:00
|
|
|
|
2018-07-05 13:40:00 +03:00
|
|
|
%find_lang %{name}
|