Package not found: openSUSE:Factory:Staging:adi:7/akonadi-mime

File artoolkitx.spec of Package artoolkitx

#
# spec file for package artoolkitx
#
# Copyright (c) 2021 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 so_ver 1
Name:           artoolkitx
Version:        1.0.6.1
Release:        0
Summary:        Augmented Reality Tracking Library
License:        GPL-3.0-only
Group:          Development/Libraries/C and C++
URL:            https://www.artoolkitx.org/
Source:         https://github.com/artoolkitx/artoolkitx/archive/refs/tags/{%version}.tar.gz#/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM fix-cmake-find-deps.patch -- https://github.com/artoolkitx/artoolkitx/issues/128
Patch0:         fix-cmake-find-deps.patch
# PATCH-FEATURE-UPSTREAM fix-libsuffix.patch -- https://github.com/artoolkitx/artoolkitx/issues/127
Patch1:         fix-libsuffix.patch
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  opencv-devel
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(gl)
BuildRequires:  pkgconfig(glesv2)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gstreamer-1.0)
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(libdc1394-2)
BuildRequires:  pkgconfig(libssl)
BuildRequires:  pkgconfig(libturbojpeg)
BuildRequires:  pkgconfig(libudev)
BuildRequires:  pkgconfig(sdl2)
BuildRequires:  pkgconfig(sqlite3)
BuildRequires:  pkgconfig(zlib)

%package -n libARX%{so_ver}
Summary:        Augmented Reality Tracking Library
Group:          System/Libraries

%package devel
Summary:        Augmented Reality Tracking devel files
Group:          Development/Libraries/C and C++
Requires:       libARX%{so_ver} = %{version}

%description
artoolkitX is a new open source project that has been created to continue support
for the ARToolKit community and to ensure that future generations of augmented
reality developers will have access to, and understanding of,
the underlying algorithms that drive this innovative technology.

%description -n libARX%{so_ver}
This package contains the runtime library.

%description devel
This package contains the development files, like headers and tools.

%prep
%autosetup -p1

%build
pushd Source
%cmake
%cmake_build
popd

%install
pushd Source
%cmake_install
popd

%post -n libARX%{so_ver} -p /sbin/ldconfig    
%postun -n libARX%{so_ver} -p /sbin/ldconfig

%files -n libARX%{so_ver}
%license LICENSE.txt
%{_libdir}/libARX.so.*

%files devel
%{_bindir}/%{name}*
%{_includedir}/ARX
%{_libdir}/libARX.so
%{_prefix}/lib/ARX

%changelog
openSUSE Build Service is sponsored by