commit treeline for openSUSE:Factory

2020-06-02 Thread root
Hello community,

here is the log from the commit of package treeline for openSUSE:Factory 
checked in at 2020-06-02 14:40:11

Comparing /work/SRC/openSUSE:Factory/treeline (Old)
 and  /work/SRC/openSUSE:Factory/.treeline.new.3606 (New)


Package is "treeline"

Tue Jun  2 14:40:11 2020 rev:25 rq:810596 version:3.1.2

Changes:

--- /work/SRC/openSUSE:Factory/treeline/treeline.changes2019-09-23 
12:39:06.341593296 +0200
+++ /work/SRC/openSUSE:Factory/.treeline.new.3606/treeline.changes  
2020-06-02 14:41:14.532015104 +0200
@@ -1,0 +2,49 @@
+Sun May 24 10:50:29 UTC 2020 - Gottfried Necker 
+
+- Update to 3.1.2
+  * Packaging:
+- Remove pushd and popd from spec file.
+
+  * New Features:
+- Add a simplified Chinese GUI translation
+  (thanks to Qu Ray for translating).
+- Add a general option to extend the height of data editors with 
+  long text content. The default setting (limit the height to
+  the window size) is unchanged. The new option uses the view
+  scroll bars to access the full text length.
+
+  * Updates:
+- Restore the cursor and scroll positions of data editors when
+  the editors are re-created after focus changes.
+- Add an asterisk after the file name in the title bar if
+  a file has been modified.
+- Change lettered outline numbering sequences to match standards.
+  The sequences change from ...Y, Z, AA, AB, AC... to ...Y, Z, AA, BB, 
CC...
+
+  * Bug Fixes:
+- Fix a bug that truncated plain text exports after the first line.
+- Enable the title list view's select in tree context menu to be used
+  on new child nodes.
+- Modify dark mode colors to make tool tips visible.
+- Fix error due to character encoding when importing files from Treepad.
+- Fix an error caused by attempting to print an empty branch.
+
+- changelog for 3.1.1
+  * Updates:
+- Added many Show Configuration Structure data fields to show detailed
+  settings for type formats and field formats.
+- Added support for finding and replacing empty data fields using the
+  search and replace command.
+- Updated German and Spanish GUI translations (thanks to Maria Seliger
+  and Diego).
+
+  * Bug Fixes:
+- Fix printing problems when using the dark theme.
+- Fix incorrect numbering updates in some situations with mixed node types.
+- Fix problems defining a math field equation on a recently copied data 
type.
+- Eliminate a problem defining math field equations that include
+  child count references.
+- Fix a minor bug affecting default directories for save-as and export
+  commands when there is not already a file name set.
+
+---

Old:

  treeline-3.1.1.tar.gz

New:

  treeline-3.1.2.tar.gz



Other differences:
--
++ treeline.spec ++
--- /var/tmp/diff_new_pack.cTEO0f/_old  2020-06-02 14:41:15.756018974 +0200
+++ /var/tmp/diff_new_pack.cTEO0f/_new  2020-06-02 14:41:15.756018974 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   treeline
-Version:3.1.1
+Version:3.1.2
 Release:0
 Summary:Versatile Tree-Style Outliner for Defining Custom Data Schemas
 License:GPL-2.0-or-later
@@ -76,9 +76,7 @@
-d "%{_docdir}/%{name}" \
-b %{buildroot}
 
-pushd %{buildroot}%{python_sitearch}
 python3 -c "import compileall; 
compileall.compile_dir('%{buildroot}%{_libexecdir}/treeline',2,ddir='%{_libexecdir}/treeline')"
-popd
 
 install -d "%{buildroot}%{_datadir}/mimelnk/application"
 install -m0644 \

