Summary: A multichannel interactive streaming solution Name: palantir Version: 2.6 Release: 2 License: GPL Packager: Tim Niemueller Group: System Environment/Daemons Source0: %{name}-%{version}.tgz Source1: %{name}.logrotate Source2: %{name}-httpd.conf Source3: %{name}-index.php Patch0: %{name}-2.6-makefile.patch Patch1: %{name}-2.6-qtclient.patch URL: http://www.fastpath.it/products/palantir/ Prefix: %{_prefix} BuildRoot: %{_tmppath}/%{name}-root BuildRequires: libjpeg-devel %define build_javaclient %{?_with_javaclient:1}%{!?_with_javaclient:0} %define build_qtclient %{?_with_qtclient:1}%{!?_with_qtclient:0} %description Palantir is a client-server streaming system designed to transmit live video, audio and data over a TCP/IP network, as well as to control remote devices. It is named after a word invented by J. R. R. Tolkien and mentioned in his tales, whose meaning is far-seer. The correct pronounciation requires the "i" in "tir" to be accented. --with javaclient: build Java-based web-client --with qtclient: build Qt-based client %if %build_javaclient %package java-client Group: Applications/Internet Summary: Java client and apache conf for Palantir Requires: httpd php BuildRequires: j2sdk %description java-client This package includes the Java applet and a basic httpd config to allow viewing your Palantir stream from any remote machine. %endif %if %build_qtclient %package qt-client Group: Applications/Internet Summary: Qt client for Palantir Requires: qt >= 3.3.6 BuildRequires: qt-devel >= 3.3.6 %description qt-client This package includes a Qt application to view Palantir streams. %endif %prep %setup -n %{name}-%{version} %patch0 -p1 %if %build_qtclient %patch1 -p1 %endif %build cd server make %if %build_javaclient cd ../clients/java make cd ../../server %endif %if %build_qtclient cd ../clients/qt make ICONDIR=%{_datadir}/pixmaps/palantir cd ../../server %endif %install rm -rf %{buildroot} mkdir -p %{buildroot} cd server make DESTDIR=%{buildroot} install mkdir -p %{buildroot}/etc/logrotate.d install -m 644 %SOURCE1 %{buildroot}/etc/logrotate.d/%{name} %if %build_javaclient cd ../clients/java mkdir -p %{buildroot}%{_datadir}/%{name}-webroot install -m 644 *.class %{buildroot}%{_datadir}/%{name}-webroot install -m 644 index.html %{buildroot}%{_datadir}/%{name}-webroot/index.orig.html install -m 644 %SOURCE3 %{buildroot}%{_datadir}/%{name}-webroot/index.php mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d install -m 644 %SOURCE2 %{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.conf cd ../../server %endif %if %build_qtclient cd ../clients/qt mkdir -p %{buildroot}%{_datadir}/pixmaps/%{name} install -m 644 icons/*.bmp %{buildroot}%{_datadir}/pixmaps/%{name} install -m 755 pclient %{buildroot}%{_bindir} cd ../../server %endif %clean rm -rf %{buildroot} %files %defattr(-,root,root) %{_bindir}/* %{_datadir}/%{name} %config(noreplace) %{_sysconfdir}/palantir.conf %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %{_mandir}/*/* %doc server/README server/doc/* server/man/html* server/TODO server/INSTALL server/COPYING %if %build_javaclient %files java-client %config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf %{_datadir}/%{name}-webroot %doc clients/java/README %endif %if %build_qtclient %files qt-client %{_datadir}/pixmaps/%{name} %{_bindir}/pclient %doc clients/qt/README %endif %changelog * Fri Aug 04 2006 Tim Niemueller 2.6-2 - Fixed rpmlint warnings * Mon Jul 24 2006 Tim Niemueller 2.6-1 - Upgraded to Palantir 2.6 - Added support for Qt client - Rebuild for Fedora Extras 5 * Mon Mar 15 2004 Tim Niemueller - Added PHP dependency and PHP index page for Java client - Fixed apache config file * Wed Mar 10 2004 Tim Niemueller - Initial rpm release - Wrote spec file and compiled