mirror of
https://abf.rosa.ru/djam/cherrytree.git
synced 2025-02-23 14:22:47 +00:00
59 lines
1.4 KiB
RPMSpec
59 lines
1.4 KiB
RPMSpec
Name: cherrytree
|
|
Version: 0.35.10
|
|
Release: 1
|
|
Summary: Hierarchical note taking application
|
|
|
|
Group: Office
|
|
License: GPLv2+
|
|
URL: http://www.giuspen.com/cherrytree/
|
|
Source0: http://www.giuspen.com/software/%{name}-%{version}.tar.xz
|
|
|
|
BuildArch: noarch
|
|
BuildRequires: pkgconfig(python)
|
|
BuildRequires: gettext
|
|
BuildRequires: desktop-file-utils
|
|
Requires: pygtk2
|
|
Requires: python-gobject
|
|
Requires: python-gtksourceview
|
|
Requires: python-enchant
|
|
Requires: p7zip
|
|
|
|
%description
|
|
CherryTree is a hierarchical note taking application, featuring rich text and
|
|
syntax highlighting, storing all the data (including images) in a single XML
|
|
file with extension ".ctd".
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
python setup.py build
|
|
|
|
%install
|
|
python setup.py install -O1 --root %{buildroot}
|
|
|
|
# don't include useless egg
|
|
rm -rf %{buildroot}%{python_sitelib}
|
|
|
|
# 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}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
|
|
|
|
%find_lang %{name}
|
|
|
|
%files -f %{name}.lang
|
|
%doc changelog.txt license.txt
|
|
%{_bindir}/%{name}
|
|
%{_datadir}/applications/%{name}.desktop
|
|
%{_datadir}/appdata/cherrytree.appdata.xml
|
|
%{_datadir}/%{name}/
|
|
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
|
|
%{_datadir}/mime/packages/%{name}.xml
|
|
%{_mandir}/man1/*.1*
|
|
|