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

File osgcal.spec of Package osgcal

#
# spec file for package osgcal
#
# Copyright (c) 2016 SUSE LINUX 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 libname osgCal
Name:           osgcal
Version:        0.1.46
Release:        0
Summary:        Adapter to use the cal3d inside OpenSceneGraph
License:        LGPL-2.1
Group:          Development/Libraries/X11
Url:            http://gna.org/projects/underware
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)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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
%setup -q -n lib%{name}%{major}-%{version}
%patch0 -p1
%patch1 -p1

%build
%configure --enable-gifplugin --disable-static
make %{?_smp_mflags}

%install
make %{?_smp_mflags} DESTDIR=%{buildroot} 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
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING LGPL README
%{_bindir}/osgcal
%{_datadir}/osgcal
%{_mandir}/man1/%{name}.1%{ext_man}

%files -n lib%{libname}%{major}
%defattr(-,root,root)
%{_libdir}/*.so.*

%files -n lib%{libname}-devel
%defattr(-,root,root)
%{_includedir}/osgCal/
%{_includedir}/osg*.h
%{_libdir}/*.so
%{_libdir}/*.la
%{_libdir}/pkgconfig/%{name}.pc

%changelog