File treeline.spec of Package treeline-qt3

# norootforbuild

%define _prefix	/usr
%define _lib		lib
%define kdeprefix	/opt/kde3

Name:				treeline-qt3
Version:			1.0.2
Release:			1
Summary:			Versatile Tree-Style Outliner for Defining Custom Data Schemas
Source:			http://www.bellz.org/treeline/treeline-%{version}.tar.gz
Source1:			treeline.desktop
Source2:			x-treeline.desktop
Source3:			x-treeline-gz.desktop
Source4:			x-treepad.desktop
Source5:			treeline.png
Source6:			http://bellz.org/treeline/treeline-i18n-1.0.0b.tar.gz
URL:				http://www.bellz.org/treeline/
Group:			Productivity/Office/Other
License:			GPL-2.0
BuildRoot:		%{_tmppath}/build-%{name}-%{version}
Requires:		python aspell
BuildRequires:	python qt3 aspell update-desktop-files
Requires:		python-xml
BuildRequires:	python-xml
#Requires:		kdebindings3-python
#BuildRequires:	kdebindings3-python
Requires:		python-qt3
BuildRequires:	python-qt3
Conflicts:      treeline

BuildArch:		noarch

%description
TreeLine is a versatile tool for working with all kind of information
that fits into a tree-like structure.

It can be used to edit bookmark files, create mini-databases (e.g., for
addresses, tasks, records, CDs, etc.), 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.

%prep
%setup -q -n "TreeLine"
pushd ..
%__tar xzf "%{SOURCE6}"
popd

%build

%install
python install.py -x \
   -p "%{_prefix}" \
   -d "%{_docdir}/treeline" \
   -b "%{buildroot}"
%__install -d "%{buildroot}%{kdeprefix}/share/mimelnk/application"
%__install -m 0644 "%{SOURCE2}" "%{SOURCE3}" "%{SOURCE4}" \
	"%{buildroot}%{kdeprefix}/share/mimelnk/application/"
%__install -D -m 0644 "%{SOURCE5}" "%{buildroot}%{_datadir}/pixmaps/treeline.png"
%__install -D -m 0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/treeline.desktop"
%suse_update_desktop_file -r treeline Office ProjectManagement

echo -n > treeline.lang
LANGFILE=$PWD/treeline.lang
pushd "%{buildroot}"
find ".%{_libdir}/treeline/translations/" -type f | while read f; do
	b=${f##*/}
	x=${b##*_}
	l=${x%%.*}
	echo "%lang(${l}) %{_libdir}/treeline/translations/${b}" >> "$LANGFILE"
done
popd

%files -f treeline.lang
%defattr(-,root,root)
%doc %{_docdir}/treeline
/opt/kde3/share/mimelnk/application/x-treeline-gz.desktop
/opt/kde3/share/mimelnk/application/x-treeline.desktop
/opt/kde3/share/mimelnk/application/x-treepad.desktop
/usr/bin/treeline
/usr/lib/treeline/*
/usr/share/applications/treeline.desktop
%dir /usr/share/icons/treeline/
/usr/share/icons/treeline/*
/usr/share/pixmaps/treeline.png
%dir /opt/kde3
%dir /opt/kde3/share
%dir /opt/kde3/share/mimelnk
%dir /opt/kde3/share/mimelnk/application
%dir /usr/lib/treeline


%changelog
* Fri Jun  1 2007 Pascal Bleser <guru@unixtech.be> 1.0.2-1
- new upstream version

* Thu Mar  8 2007 Pascal Bleser <guru@unixtech.be> 1.0.1-1
- CHANGES: fixes were made for problems with the drag & drop of conditional nodes, using the edit-cut command with the root node as part of the selection, and handling the errors due to importing files with invalid Unicode characters. A Russian translation was also added.
- new upstream version

* Tue Nov 21 2006 Pascal Bleser <guru@unixtech.be> 1.0.0-2
- removed debuginfo
- replaced provided dependency with package name
- added translations

* Fri Jul 21 2006 Pascal Bleser <guru@unixtech.be> 1.0.0-1
- removed Packager and Distribution, injected by rpmmacros
- new upstream version

* Sat Feb 18 2006 Pascal Bleser <guru@unixtech.be> 0.14.1-1
- new upstream version

* Wed Dec 28 2005 Pascal Bleser <guru@unixtech.be> 0.14.0-3
- new package based on SUSE 10.0


openSUSE Build Service is sponsored by