File mando.spec of Package mando

#
# spec file for package mando (Version 1.6.0)
#
# Copyright (c) 2007 SuSE Linux AG, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bug fixes or comments via http://www.suse.de/feedback/
#

# norootforbuild

%define _prefix	/usr
%define rversion 1.6
%define rrelease 3.1
%define releasesuffix suse%(echo "%{suse_version}" | %__sed -e 's/.$//')DSB

Name:		mando
Version:	1.6.0
Release:	%{rrelease}%{releasesuffix}
%if %suse_version < 1020
Distribution:	SUSE Linux %(echo "%{suse_version}" | %__sed -e 's/.$//' -e ':a;s/\(.$\)/\.\1/g')
%else
Distribution:	openSUSE %(echo "%{suse_version}" | %__sed -e 's/.$//' -e ':a;s/\(.$\)/\.\1/g')
%endif
Summary:	Interactive Camera-Projector System
Source:		%{name}-%{rversion}.tar.bz2
Source1:	%{name}.desktop
URL:		http://vision.eng.shu.ac.uk/mediawiki/index.php/Interactive_Camera-Projector_System
Packager:	Donnie S Bhayangkara - http://donnie.110mb.com
Group:		Productivity/Office/Other
License:	GPL v3 or Later
BuildRoot:	%{_tmppath}/build-%{name}-%{version}
BuildRequires:	autoconf automake libtool libxslt
BuildRequires: 	lapack blas Mesa-devel libqt4-devel
BuildRequires: 	libstdc++-devel f2c boost-devel freeglut-devel
BuildRequires:	fftw3-devel update-desktop-files libdc1394-devel
%if %suse_version <= 1030
BuildRequires:	libgfortran42 gcc42-fortran gcc42 gcc42-c++ gcc-fortran libdc1394_control12-devel
%else
BuildRequires:	libgfortran43 gcc43-fortran gcc43 gcc43-c++ gcc-fortran libdc1394_control12-devel
%endif
Requires: 	lapack blas boost freeglut fftw3
Requires:	libqt4 libqt4-x11 libdc1394

%description
A software for camera-projector interaction.
The software makes use of a low cost off-the shelf webcam that is calibrated
against a standard projector screen. The webcam is used to determine the
position of physical pointer (e.g. a pen) which is then used to virtually move
the X11 pointer. Point-and-click functionality has also been implemented.

Authors:
--------
	Juan Roldan <juan.roldan@gmail.com>
	Ushakiran Soutapalli <ushakiron_s@yahoo.co.in>
	Julien Faucher <faucherj@gmail.com>
	Jan Wedekind <jan@wedesoft.de>

%if !0%{?opensuse_bs}
%debug_package
%endif
%prep
%setup -q -n "%{name}-%{rversion}"
%{?suse_update_config:%{suse_update_config -f}}

%build

%configure

%__make %{?jobs:-j%{jobs}}

%install
%makeinstall

%__install -D -m 0644 "%{_builddir}/%{name}-%{rversion}/mandologo.png" "%{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png"
%__install -D -m 0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop"

%suse_update_desktop_file -G "Interactive Camera-Projector System" -r "%{name}" Qt Utility Accessibility

find %{buildroot} -type f -o -type l | sed "s|^%{buildroot}||" >master.list

%if %suse_version < 930
%__strip "%{buildroot}%{_bindir}"/*
%endif

%clean
%__rm -rf "%{buildroot}"

%files -f master.list
%defattr(-,root,root)
%doc ChangeLog COPYING

%changelog
* Thu Feb 7 2008 Donnie S Bhayangkara <dsbhayangkara@gmail.com> 1.6.0
- new upstream release
* Thu Feb 7 2008 Donnie S Bhayangkara <dsbhayangkara@gmail.com> 1.5.0
- new upstream release
* Sun Apr 15 2007 Donnie S Bhayangkara <dsbhayangkara@gmail.com> 1.4.0
- new upstream release:
  * Added spin-box for selecting camera channel.
  * GUI now has sliders for adjusting brightness, contrast, and others.
* Tue Mar 27 2007 Donnie S Bhayangkara <dsbhayangkara@gmail.com> 1.3.0
- new upstream release:
  * Added some explanation about capturing reference image.
  * Distorted e-mails because of spam.
- added GenericName to %%{name}.desktop file
* Mon Feb 12 2007 Donnie S Bhayangkara <dsbhayangkara@gmail.com> 1.2
- new upstream release
- fixed group
- removed rm %%{_builddir}/%%{name}-1.2/qrc_mando.cc rm
  %%{_builddir}/%%{name}-1.2/moc_*.cc rm %%{_builddir}/%%{name}-1.2/ui_*.hh line
- added update-desktop-files to BuildRequires
* Sat Feb 3 2007 Donnie S Bhayangkara <dsbhayangkara@gmail.com> 1.0
- initial release

# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End:
openSUSE Build Service is sponsored by