-#
-# TODO:
-# - remove openoffice-lib dependence,
-# - maybe some fix at %prep,
-# - polish description,
-# - more BRs ?,
-Summary: indexing tool to manage cds collection
-Summary(pl): program do katalogowania p³yt cd
+Summary: Indexing tool to manage cds collection
+Summary(pl.UTF-8): Program do katalogowania płyt CD
Name: biblos
Version: 0.35
-Release: 0.1
-License: GPL
+Release: 1
+License: GPL or QPL
Group: X11/Applications
Source0: http://biblos.f2g.net/%{name}-%{version}.tar.gz
+# Source0-md5: eb430f123edd636ab1e75e7b56252034
Source1: %{name}.desktop
+Patch0: %{name}-qt_mt.patch
URL: http://biblos.f2g.net/
+BuildRequires: expat-devel
+BuildRequires: qmake
+BuildRequires: libstdc++-devel
BuildRequires: qt-devel >= 3.0.5
+BuildRequires: zlib-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Biblos is intended to be an easy to use file indexing tool that
-can manage your mp3 collection , your cds collection and even
-local directories. It is distributed under GNU Public License
-(for a copy go to http://www.gnu.org/) and Q Public License
-(see http://www.trolltech.com/) and it is a work in progress .
-The following things are not implemented :
-
+Biblos is intended to be an easy to use file indexing tool that
+can manage your MP3 collection, your cds collection and even
+local directories. It is distributed under GNU General Public License
+and Q Public License and it is a work in progress. The following
+things are not implemented:
+
- Delete object button
- Properties button
- Biblos Manual button
- the program does not index links
-%description -l pl
+%description -l pl.UTF-8
+Biblos ma być łatwym w użyciu narzędziem do indeksowania plików,
+mogącym zarządzać kolekcją plików MP3, płyt CD lub nawet lokalnymi
+katalogami. Jest rozpowszechniany na Powszechnej Licencji Publicznej
+GNU (GPL) oraz Licencji Publicznej Q (QPL, Q Public License) i jest
+w trakcie tworzenia. Następujące rzeczy jeszcze nie zostały
+zaimplementowane:
+
+- przycisk usuwania obiektu
+- przycisk właściwości
+- przycisk podręcznika
+- program nie indeksuje dowiązań
%prep
-rm -rf ../BUILD/%{name}-%{version}
-tar -zxf %{SOURCE0} -C ../BUILD
-chmod 700 ../BUILD/%{name}-%{version}
-cd ../BUILD/%{name}-%{version}
-chmod 700 images mc help
+%setup -qcT
+tar xzf %{SOURCE0} -C .
+chmod -R +x %{name}-%{version}
+%patch0 -p0
%build
-cd %{name}-%{version}
-qmake
+mv %{name}-%{version}/* .
+qmake biblos.pro
%{__make} QTDIR="/usr" CFLAGS="%{rpmcflags}" CXXFLAGS="%{rpmcflags}"
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_pixmapsdir},%{_applnkdir}/Utilities/}
-
-cd %{name}-%{version}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_pixmapsdir},%{_desktopdir}}
install %{name} $RPM_BUILD_ROOT%{_bindir}
-install images/logo.jpg $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}-logo.jpg
-install %{SOURCE1} $RPM_BUILD_ROOT/%{_applnkdir}/Utilities/
+install images/logo.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}-logo.png
+install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc %{name}-%{version}/doc
+%doc doc/{AUTHORS,HISTORY,TODO,WARNING,WHATIS}
%attr(755,root,root) %{_bindir}/*
%{_pixmapsdir}/*
+%{_desktopdir}/*.desktop