File cal3d.spec of Package cal3d
#
# spec file for package cal3d
#
# 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/
#
# Please submit bugfixes or comments to toni@links2linux.de
%define major 12
Name: cal3d
Summary: A 3D character animation library
License: LGPL-2.1+
Group: System/Libraries
Version: 0.11.0
Release: 0
Url: http://home.gna.org/cal3d/
Source: %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM cal3d-0.11.0-abuild.patch adam@mizerski.pl -- Add missing C libraries
Patch: %{name}-0.11.0-abuild.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: docbook-toys
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: sgml-skel
Requires: lib%{name}%{major} = %{version}
%description
Cal3D is a skeletal based 3D character animation library written
in C++ in a platform-/graphic API-independent way. Originally
designed to be used in a 3D client for Worldforge, it evolved
into a stand-alone product which can be used in many different
kinds of projects. It supports combining animations and actions
through a 'mixer' interface, and work is currently underway to
integrate morph targets (interpolating between one mesh and
another, using the same vertex sequence) easily into the system.
Authors: see AUTHORS
%package -n lib%{name}%{major}
Summary: Shared libraries for cal3d
Group: System/Libraries
%description -n lib%{name}%{major}
Cal3D is a skeletal based 3D character animation library written
in C++ in a platform-/graphic API-independent way. Originally
designed to be used in a 3D client for Worldforge, it evolved
into a stand-alone product which can be used in many different
kinds of projects. It supports combining animations and actions
through a 'mixer' interface, and work is currently underway to
integrate morph targets (interpolating between one mesh and
another, using the same vertex sequence) easily into the system.
This package contains the shared libraries for cal3d.
Authors: see AUTHORS
%package -n lib%{name}-devel
Summary: Development files for cal3d
Group: Development/Libraries/C and C++
Requires: lib%{name}%{major} = %{version}
%description -n lib%{name}-devel
This package contains libraries, include files, and other resource
you can use to develop applications using animated characters with
cal3d.
Authors: see AUTHORS
%package doc
Summary: Documentation files for cal3D
Group: Documentation/HTML
Requires: %{name} = %{version}
%description doc
This package contains modeling documention and a users guide
for cal3d.
%prep
%setup -q %{name}-%{version}
%patch
autoreconf -fi
%build
%configure --disable-static
%__make %{?_smp_mflags}
pushd docs
%__make doc-guide
%__make doc-api
popd
%install
%makeinstall
%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 ChangeLog COPYING README TODO
%{_bindir}/cal3d_converter
%{_mandir}/man1/*
%files -n lib%{name}%{major}
%defattr(-,root,root)
%{_libdir}/lib*.so.*
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*
#%{_libdir}/lib*.a
%{_libdir}/lib*.la
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/%{name}.pc
%files doc
%defattr(-,root,root)
%doc docs/guide
%doc docs/api/html
%changelog