File osgcal.spec of Package osgcal
#
# spec file for package osgcal
#
# 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 0
%define libname osgCal
Name: osgcal
Version: 0.1.46
Release: 0
Summary: Adapter to use the cal3d inside OpenSceneGraph
License: LGPL-2.1-only
Group: Development/Libraries/X11
URL: https://osgcal.sourceforge.net/
Source: lib%{name}%{major}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM osgcal-0.1.44-abuild.patch adam@mizerski.pl -- Adds missing C libraries
Patch0: %{name}-0.1.44-abuild.patch
# PATCH-FIX-UPSTREAM fix-return-type.patch
Patch1: fix-return-type.patch
BuildRequires: Mesa-devel
BuildRequires: SDL-devel
BuildRequires: cal3d-devel
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: giflib-devel
BuildRequires: libOpenSceneGraph-devel = 1.2
BuildRequires: libOpenThreads-devel = 1.5.0
BuildRequires: libProducer-devel = 1.1.0
BuildRequires: pkgconfig
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(libxml-2.0)
%description
osgCal is an adapter to use the cal3d character animation library
(http://gna.org/projects/cal3d/) inside the OpenSceneGraph OpenGL based
3D scene graph (http://www.openscenegraph.org).
%package -n lib%{libname}%{major}
Summary: Adapter to use the cal3d inside OpenSceneGraph
Group: Development/Libraries/X11
%description -n lib%{libname}%{major}
osgCal is an adapter to use the cal3d character animation library
(http://gna.org/projects/cal3d/) inside the OpenSceneGraph OpenGL based
3D scene graph (http://www.openscenegraph.org).
%package -n lib%{libname}-devel
Summary: Library development files for osgcal
Group: Development/Libraries/X11
Requires: cal3d-devel
Requires: glibc-devel
Requires: lib%{libname}%{major} = %{version}
Requires: libOpenSceneGraph-devel
Requires: pkgconfig
Requires: zlib-devel
Requires: pkgconfig(glib-2.0)
Requires: pkgconfig(libxml-2.0)
%description -n lib%{libname}-devel
This package contains headers and libraries required to build applications that
use osgcal.
%prep
%autosetup -n lib%{name}%{major}-%{version} -p1
%build
%configure --enable-gifplugin --disable-static
%make_build
%install
%make_install
cp osgcal.h osgviewer.h %{buildroot}%{_includedir}/
%fdupes %{buildroot}%{_datadir}
%post -n lib%{libname}%{major} -p /sbin/ldconfig
%postun -n lib%{libname}%{major} -p /sbin/ldconfig
%files
%license COPYING
%doc AUTHORS ChangeLog LGPL README
%{_bindir}/osgcal
%{_datadir}/osgcal
%{_mandir}/man1/%{name}.1%{?ext_man}
%files -n lib%{libname}%{major}
%{_libdir}/*.so.*
%files -n lib%{libname}-devel
%{_includedir}/osgCal/
%{_includedir}/osg*.h
%{_libdir}/*.so
%{_libdir}/*.la
%{_libdir}/pkgconfig/%{name}.pc
%changelog