]>
Commit | Line | Data |
---|---|---|
be9f4a22 | 1 | # TODO: what are the differences between cal3d and imvu-cal3d fork? (both included in tarball) |
f4c86d93 | 2 | Summary: 3d character animation library |
57fea3ef | 3 | Summary(hu.UTF-8): 3D karakter animáció könyvtára |
84926d0b | 4 | Summary(pl.UTF-8): Biblioteka do trójwymiarowej animacji postaci |
f4c86d93 | 5 | Name: cal3d |
be9f4a22 | 6 | Version: 0.120 |
ee7af7fc | 7 | Release: 1 |
be9f4a22 | 8 | License: LGPL v2.1+ |
f4c86d93 | 9 | Group: Libraries |
be9f4a22 JB |
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 | |
cfc092bc | 13 | Patch0: %{name}-fixtag.patch |
be9f4a22 JB |
14 | Patch1: %{name}-cpp.patch |
15 | URL: https://mp3butcher.github.io/Cal3D/ | |
f4c86d93 | 16 | BuildRequires: autoconf |
17 | BuildRequires: automake | |
9bfe1e3a | 18 | BuildRequires: docbook-dtd31-sgml |
f4c86d93 | 19 | BuildRequires: docbook-utils |
20 | BuildRequires: doxygen | |
3a897567 | 21 | BuildRequires: libstdc++-devel |
f4c86d93 | 22 | BuildRequires: libtool |
be9f4a22 | 23 | BuildRequires: sed >= 4.0 |
8a89e9c7 | 24 | BuildRequires: scrollkeeper |
f4c86d93 | 25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
28 | Cal3d is a 3d character animation library written in C++ in a | |
29 | platform-/graphic API-independent way. | |
30 | ||
57fea3ef ZU |
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. | |
34 | ||
1d58c746 JR |
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. | |
f4c86d93 | 38 | |
39 | %package devel | |
40 | Summary: Header files for cal3d library | |
57fea3ef | 41 | Summary(hu.UTF-8): Fejléc fájlok a cal3d könyvtárhoz |
84926d0b | 42 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki cal3d |
f4c86d93 | 43 | Group: Development/Libraries |
f941d9f0 | 44 | Requires: %{name} = %{version}-%{release} |
f4c86d93 | 45 | |
46 | %description devel | |
47 | Header files for cal3d library. | |
48 | ||
57fea3ef ZU |
49 | %description devel -l hu.UTF-8 |
50 | Fejléc fájlok a cal3d könyvtárhoz. | |
51 | ||
1d58c746 JR |
52 | %description devel -l pl.UTF-8 |
53 | Pliki nagłówkowe biblioteki cal3d. | |
f4c86d93 | 54 | |
be9f4a22 JB |
55 | %package apidocs |
56 | Summary: API documentation and guide for cal3d library | |
57 | Summary(pl.UTF-8): Dokumentacja i wprowadzenie do biblioteki cal3d | |
58 | Group: Documentation | |
59 | ||
60 | %description apidocs | |
61 | API documentation and guide for cal3d library. | |
62 | ||
63 | %description apidocs -l pl.UTF-8 | |
64 | Dokumentacja i wprowadzenie do biblioteki cal3d. | |
65 | ||
f4c86d93 | 66 | %prep |
be9f4a22 JB |
67 | %setup -q -n Cal3D-%{version} |
68 | cd cal3d | |
91b3cd2b | 69 | #%patch0 -p1 |
be059ffc | 70 | %patch1 -p1 |
f4c86d93 | 71 | |
be9f4a22 JB |
72 | # obsolete macro, UnitTest++ 2 uses pkg-config instead |
73 | %{__sed} -i -e '/^AM_USE_UNITTESTCPP/d' configure.in | |
74 | ||
f4c86d93 | 75 | %build |
be9f4a22 | 76 | cd cal3d |
f4c86d93 | 77 | %{__libtoolize} |
be9f4a22 | 78 | %{__aclocal} |
f4c86d93 | 79 | %{__autoheader} |
80 | %{__autoconf} | |
81 | %{__automake} | |
82 | %configure | |
83 | %{__make} | |
84 | ||
85 | cd docs | |
86 | %{__make} doc-api | |
87 | %{__make} doc-guide | |
ee7af7fc JK |
88 | cd .. |
89 | cp -r docs/api/html api | |
f4c86d93 | 90 | |
91 | %install | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
be9f4a22 | 94 | %{__make} -C cal3d install \ |
f4c86d93 | 95 | DESTDIR=$RPM_BUILD_ROOT |
96 | ||
be9f4a22 JB |
97 | # obsoleted by pkg-config |
98 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcal3d.la | |
99 | ||
f4c86d93 | 100 | %clean |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
eae1215a | 103 | %post -p /sbin/ldconfig |
104 | %postun -p /sbin/ldconfig | |
105 | ||
f4c86d93 | 106 | %files |
107 | %defattr(644,root,root,755) | |
be9f4a22 JB |
108 | %doc cal3d/{AUTHORS,ChangeLog,README,TODO} |
109 | %attr(755,root,root) %{_bindir}/cal3d_converter | |
110 | %attr(755,root,root) %{_libdir}/libcal3d.so.*.*.* | |
eae1215a | 111 | %attr(755,root,root) %ghost %{_libdir}/libcal3d.so.12 |
91b3cd2b | 112 | %{_mandir}/man1/cal3d* |
f4c86d93 | 113 | |
114 | %files devel | |
115 | %defattr(644,root,root,755) | |
f4c86d93 | 116 | %attr(755,root,root) %{_libdir}/libcal3d.so |
be9f4a22 JB |
117 | %{_includedir}/cal3d |
118 | %{_pkgconfigdir}/cal3d.pc | |
119 | ||
120 | %files apidocs | |
121 | %defattr(644,root,root,755) | |
122 | %doc cal3d/{api,docs/guide} |