File ARToolKitPlus.spec of Package ARToolKitPlus
#
# spec file for package ARToolKitPlus
#
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define major 2
Name: ARToolKitPlus
Version: 2.3.1
Release: 0
Summary: Augmented Reality Tracking Library
License: GPL-2.0-only
Group: Development/Libraries/C and C++
URL: https://github.com/paroj/artoolkitplus
Source0: https://launchpad.net/artoolkitplus/trunk/2.3.1/+download/%{name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE correct-install-path.patch -- Fix library and binary install paths
Patch0: correct-install-path.patch
BuildRequires: cmake
BuildRequires: dos2unix
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: libboost_headers-devel
%description
ARToolKit is a software library that can be used to calculate camera position and
orientation relative to physical markers in real time.
This enables the easy development of a wide range of Augmented Reality applications.
ARToolKitPlus is an extended version of ARToolKit's vision code that adds features,
but breaks compatibility due to a new class-based API.
%package utils
Summary: Augmented Reality Tracking Library utilities
Group: Development/Libraries/C and C++
Requires: lib%{name}%{major} = %{version}
%description utils
This package contains utilities for ARToolKitPlus.
%package -n lib%{name}%{major}
Summary: Augmented Reality Tracking Library
Group: Development/Libraries/C and C++
%description -n lib%{name}%{major}
ARToolKit is a software library that can be used to calculate camera position and
orientation relative to physical markers in real time.
This enables the easy development of a wide range of Augmented Reality applications.
ARToolKitPlus is an extended version of ARToolKit's vision code that adds features,
but breaks compatibility due to a new class-based API.
%package -n lib%{name}-devel
Summary: Augmented Reality Tracking Library headers
Group: Development/Libraries/C and C++
Requires: lib%{name}%{major} = %{version}
%description -n lib%{name}-devel
ARToolKit is a software library that can be used to calculate camera position and
orientation relative to physical markers in real time.
This enables the easy development of a wide range of Augmented Reality applications.
ARToolKitPlus is an extended version of ARToolKit's vision code that adds features,
but breaks compatibility due to a new class-based API.
%package doc
Summary: Augmented Reality Tracking Library documentation
Group: Development/Libraries/C and C++
BuildArch: noarch
%description doc
This package contains documentation for ARToolKitPlus.
%prep
%autosetup -p1
%build
pushd doc
doxygen artoolkitplus.doxy
ls -ahlp .
popd
%cmake -DARTK_BUILD_EXAMPLES=ON -DARTK_USE_BOOST=ON
%make_build
%install
%cmake_install
%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 -n lib%{name}%{major}
%license LICENSE.GPL AUTHORS
%{_libdir}/*.so.*
%files -n lib%{name}-devel
%{_libdir}/*.so
%{_includedir}/*
%files utils
%{_bindir}/*
%files doc
%doc doc/html
%changelog