forked from pool/cherrytree
Accepting request 46703 from home:badshah400
Copy from home:badshah400/cherrytree via accept of submit request 46703 revision 9. Request was accepted with message: Thanks for your submission. OBS-URL: https://build.opensuse.org/request/show/46703 OBS-URL: https://build.opensuse.org/package/show/GNOME:Apps/cherrytree?expand=0&rev=1
This commit is contained in:
commit
8ee8a43317
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
cherrytree-0.14.tar.bz2
Normal file
3
cherrytree-0.14.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a640b3e505b36902f8d825bd88a9e4663f38ecf26ec79c2da5b424062177b9ca
|
||||
size 486021
|
72
cherrytree-remove-shebang-line.patch
Normal file
72
cherrytree-remove-shebang-line.patch
Normal file
@ -0,0 +1,72 @@
|
||||
diff -ur cherrytree-0.14//modules/config.py cherrytree-0.14-new//modules/config.py
|
||||
--- cherrytree-0.14//modules/config.py 2010-08-23 22:42:19.000000000 +0530
|
||||
+++ cherrytree-0.14-new//modules/config.py 2010-08-30 23:55:07.447633033 +0530
|
||||
@@ -1,4 +1,3 @@
|
||||
-#!/usr/bin/env python
|
||||
# -*- coding: UTF-8 -*-
|
||||
#
|
||||
# config.py
|
||||
diff -ur cherrytree-0.14//modules/cons.py cherrytree-0.14-new//modules/cons.py
|
||||
--- cherrytree-0.14//modules/cons.py 2010-08-23 15:15:29.000000000 +0530
|
||||
+++ cherrytree-0.14-new//modules/cons.py 2010-08-30 23:55:07.451542171 +0530
|
||||
@@ -1,4 +1,3 @@
|
||||
-#!/usr/bin/env python
|
||||
# -*- coding: UTF-8 -*-
|
||||
#
|
||||
# cons.py
|
||||
diff -ur cherrytree-0.14//modules/core.py cherrytree-0.14-new//modules/core.py
|
||||
--- cherrytree-0.14//modules/core.py 2010-08-23 22:39:53.000000000 +0530
|
||||
+++ cherrytree-0.14-new//modules/core.py 2010-08-30 23:55:07.468651734 +0530
|
||||
@@ -1,4 +1,3 @@
|
||||
-#!/usr/bin/env python
|
||||
# -*- coding: UTF-8 -*-
|
||||
#
|
||||
# core.py
|
||||
diff -ur cherrytree-0.14//modules/imports.py cherrytree-0.14-new//modules/imports.py
|
||||
--- cherrytree-0.14//modules/imports.py 2010-08-16 20:28:24.000000000 +0530
|
||||
+++ cherrytree-0.14-new//modules/imports.py 2010-08-30 23:55:07.472223361 +0530
|
||||
@@ -1,4 +1,3 @@
|
||||
-#!/usr/bin/env python
|
||||
# -*- coding: UTF-8 -*-
|
||||
#
|
||||
# imports.py
|
||||
diff -ur cherrytree-0.14//modules/lists.py cherrytree-0.14-new//modules/lists.py
|
||||
--- cherrytree-0.14//modules/lists.py 2010-08-17 00:22:10.000000000 +0530
|
||||
+++ cherrytree-0.14-new//modules/lists.py 2010-08-30 23:55:07.474545949 +0530
|
||||
@@ -1,4 +1,3 @@
|
||||
-#!/usr/bin/env python
|
||||
# -*- coding: UTF-8 -*-
|
||||
#
|
||||
# lists.py
|
||||
diff -ur cherrytree-0.14//modules/machines.py cherrytree-0.14-new//modules/machines.py
|
||||
--- cherrytree-0.14//modules/machines.py 2010-08-22 22:51:31.000000000 +0530
|
||||
+++ cherrytree-0.14-new//modules/machines.py 2010-08-30 23:55:07.476562103 +0530
|
||||
@@ -1,4 +1,3 @@
|
||||
-#!/usr/bin/env python
|
||||
# -*- coding: UTF-8 -*-
|
||||
#
|
||||
# machines.py
|
||||
diff -ur cherrytree-0.14//modules/printing.py cherrytree-0.14-new//modules/printing.py
|
||||
--- cherrytree-0.14//modules/printing.py 2010-08-23 01:54:26.000000000 +0530
|
||||
+++ cherrytree-0.14-new//modules/printing.py 2010-08-30 23:55:07.480520358 +0530
|
||||
@@ -1,4 +1,3 @@
|
||||
-#!/usr/bin/env python
|
||||
# -*- coding: UTF-8 -*-
|
||||
#
|
||||
# printing.py
|
||||
diff -ur cherrytree-0.14//modules/support.py cherrytree-0.14-new//modules/support.py
|
||||
--- cherrytree-0.14//modules/support.py 2010-08-16 20:28:24.000000000 +0530
|
||||
+++ cherrytree-0.14-new//modules/support.py 2010-08-30 23:55:07.481526946 +0530
|
||||
@@ -1,4 +1,3 @@
|
||||
-#!/usr/bin/env python
|
||||
# -*- coding: UTF-8 -*-
|
||||
#
|
||||
# support.py
|
||||
diff -ur cherrytree-0.14//modules/tables.py cherrytree-0.14-new//modules/tables.py
|
||||
--- cherrytree-0.14//modules/tables.py 2010-08-17 20:59:04.000000000 +0530
|
||||
+++ cherrytree-0.14-new//modules/tables.py 2010-08-30 23:55:07.481526946 +0530
|
||||
@@ -1,4 +1,3 @@
|
||||
-#!/usr/bin/env python
|
||||
# -*- coding: UTF-8 -*-
|
||||
#
|
||||
# tables.py
|
17
cherrytree.changes
Normal file
17
cherrytree.changes
Normal file
@ -0,0 +1,17 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 30 18:43:23 UTC 2010 - badshah400@gmail.com
|
||||
|
||||
- Removed unsafe sed hack from spec file to delete unnecessary
|
||||
shebang lines in favour of cherrytree-remove-shebang-line.patch
|
||||
- Cleanup of spec file
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 27 22:08:06 UTC 2010 - badshah400@gmail.com
|
||||
|
||||
- Fix build errors
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 27 21:18:47 UTC 2010 - badshah400@gmail.com
|
||||
|
||||
- Initial package (version 0.14)
|
||||
|
96
cherrytree.spec
Normal file
96
cherrytree.spec
Normal file
@ -0,0 +1,96 @@
|
||||
#
|
||||
# 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
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Requires(post): shared-mime-info
|
||||
Requires(post): xdg-utils
|
||||
%if 0%{?suse_version} >= 1120
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
%py_requires
|
||||
|
||||
%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".
|
||||
|
||||
%{!?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))")}
|
||||
|
||||
%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
|
||||
rm -f %{buildroot}%{_datadir}/application-registry/cherrytree.*
|
||||
rm -f %{buildroot}%{_datadir}/mime-info/cherrytree.*
|
||||
%find_lang %{name}
|
||||
%suse_update_desktop_file -r -G "Hierarchical Notes Utility" cherrytree GNOME GTK Utility TextEditor
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%post
|
||||
%if 0%{?suse_version} >= 1140
|
||||
%icon_theme_cache_post
|
||||
%else
|
||||
gtk-update-icon-cache %{_datadir}/icons/hicolor
|
||||
%endif
|
||||
xdg-mime install --novendor /usr/share/mime/packages/cherrytree.xml
|
||||
update-mime-database %{_datadir}/mime
|
||||
|
||||
%postun
|
||||
%if 0%{?suse_version} >= 1140
|
||||
%icon_theme_cache_postun
|
||||
%else
|
||||
gtk-update-icon-cache %{_datadir}/icons/hicolor
|
||||
%endif
|
||||
update-mime-database %{_datadir}/mime
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc changelog license
|
||||
%{_bindir}/cherrytree
|
||||
%{_datadir}/cherrytree/
|
||||
%{_datadir}/applications/cherrytree.desktop
|
||||
%{_datadir}/mime/packages/cherrytree.xml
|
||||
%{_datadir}/icons/hicolor/scalable/apps/cherrytree.svg
|
||||
%{python_sitelib}/CherryTree-0.14-py2.6.egg-info
|
||||
|
||||
%files lang -f %{name}.lang
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user