++ treeline-3.1.1.tar.gz -> treeline-3.1.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/TreeLine/doc/documentation.trln 
new/TreeLine/doc/documentation.trln
--- old/TreeLine/doc/documentation.trln 2019-03-16 20:38:10.0 +0100
+++ new/TreeLine/doc/documentation.trln 2019-10-05 20:00:58.0 +0200
@@ -159,6 +159,62 @@
 {
 "children": [],
 "data": {
+"Name": "Restore data editor cursor & scroll positions",
+"Text": "Restore the cursor and scroll positions of data editors when the 
editors are re-created after focus changes."
+},
+"format": "BULLETS",
+"uid": "194b052fe5d811e9a0d1a44cc8e97404"
+},
+{
+"children": [
+"3e749de3e5d811e98227a44cc8e97404",
+"194b0537e5d811e989a1a44cc8e97404",
+"194b0534e5d811e985f6a44cc8e97404"
+],
+"data": {
+"Name": "October 6, 2019 - Release 3.1.2 (stable release)"
+},
+"format": "HEADINGS",
+"uid": "194b0533e5d811e9b5fea44cc8e97404"
+},
+{
+"children": [
+"8cdb2406e5df11e9a06da44cc8e97404",
+"8e8e418ae5dc11e98404a44cc8e97404",
+"9139627ee5db11e98a21a44cc8e97404",
+"194b0536e5d811e991b3a44cc8e97404",
+"fcc1b718e5df11e9a7f9a44cc8e97404"
+],
+"data": 

commit treeline for openSUSE:Factory

2019-09-23 Thread root
Hello community,

here is the log from the commit of package treeline for openSUSE:Factory 
checked in at 2019-09-23 12:38:16

Comparing /work/SRC/openSUSE:Factory/treeline (Old)
 and  /work/SRC/openSUSE:Factory/.treeline.new.7948 (New)


Package is "treeline"

Mon Sep 23 12:38:16 2019 rev:24 rq:732182 version:3.1.1

Changes:

--- /work/SRC/openSUSE:Factory/treeline/treeline.changes2016-02-26 
00:46:22.0 +0100
+++ /work/SRC/openSUSE:Factory/.treeline.new.7948/treeline.changes  
2019-09-23 12:39:06.341593296 +0200
@@ -1,0 +2,7 @@
+Fri Sep 20 08:57:19 UTC 2019 - Christophe Giboudeaux 
+
+- Update to 3.1.1 to use PyQt5 instead of PyQt4.
+  * No changelog available
+- Run spec-cleaner
+
+---

Old:

  treeline-2.0.2.tar.gz
  treeline.desktop
  treeline.png

New:

  treeline-3.1.1.tar.gz



Other differences:
--
++ treeline.spec ++
--- /var/tmp/diff_new_pack.6Z1TrH/_old  2019-09-23 12:39:06.677593241 +0200
+++ /var/tmp/diff_new_pack.6Z1TrH/_new  2019-09-23 12:39:06.681593240 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package treeline
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,30 +12,27 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:   treeline
-Version:2.0.2
+Version:3.1.1
 Release:0
 Summary:Versatile Tree-Style Outliner for Defining Custom Data Schemas
-License:GPL-2.0+
+License:GPL-2.0-or-later
 Group:  Productivity/Office/Other
-Url:http://treeline.bellz.org
-Source0:
http://sourceforge.net/projects/treeline/files/%{version}/treeline-%{version}.tar.gz
-Source1:%{name}.desktop
-Source2:x-%{name}.desktop
-Source3:x-%{name}-gz.desktop
-Source4:x-treepad.desktop
-Source5:treeline.png
+URL:https://treeline.bellz.org
+Source0:
https://github.com/doug-101/TreeLine/releases/download/v%{version}/%{name}-%{version}.tar.gz
+Source1:x-%{name}.desktop
+Source2:x-%{name}-gz.desktop
+Source3:x-treepad.desktop
 Source99:   treeline-rpmlintrc
 BuildRequires:  fdupes
 BuildRequires:  perl
 BuildRequires:  python3-devel
 BuildRequires:  update-desktop-files
-Requires:   python3-qt4
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+Requires:   python3-qt5
 BuildArch:  noarch
 
 %description
@@ -75,6 +72,7 @@
 %install
 python3 install.py -x \
-p "%{_prefix}" \
+   -i "%{_datadir}/%{name}/icons" \
-d "%{_docdir}/%{name}" \
-b %{buildroot}
 
@@ -84,31 +82,34 @@
 
 install -d "%{buildroot}%{_datadir}/mimelnk/application"
 install -m0644 \
+"%{SOURCE1}" \
 "%{SOURCE2}" \
 "%{SOURCE3}" \
-"%{SOURCE4}" \
 "%{buildroot}%{_datadir}/mimelnk/application/"
 
-install -D -m0644 "%{SOURCE5}" "%{buildroot}%{_datadir}/pixmaps/treeline.png"
-
 %suse_update_desktop_file -i treeline Office ProjectManagement
 
 %fdupes -s "%{buildroot}%{_datadir}"
 
-find %{buildroot}%{_docdir} -type f -name "INSTALL" -print -delete
+rm -f %{buildroot}%{_docdir}/%{name}/{INSTALL,LICENSE}
 
 %files
-%defattr(-,root,root,-)
+%license doc/LICENSE
+%dir %{_datadir}/icons/hicolor
+%dir %{_datadir}/icons/hicolor/48x48
+%dir %{_datadir}/icons/hicolor/48x48/apps
+%dir %{_datadir}/icons/hicolor/scalable
+%dir %{_datadir}/icons/hicolor/scalable/apps
+%dir %{_datadir}/mimelnk
+%dir %{_datadir}/mimelnk/application
 %doc %{_docdir}/%{name}
 %{_bindir}/treeline
-%{_datadir}/treeline/
 %{_datadir}/applications/%{name}.desktop
-%{_datadir}/pixmaps/treeline.png
-%{_datadir}/icons/treeline
-%dir %{_datadir}/mimelnk
-%dir %{_datadir}/mimelnk/application
+%{_datadir}/icons/hicolor/48x48/apps/treeline-icon.png
+%{_datadir}/icons/hicolor/scalable/apps/treeline-icon.svg
 %{_datadir}/mimelnk/application/x-treeline-gz.desktop
 %{_datadir}/mimelnk/application/x-treeline.desktop
 %{_datadir}/mimelnk/application/x-treepad.desktop
+%{_datadir}/treeline/
 
 %changelog

++ treeline-2.0.2.tar.gz -> treeline-3.1.1.tar.gz ++
 43730 lines of diff (skipped)




commit treeline for openSUSE:Factory

2016-02-25 Thread h_root
Hello community,

here is the log from the commit of package treeline for openSUSE:Factory 
checked in at 2016-02-25 22:05:34

Comparing /work/SRC/openSUSE:Factory/treeline (Old)
 and  /work/SRC/openSUSE:Factory/.treeline.new (New)


Package is "treeline"

Changes:

--- /work/SRC/openSUSE:Factory/treeline/treeline.changes2015-04-10 
10:20:36.0 +0200
+++ /work/SRC/openSUSE:Factory/.treeline.new/treeline.changes   2016-02-26 
00:46:22.0 +0100
@@ -1,0 +2,31 @@
+Tue Feb 16 12:07:09 UTC 2016 - mkra...@suse.com
+
+- Update to version 2.0.2
+ * Bug Fixes:
+   - Fixed a major regression in 2.0.1 that broke data editors for
+ most specialized field types (number, math, boolean, choice, etc.)
+   - Reduce the amount of work that a single undo command removes
+ from editors in the data edit view.
+   - Fixed a bug that prevented setting the unique ID reference
+ field on a newly created data type.
+   - Preserve hard newlines in text fields when converting TreeLine
+ 1.4.x files to this version.
+   - Fix problems preserving expand/collapse node states when
+ indenting and unindenting nodes.
+ * Updates:
+   - Added methods to the plugin interface that allow general
+ program options to be queried and changed.
+   - Improve text table import error messages by including the line
+ number where the problem is found.
+   - Modified the Treepad file import to use SpacedText fields to more
+ closely match Treepad formatting.
+   - An optional plugin was written that can export files to the
+ Treepad text file format.
+   - The TreeLine icon was replaced with a new one. Thanks to
+ David Reimer for contributing the artwork.
+   - The German and Portuguese GUI translations were updated.
+   - Updated the long text sample file to include the SpacedText field
+ type, and added a conditional equation to the math sample file.
+   - Updated the Math Field section of the documentation.
+
+---

Old:

  treeline-1.9.7.tar.gz

New:

  treeline-2.0.2.tar.gz



Other differences:
--
++ treeline.spec ++
--- /var/tmp/diff_new_pack.diyO4p/_old  2016-02-26 00:46:23.0 +0100
+++ /var/tmp/diff_new_pack.diyO4p/_new  2016-02-26 00:46:23.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package treeline
 #
-# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,24 +17,24 @@
 
 
 Name:   treeline
+Version:2.0.2
+Release:0
 Summary:Versatile Tree-Style Outliner for Defining Custom Data Schemas
 License:GPL-2.0+
 Group:  Productivity/Office/Other
-Version:1.9.7
-Release:0
 Url:http://treeline.bellz.org
-BuildRequires:  perl
-BuildRequires:  python3-devel
-BuildRequires:  update-desktop-files
-BuildRequires:  fdupes
-Requires:   python3-qt4
 Source0:
http://sourceforge.net/projects/treeline/files/%{version}/treeline-%{version}.tar.gz
-Source1:%name.desktop
-Source2:x-%name.desktop
-Source3:x-%name-gz.desktop
+Source1:%{name}.desktop
+Source2:x-%{name}.desktop
+Source3:x-%{name}-gz.desktop
 Source4:x-treepad.desktop
 Source5:treeline.png
 Source99:   treeline-rpmlintrc
+BuildRequires:  fdupes
+BuildRequires:  perl
+BuildRequires:  python3-devel
+BuildRequires:  update-desktop-files
+Requires:   python3-qt4
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildArch:  noarch
 
@@ -58,16 +58,16 @@
 toolkit, which makes it very portable.
 
 %prep
-%setup -n TreeLine
+%setup -q -n TreeLine
 for i in source/*.py; do
-   sed -i "s|#!/usr/bin/env python|#!/usr/bin/python|g" "$i"
+   sed -i "s|#!%{_bindir}/env python|#!%{_bindir}/python|g" "$i"
 done
 
 find source/ -type f -name '*.py' | while read f; do
 case $f in
 */treeline.py) continue;;
 esac
