]> git.pld-linux.org Git - packages/cal3d.git/blob - cal3d.spec
- missing patch
[packages/cal3d.git] / cal3d.spec
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
5 Name:           cal3d
6 Version:        0.120
7 Release:        1
8 License:        LGPL v2.1+
9 Group:          Libraries
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)
26
27 %description
28 Cal3d is a 3d character animation library written in C++ in a
29 platform-/graphic API-independent way.
30
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
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.
38
39 %package devel
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}
45
46 %description devel
47 Header files for cal3d library.
48
49 %description devel -l hu.UTF-8
50 Fejléc fájlok a cal3d könyvtárhoz.
51
52 %description devel -l pl.UTF-8
53 Pliki nagłówkowe biblioteki cal3d.
54
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
66 %prep
67 %setup -q -n Cal3D-%{version}
68 cd cal3d
69 #%patch0 -p1
70 %patch1 -p1
71
72 # obsolete macro, UnitTest++ 2 uses pkg-config instead
73 %{__sed} -i -e '/^AM_USE_UNITTESTCPP/d' configure.in
74
75 %build
76 cd cal3d
77 %{__libtoolize}
78 %{__aclocal}
79 %{__autoheader}
80 %{__autoconf}
81 %{__automake}
82 %configure
83 %{__make}
84
85 cd docs
86 %{__make} doc-api
87 %{__make} doc-guide
88 cd ..
89 cp -r docs/api/html api
90
91 %install
92 rm -rf $RPM_BUILD_ROOT
93
94 %{__make} -C cal3d install \
95         DESTDIR=$RPM_BUILD_ROOT
96
97 # obsoleted by pkg-config
98 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcal3d.la
99
100 %clean
101 rm -rf $RPM_BUILD_ROOT
102
103 %post   -p /sbin/ldconfig
104 %postun -p /sbin/ldconfig
105
106 %files
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*
113
114 %files devel
115 %defattr(644,root,root,755)
116 %attr(755,root,root) %{_libdir}/libcal3d.so
117 %{_includedir}/cal3d
118 %{_pkgconfigdir}/cal3d.pc
119
120 %files apidocs
121 %defattr(644,root,root,755)
122 %doc cal3d/{api,docs/guide}
This page took 0.074127 seconds and 4 git commands to generate.