cherrytree/cherrytree.spec

56 lines
1.3 KiB
RPMSpec
Raw Normal View History

2013-01-11 01:04:28 +11:00
Name: cherrytree
2014-02-14 12:53:03 +00:00
Version: 0.32.0
2013-01-11 01:04:28 +11:00
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
2013-11-03 11:09:36 +01:00
BuildRequires: desktop-file-utils
2013-01-11 01:04:28 +11:00
Requires: pygtk2
Requires: python-gobject
Requires: python-gtksourceview
2013-11-03 11:09:36 +01:00
Requires: python-enchant
2013-01-11 01:04:28 +11:00
Requires: p7zip
2013-01-10 13:42:37 +00:00
%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
2013-01-11 01:04:28 +11:00
python setup.py build
2013-01-10 13:42:37 +00:00
%install
2013-01-11 01:04:28 +11:00
python setup.py install -O1 --root %{buildroot}
2013-01-10 13:42:37 +00:00
# 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/
2013-11-03 11:09:36 +01:00
# menu entry check
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
2013-01-10 13:42:37 +00:00
%find_lang %{name}
%files -f %{name}.lang
%doc changelog.txt license.txt
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/mime/packages/%{name}.xml
%{_mandir}/man1/*.1*