A new user interface for you! Read more...

File osgART.spec of Package osgART

#
# spec file for package osgART
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%define major 0
%define osg_version 2.0
Name:           osgART
Summary:        Adapter to use the ARToolKit inside OpenSceneGraph
License:        GPL-2.0
Group:          Development/Libraries/X11
Version:        2.0.0
Release:        2.8
Source0:        %{name}-%{version}.tar.gz
Url:            http://www.artoolworks.com/community/osgart/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       lib%{name}%{major}
BuildRequires:  freeglut-devel
BuildRequires:  gcc-c++
BuildRequires:  libARToolKitPlus-devel
BuildRequires:  libOpenSceneGraph-devel = 3.2

%description
OSGART is a library that simplifies the development of Augmented Reality or Mixed Reality applications by combining the well-known ARToolKit tracking library with OpenSceneGraph. But rather than acting just as a simple nodekit, the library offers 3 main functionalities: high level integration of video input (video object, shaders), spatial registration (marker-based, multiple trackers), and photometric registration (occlusion, shadow).

%package -n lib%{name}%{major}
Summary:        Adapter to use the ARToolKit inside OpenSceneGraph
Group:          Development/Libraries/X11

%description -n lib%{name}%{major}
OSGART is a library that simplifies the development of Augmented Reality or Mixed Reality applications by combining the well-known ARToolKit tracking library with OpenSceneGraph. But rather than acting just as a simple nodekit, the library offers 3 main functionalities: high level integration of video input (video object, shaders), spatial registration (marker-based, multiple trackers), and photometric registration (occlusion, shadow).

%package -n lib%{name}-devel
Summary:        Adapter to use the ARToolKit inside OpenSceneGraph headers
Group:          Development/Libraries/X11
Requires:       lib%{name}%{major} = %{version}

%description -n lib%{name}-devel
This package contains files that are needed for development using osgART.

%prep
%setup0 -q
%patch0 -p1
#%patch1 -p1
%patch2 -p1
pushd bin
#bakefile -f gnu osgART.bkl
%__cp %{SOURCE1} .
popd

%build
export CPPFLAGS="$RPM_OPT_FLAGS"
pushd bin
%__make %{?_smp_mflags}
popd

%install
#%__install -D -d %buildroot%{_libdir}/osgPlugins-%{osg_version}
#%__mv bin/osgart*.so %buildroot%{_libdir}/osgPlugins-%{osg_version}/
#%__mv bin/lib*.so* %buildroot%{_libdir}/
#%__install -D -d %buildroot%{_includedir}/
#%__cp -r include/%{name} %buildroot%{_includedir}/

%post -n lib%{name}%{major} -p /sbin/ldconfig
%postun -n lib%{name}%{major} -p /sbin/ldconfig
%post -n lib%{name}-devel -p /sbin/ldconfig
%postun -n lib%{name}-devel -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc AUTHORS LICENSE.txt README

%files -n lib%{name}%{major}
%defattr(-,root,root)
#%{_libdir}/*.so.*
#%dir %{_libdir}/osgPlugins-%{osg_version}
#%{_libdir}/osgPlugins-%{osg_version}/*.so

%files -n lib%{name}-devel
%defattr(-,root,root)
#%{_libdir}/*.so
#%dir %{_includedir}/%{name}
#%{_includedir}/%{name}/*

%changelog
* Sun May 16 2010 adam@mizerski.pl
- new package