-%__perl -i -n -e 'print unless m,^#!, and 1..1' "$f"
+perl -i -n -e 'print unless m,^#!, and 1..1' "$f"
 done
 
 %build
@@ -76,18 +76,20 @@
 python3 install.py -x \
-p "%{_prefix}" \
-d "%{_docdir}/%{name}" \
-   -b "%{buildroot}"
+   -b %{buildroot}
 
-python3 -c "import compileall; 
compileall.compile_dir('%{buildroot}%{_prefix}/lib/treeline',2,ddir='%{_prefix}/lib/treeline')"
+pushd %{buildroot}%{python_sitearch}
+python3 -c "import compileall; 
compileall.compile_dir('%{buildroot}%{_libexecdir}/treeline',2,ddir='%{_libexecdir}/treeline')"
+popd
 
-%__install -d "%{buildroot}%{_datadir}

commit treeline for openSUSE:Factory

2012-11-12 Thread h_root
Hello community,

here is the log from the commit of package treeline for openSUSE:Factory 
checked in at 2012-11-12 11:44:24

Comparing /work/SRC/openSUSE:Factory/treeline (Old)
 and  /work/SRC/openSUSE:Factory/.treeline.new (New)


Package is "treeline", Maintainer is "j...@suse.com"

Changes:

--- /work/SRC/openSUSE:Factory/treeline/treeline.changes2011-09-23 
12:49:02.0 +0200
+++ /work/SRC/openSUSE:Factory/.treeline.new/treeline.changes   2012-11-12 
11:44:26.0 +0100
@@ -1,0 +2,15 @@
+Sun Sep 23 21:19:17 UTC 2012 - nmo.marq...@gmail.com
+
+- Update to version 1.4.1:
+  + Fixed failures due to bad internal references when opening
+encrypted files in multiple windows.
+  + Avoid corruption of user option settings after attempting to
+automatically open an imported file as the last file used.
+  + Fix problems with imported files when the user sets new files
+to be encrypted by default.
+  + Prompt the user for a password when copying types from an
+encrypted TreeLine file.
+- Sources moved to upstream format, tar.gz
+- rpmlint: remove INSTALL in docs; escape macro in comment
+
+---

