-Summary: indexing tool to manage cds collection
-Summary(pl): program do katalogowania p³yt cd
+Summary: Indexing tool to manage cds collection
+Summary(pl): 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
+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
-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},%{_datadir}/%{name}}
-
-cd %{name}-%{version}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_pixmapsdir},%{_desktopdir}}
install %{name} $RPM_BUILD_ROOT%{_bindir}
-install -d {images,help,mc} $RPM_BUILD_ROOT%{_datadir}/%{name}
+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}/*
-%{_datadir}/%{name}
+%{_pixmapsdir}/*
+%{_desktopdir}/*.desktop