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 http://bugs.opensuse.org/
#

# 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
Url:            http://www.bellz.org/treeline/
AutoReqProv:    on
BuildRequires:  python update-desktop-files
%if %{?suse_version} > 1020
BuildRequires:  fdupes
%endif
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

%description
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
files.

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.



Authors:
--------
    Doug Bell <doug101@bellz.org>

%prep
%setup -n TreeLine

%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/
%suse_update_desktop_file -i treeline Office ProjectManagement
%if 0%{suse_version} > 1020
%fdupes -s %buildroot
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%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

%changelog
* Thu Jun 19 2008 joe@suse.de
- 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 joe@suse.de
- fix DOS EOL encoding in setup.py file
* Wed Feb 13 2008 joe@suse.de
- update to 1.1.10
- fix missing shebang and remove it from rpmlintrc exceptions
* Fri Nov 09 2007 lrupp@suse.de
- fix rpmlint errors
* Wed Aug 08 2007 joe@suse.de
- update to 1.1.9
- rewrite, moved to Qt 4.x and PyQt 4.x
- basic ODF support
* Fri Aug 25 2006 joe@suse.de
- 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 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Dec 20 2005 joe@suse.de
- update to 0.14.0
* Wed Sep 21 2005 joe@suse.de
- fixed non-matching string in German translation
* Mon Aug 29 2005 joe@suse.de
- update to 0.13.0
- German and French translations
* Mon Jul 11 2005 joe@suse.de
- update to 0.12.82a
- first version that is prepared for localization
* Wed May 04 2005 joe@suse.de
- 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 joe@suse.de
- removing plain text files from supported mime types in .desktop
  file
* Mon Feb 28 2005 joe@suse.de
- update to 0.11.1
- removing some SUSE-specific changes that are not necessary
  any more
* Tue Feb 08 2005 joe@suse.de
- update to 0.11.0
- SUSE improvements (KDE icons)
- .desktop files are included now
- fixed dependencies
* Fri Jan 28 2005 joe@suse.de
- update to 0.10.83
- patch for documentation directory not needed any more because of
  new option in install script
* Mon Jan 24 2005 joe@suse.de
- initial checkin of TreeLine