Old:

  treeline-1.4.0.tar.bz2

New:

  treeline-1.4.1.tar.gz



Other differences:
--
++ treeline.spec ++
--- /var/tmp/diff_new_pack.34yFDB/_old  2012-11-12 11:44:27.0 +0100
+++ /var/tmp/diff_new_pack.34yFDB/_new  2012-11-12 11:44:27.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package treeline
 #
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012 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
@@ -16,24 +16,22 @@
 #
 
 
-
 Name:   treeline
 Summary:Versatile Tree-Style Outliner for Defining Custom Data Schemas
-Version:1.4.0
-Release:1
-Group:  Productivity/Office/Other
 License:GPL-2.0+
-Url:http://www.bellz.org/treeline/
+Group:  Productivity/Office/Other
+Version:1.4.1
+Release:0
+Url:http://treeline.bellz.org
+BuildRequires:  perl
 BuildRequires:  python-devel
 BuildRequires:  update-desktop-files
-BuildRequires:  perl
 %if %{?suse_version} > 1020
 BuildRequires:  fdupes
 %endif
 Requires:   python-qt4
 Requires:   python-xml
-# http://download.berlios.de/treeline/treeline-%{version}.tar.gz
-Source0:treeline-%{version}.tar.bz2
+Source0:
http://sourceforge.net/projects/treeline/files/%{version}/treeline-%{version}.tar.gz
 Source1:%name.desktop
 Source2:x-%name.desktop
 Source3:x-%name-gz.desktop
