forked from pool/cherrytree
Dominique Leuenberger
b72745b810
Copy from home:vuntz:branches:GNOME:Apps/cherrytree via accept of submit request 46978 revision 2. Request was accepted with message: I will try to remember those OBS-URL: https://build.opensuse.org/request/show/46978 OBS-URL: https://build.opensuse.org/package/show/GNOME:Apps/cherrytree?expand=0&rev=2
95 lines
3.1 KiB
RPMSpec
95 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package cherrytree (Version 0.14)
|
|
#
|
|
# Copyright 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
Name: cherrytree
|
|
Version: 0.14
|
|
Release: 1
|
|
License: GPLv2+
|
|
Summary: A hierarchical note taking application
|
|
Url: http://www.giuspen.com/cherrytree/
|
|
Group: Productivity/Office/Other
|
|
Source: %{name}-%{version}.tar.bz2
|
|
# PATCH-FIX-OPENSUSE %{name}-remove-shebang-line.patch badshah400@gmail.com -- delete shebang lines in .py files
|
|
Patch0: %{name}-remove-shebang-line.patch
|
|
BuildRequires: desktop-file-utils
|
|
BuildRequires: python-gtk
|
|
BuildRequires: python-gtksourceview
|
|
BuildRequires: update-desktop-files
|
|
Requires: %{name}-lang = %{version}
|
|
Requires: python-gtk
|
|
Requires: python-gtksourceview
|
|
Requires(post): shared-mime-info
|
|
Requires(postun): shared-mime-info
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%if 0%{?suse_version} >= 1120
|
|
BuildArch: noarch
|
|
%endif
|
|
%py_requires
|
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
|
|
%description
|
|
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".
|
|
|
|
%lang_package
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
|
|
%build
|
|
|
|
%install
|
|
%{__python} setup.py install --prefix=%{_prefix} --exec-prefix=%{_exec_prefix} --root=%{buildroot}
|
|
rm %{buildroot}%{_datadir}/cherrytree/glade/cherrytree.glade.h
|
|
# Remove old mime registration files
|
|
rm -f %{buildroot}%{_datadir}/application-registry/cherrytree.*
|
|
rm -f %{buildroot}%{_datadir}/mime-info/cherrytree.*
|
|
%find_lang %{name}
|
|
%suse_update_desktop_file -G "Hierarchical Notes Utility" cherrytree TextEditor
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%post
|
|
%if 0%{?suse_version} >= 1140
|
|
%icon_theme_cache_post
|
|
%else
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor || true
|
|
%endif
|
|
update-mime-database %{_datadir}/mime
|
|
|
|
%postun
|
|
%if 0%{?suse_version} >= 1140
|
|
%icon_theme_cache_postun
|
|
%else
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor || true
|
|
%endif
|
|
update-mime-database %{_datadir}/mime
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc changelog license
|
|
%{_bindir}/cherrytree
|
|
%{_datadir}/applications/cherrytree.desktop
|
|
%{_datadir}/cherrytree/
|
|
%{_datadir}/icons/hicolor/scalable/apps/cherrytree.svg
|
|
%{_datadir}/mime/packages/cherrytree.xml
|
|
%{python_sitelib}/CherryTree-0.14-py2.6.egg-info
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%changelog
|