File treeline.spec of Package treeline

# spec file for package treeline (Version 1.2.0)
# Copyright (c) 2008 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.

# Please submit bugfixes or comments via

# norootforbuild

Name:           treeline
Summary:        Versatile Tree-Style Outliner for Defining Custom Data Schemas
Version:        1.2.0
Release:        1
Group:          Productivity/Office/Other
License:        GPL v2 or later
AutoReqProv:    on
BuildRequires:  python update-desktop-files
%if %{?suse_version} > 1020
BuildRequires:  fdupes
Requires:       python-qt4
Requires:       python-xml
Source0:        %name-%version.tar.bz2
Source1:        %name.desktop
Source2:        x-%name.desktop
Source3:        x-%name-gz.desktop
Source4:        x-treepad.desktop
Source5:        treeline.png
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%define python_site    %{_prefix}/%{_lib}/python%{py_ver}/site-packages
BuildArch:      noarch

TreeLine is a versatile tool for working with all kinds of information
that fit into a tree-like structure.

It can be used to edit bookmark files, create mini-databases (for
example, for addresses, tasks, records, or CDs), outline documents, or
just collect ideas. It can also be used as a generic editor for XML

The data schemas for any node in the data tree can be customized and
new types of nodes can be defined. The way data is presented on the
screen, exported to HTML, or printed can be defined with HTML-like
templates. Plug-ins can be written to load and save data from and to
custom file formats or external data sources and extend the
functionality of TreeLine.

TreeLine is written in Python and uses the PyQt bindings to the Qt
toolkit, which makes it very portable.

    Doug Bell <>

%setup -n TreeLine


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
python -x \
   -p /usr \
   -d /usr/share/doc/packages/treeline \
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/
%suse_update_desktop_file -i treeline Office ProjectManagement
%if 0%{suse_version} > 1020
%fdupes -s %buildroot


%doc /usr/share/doc/packages/treeline

* Thu Jun 19 2008
- update to 1.2.0
- fixed data loss issue when backup file is corrupt
- fixed minor bug in Configure Data Types dialog
* Sun Apr 06 2008
- fix DOS EOL encoding in file
* Wed Feb 13 2008
- update to 1.1.10
- fix missing shebang and remove it from rpmlintrc exceptions
* Fri Nov 09 2007
- fix rpmlint errors
* Wed Aug 08 2007
- update to 1.1.9
- rewrite, moved to Qt 4.x and PyQt 4.x
- basic ODF support
* Fri Aug 25 2006
- update to 1.0.0
- fixed a problem with duplicate nodes showing up when pasting
  multiple nodes on Windows
- deriving types from other derived types is no longer allowed, since
  it did not function properly
- a problem with saving an encrypted file in the German version of
  TreeLine has been fixed
* Wed Jan 25 2006
- converted neededforbuild to BuildRequires
* Tue Dec 20 2005
- update to 0.14.0
* Wed Sep 21 2005
- fixed non-matching string in German translation
* Mon Aug 29 2005
- update to 0.13.0
- German and French translations
* Mon Jul 11 2005
- update to 0.12.82a
- first version that is prepared for localization
* Wed May 04 2005
- update to 0.12.0
- SUSE-specific patches are not needed any more
- Desktop icon was missing; added one from the last release
* Sun Mar 13 2005
- removing plain text files from supported mime types in .desktop
* Mon Feb 28 2005
- update to 0.11.1
- removing some SUSE-specific changes that are not necessary
  any more
* Tue Feb 08 2005
- update to 0.11.0
- SUSE improvements (KDE icons)
- .desktop files are included now
- fixed dependencies
* Fri Jan 28 2005
- update to 0.10.83
- patch for documentation directory not needed any more because of
  new option in install script
* Mon Jan 24 2005
- initial checkin of TreeLine