@@ -106,6 +104,8 @@
 %fdupes -s "%{buildroot}%{_datadir}"
 %endif
 
+find %{buildroot}%{_docdir} -type f -name "INSTALL" -print -delete
+
 %clean
 %{?buildroot:%__rm -rf "%{buildroot}"}
 
@@ -113,9 +113,9 @@
 %defattr(-,root,root,-)
 %doc %{_docdir}/%{name}
 %{_bindir}/treeline
-%{_usr}/lib/treeline
-%{_datadir}/treeline
-/usr/share/applications/treeline.desktop
+%{_libexecdir}/treeline
+%{_datadir}/treeline/
+%{_datadir}/applications/%{name}.desktop
 %{_datadir}/pixmaps/treeline.png
 %{_datadir}/icons/treeline
 %dir %{_datadir}/mimelnk


-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit treeline for openSUSE:Factory

2011-12-06 Thread h_root
Hello community,

here is the log from the commit of package treeline for openSUSE:Factory 
checked in at 2011-12-06 19:09:24

Comparing /work/SRC/openSUSE:Factory/treeline (Old)
 and  /work/SRC/openSUSE:Factory/.treeline.new (New)


Package is "treeline", Maintainer is "j...@suse.com"

Changes:




Other differences:
--
++ treeline.spec ++
--- /var/tmp/diff_new_pack.MW4IPL/_old  2011-12-06 19:43:57.0 +0100
+++ /var/tmp/diff_new_pack.MW4IPL/_new  2011-12-06 19:43:57.0 +0100
@@ -22,7 +22,7 @@
 Version:1.4.0
 Release:1
 Group:  Productivity/Office/Other
-License:GPLv2+
+License:GPL-2.0+
 Url:http://www.bellz.org/treeline/
 BuildRequires:  python-devel
 BuildRequires:  update-desktop-files


-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit treeline for openSUSE:Factory

2011-04-18 Thread h_root

Hello community,

here is the log from the commit of package treeline for openSUSE:Factory
checked in at Mon Apr 18 10:58:00 CEST 2011.




--- treeline/treeline.changes   2009-08-06 12:21:30.0 +0200
+++ /mounts/work_src_done/STABLE/treeline/treeline.changes  2011-04-17 
01:08:36.0 +0200
@@ -1,0 +2,14 @@
+Sat Apr 16 23:05:56 UTC 2011 - pascal.ble...@opensuse.org
+
+- update to 1.4.0:
+  * remembering of previous directories for path-based fields
+  * addition of toolbar icons for window commands
+  * correction of a column control bug in HTML export
+  * ability to operate with multiple windows
+  * ability to update the same file from multiple windows
+  * command to add internal links to text
+  * new multiple-directory HTML export
+  * searchable help
+  * toolbar/shortcut reset buttons to undo customizations
+
+---

calling whatdependson for head-i586


Old:

  treeline-1.2.3.tar.bz2

New:

  treeline-1.4.0.tar.bz2
  treeline-rpmlintrc



Other differences:
--
++ treeline.spec ++
--- /var/tmp/diff_new_pack.vynwWz/_old  2011-04-18 10:55:38.0 +0200
+++ /var/tmp/diff_new_pack.vynwWz/_new  2011-04-18 10:55:38.0 +0200
@@ -1,7 +1,7 @@
 #
