1 # TODO: what are the differences between cal3d and imvu-cal3d fork? (both included in tarball)
2 Summary: 3d character animation library
3 Summary(hu.UTF-8): 3D karakter animáció könyvtára
4 Summary(pl.UTF-8): Biblioteka do trójwymiarowej animacji postaci
10 #Source0Download: https://github.com/mp3butcher/Cal3D/releases
11 Source0: https://github.com/mp3butcher/Cal3D/archive/%{version}/%{name}-%{version}.tar.gz
12 # Source0-md5: 8d914c71119a0a988a582c4bc6a24b53
13 Patch0: %{name}-fixtag.patch
14 Patch1: %{name}-cpp.patch
15 URL: https://mp3butcher.github.io/Cal3D/
16 BuildRequires: autoconf
17 BuildRequires: automake
18 BuildRequires: docbook-dtd31-sgml
19 BuildRequires: docbook-utils
20 BuildRequires: doxygen
21 BuildRequires: libstdc++-devel
22 BuildRequires: libtool
23 BuildRequires: sed >= 4.0
24 BuildRequires: scrollkeeper
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 Cal3d is a 3d character animation library written in C++ in a
29 platform-/graphic API-independent way.
31 %description -l hu.UTF-8
32 Cal3d egy C++-ban íródott 3d karakter-animációs könyvtár
33 platform/grafikus API-független módon.
35 %description -l pl.UTF-8
36 Cal3d jest biblioteką do trójwymiarowej animacji postaci napisaną w
37 C++ w sposób niezależny od architektury.
40 Summary: Header files for cal3d library
41 Summary(hu.UTF-8): Fejléc fájlok a cal3d könyvtárhoz
42 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki cal3d
43 Group: Development/Libraries
44 Requires: %{name} = %{version}-%{release}
47 Header files for cal3d library.
49 %description devel -l hu.UTF-8
50 Fejléc fájlok a cal3d könyvtárhoz.
52 %description devel -l pl.UTF-8
53 Pliki nagłówkowe biblioteki cal3d.
56 Summary: API documentation and guide for cal3d library
57 Summary(pl.UTF-8): Dokumentacja i wprowadzenie do biblioteki cal3d
61 API documentation and guide for cal3d library.
63 %description apidocs -l pl.UTF-8
64 Dokumentacja i wprowadzenie do biblioteki cal3d.
67 %setup -q -n Cal3D-%{version}
72 # obsolete macro, UnitTest++ 2 uses pkg-config instead
73 %{__sed} -i -e '/^AM_USE_UNITTESTCPP/d' configure.in
89 cp -r docs/api/html api
92 rm -rf $RPM_BUILD_ROOT
94 %{__make} -C cal3d install \
95 DESTDIR=$RPM_BUILD_ROOT
97 # obsoleted by pkg-config
98 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcal3d.la
101 rm -rf $RPM_BUILD_ROOT
103 %post -p /sbin/ldconfig
104 %postun -p /sbin/ldconfig
107 %defattr(644,root,root,755)
108 %doc cal3d/{AUTHORS,ChangeLog,README,TODO}
109 %attr(755,root,root) %{_bindir}/cal3d_converter
110 %attr(755,root,root) %{_libdir}/libcal3d.so.*.*.*
111 %attr(755,root,root) %ghost %{_libdir}/libcal3d.so.12
112 %{_mandir}/man1/cal3d*
115 %defattr(644,root,root,755)
116 %attr(755,root,root) %{_libdir}/libcal3d.so
118 %{_pkgconfigdir}/cal3d.pc
121 %defattr(644,root,root,755)
122 %doc cal3d/{api,docs/guide}