[suggest] Update for Cal3D library

Vincent Knecht vknecht at club-internet.fr
Tue Jul 25 19:38:15 CEST 2006


  here's a .spec for cal3d 0.11.0;
I made the guide a separate package, not being sure how to integrate it 
in -devel or base package without having to manually %{__cp} and %{__install}
in %install section. Also didn't add conflicting information with cal3d091 
package nor made %name different from %real_name...

-------------- next part --------------
# Authority: dries
# Upstream: Bruno 'Beosil' Heidelberger <beosil$swileys,com>

%define real_name cal3d

Summary: Skeletal based character animation library
Name: cal3d
Version: 0.11.0
Release: 1.rf
License: LGPL
Group: System Environment/Libraries
URL: http://home.gna.org/cal3d/

Packager: Dries Verachtert <dries at ulyssis.org>
Vendor: Dag Apt Repository, http://dag.wieers.com/apt/

Source: http://download.gna.org/cal3d/sources/%{real_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: gcc-c++ docbook-utils doxygen

Cal3D is a skeletal based 3d character animation library written in C++ in a
platform/graphic API-independent way.

%package devel
Summary: Header files, libraries and development documentation for %{name}.
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}

%description devel
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.

%package guide
Summary: Guide for %{name}.
### (vk) not sure if it should be Documentation or Development/...
Group: Documentation
Requires: %{name}-devel = %{version}-%{release}

%description guide
This package contains the HTML guide for development with Cal3D.

%setup -n %{real_name}-%{version}

%configure --enable-static
%{__make} %{?_smp_mflags}
( cd docs && %{__make} doc-guide && %{__make} doc-api )

%{__rm} -rf %{buildroot}

%{__rm} -rf %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%defattr(-, root, root, 0755)
%doc AUTHORS ChangeLog COPYING fileformats.txt README TODO

%files devel
%defattr(-, root, root, 0755)
%doc docs/api/html/*
%exclude %{_libdir}/*.la

%files guide
%defattr(-, root, root, 0755)
%doc docs/guide/*

* Mon Jul 24 2006 Vincent Knecht <vknecht at users.sourceforge.net> - 0.11.0-1
- Updated for Cal3D 0.11.0 and new location at gna.
- Added API documentation and guide.

* Thu Oct 06 2005 Dries Verachtert <dries at ulyssis.org> - 0.9.1-1 - 3652/dries
- Initial package.

More information about the users mailing list