-# spec file for package treeline (Version 1.2.3)
+# spec file for package treeline
 #
-# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2011 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
@@ -15,31 +15,32 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-# norootforbuild
 
 
 Name:   treeline
 Summary:Versatile Tree-Style Outliner for Defining Custom Data Schemas
-Version:1.2.3
+Version:1.4.0
 Release:1
 Group:  Productivity/Office/Other
-License:GPL v2 or later
+License:GPLv2+
 Url:http://www.bellz.org/treeline/
-AutoReqProv:on
-BuildRequires:  python update-desktop-files
+BuildRequires:  python-devel
+BuildRequires:  update-desktop-files
+BuildRequires:  perl
 %if %{?suse_version} > 1020
 BuildRequires:  fdupes
 %endif
 Requires:   python-qt4
 Requires:   python-xml
-Source0:%name-%version.tar.bz2
+# http://download.berlios.de/treeline/treeline-%{version}.tar.gz
+Source0:treeline-%{version}.tar.bz2
 Source1:%name.desktop
 Source2:x-%name.desktop
 Source3:x-%name-gz.desktop
 Source4:x-treepad.desktop
 Source5:treeline.png
+Source99:   treeline-rpmlintrc
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-%define python_site%{_prefix}/%{_lib}/python%{py_ver}/site-packages
 BuildArch:  noarch
 
 %description
@@ -69,42 +70,58 @@
 
 %prep
 %setup -n TreeLine
+for i in source/*.py; do
+   sed -i "s|#!/usr/bin/env python|#!/usr/bin/python|g" "$i"
+done
+
+find source/ -type f -name '*.py' | while read f; do
+case $f in
+*/treeline.py) continue;;
+esac
+%__perl -i -n -e 'print unless m,^#!, and 1..1' "$f"
+done
 
 %build
 
 %install
-for i in source/*.py; do
-   sed -e "s|#!/usr/bin/env python|#!/usr/bin/python|g" $i > $i.tmp
-   mv $i.tmp $i
-   chmod 755 $i
-done
-python install.py -x \
-   -p /usr \
-   -d /usr/share/doc/packages/treeline \
-   -b $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT/opt/kde3/share/mimelnk/application/
-cp %{SOURCE2} $RPM_BUILD_ROOT/opt/kde3/share/mimelnk/application/
-cp %{SOURCE3} $RPM_BUILD_ROOT/opt/kde3/share/mimelnk/application/
-cp %{SOURCE4} $RPM_BUILD_ROOT/opt/kde3/share/mimelnk/application/
-mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps/
-cp %{SOURCE5} $RPM_BUILD_ROOT/usr/share/pixmaps/
+%__python install.py -x \
+   -p "%{_prefix}" \
+   -d "%{_docdir}/%{name}" \
+   -b "%{buildroot}"
+
+%__python -c "import compileall; 
compileall.compile_dir('%{buildroot}%{_prefix}/lib/treeline',2,ddir='%{_prefix}/lib/treeline')"
+
+%__install -d "%{buildroot}%{_datadir}/mimelnk/application"
+%__install -m0644 \
+"%{SOURCE2}" \
+"%{SOURCE3}" \
+"%{SOURCE4}" \
+"%{buildroot}%{_datadir}/mimelnk/application/"
+
+%__install -D -m0644 "%{SOURCE5}" 
"%{buildroot}%{_datadir}/pixmaps/treeline.png"
+
 %suse_update_desktop_file -i treeline Office ProjectManagement
+
 %if 0%{suse_version} > 1020
-%fdupes -s %buildroot
+%fdupes -s "%{buildroot}%{_datadir}"
 %endif
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+%{?buildroot:%__rm -rf "%{buildroot}"}
 
 %files
 %defattr(-,root,root,-)
-%doc /usr/share/doc/packages/treeline
-/usr/bin/*
-/usr/lib/*
-/usr/share/applications/*desktop
-/usr/share/treeline
-/opt/kde3
-/usr/share/pixmaps/*png
-/usr/share/icons/treeline
+%doc %{_docdir}/%{name}
+%{_bindir}/treeline
+%{_usr}/lib/treeline
+%{_datadir}/treeline
+/usr/share/appl