]>
Commit | Line | Data |
---|---|---|
cedb230c | 1 | Summary: glm - Alias Wavefront OBJ File Reader/Viewer Library |
05343329 | 2 | Summary(pl.UTF-8): glm - biblioteka do odczytu i przeglądania plików OBJ Alias Wavefront |
5f5e4d53 | 3 | Name: glm |
3d9c9aab AM |
4 | Version: 0.3.2 |
5 | Release: 1 | |
5f5e4d53 MP |
6 | License: GPL v2 |
7 | Group: Libraries | |
8 | Source0: http://devernay.free.fr/hacks/glm/%{name}-%{version}.tar.gz | |
3d9c9aab AM |
9 | # Source0-md5: 63836fce687ac5ed2108d7bc889db71f |
10 | Patch0: %{name}-build.patch | |
5f5e4d53 | 11 | URL: http://devernay.free.fr/hacks/glm/ |
3d9c9aab | 12 | BuildRequires: autoconf |
cedb230c | 13 | BuildRequires: automake |
5f5e4d53 MP |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
15 | ||
16 | %description | |
17 | glm is an Alias Wavefront OBJ File Reader/Viewer Library. | |
18 | ||
98020728 JR |
19 | %description -l pl.UTF-8 |
20 | glm to biblioteka do odczytu i przeglądania plików OBJ Alias | |
cedb230c JB |
21 | Wavefront. |
22 | ||
23 | %package devel | |
24 | Summary: Header file for glm library | |
05343329 | 25 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki glm |
cedb230c JB |
26 | Group: Development/Libraries |
27 | Requires: %{name} = %{version}-%{release} | |
28 | ||
29 | %description devel | |
30 | Header file for glm library. | |
31 | ||
98020728 JR |
32 | %description devel -l pl.UTF-8 |
33 | Plik nagłówkowy biblioteki glm. | |
cedb230c JB |
34 | |
35 | %package static | |
36 | Summary: Static glm library | |
05343329 | 37 | Summary(pl.UTF-8): Statyczna biblioteka glm |
cedb230c JB |
38 | Group: Development/Libraries |
39 | Requires: %{name}-devel = %{version}-%{release} | |
40 | ||
41 | %description static | |
42 | Static glm library. | |
43 | ||
98020728 | 44 | %description static -l pl.UTF-8 |
cedb230c JB |
45 | Statyczna biblioteka glm. |
46 | ||
5f5e4d53 | 47 | %package examples |
cedb230c | 48 | Summary: glm examples |
05343329 | 49 | Summary(pl.UTF-8): Przykłady do glm |
5f5e4d53 MP |
50 | Group: Development/Libraries |
51 | #Requires: %{name} = %{version}-%{release} | |
52 | ||
53 | %description examples | |
54 | This is the package containing the examples, both binary and source. | |
55 | ||
98020728 JR |
56 | %description examples -l pl.UTF-8 |
57 | Ten pakiet zawiera przykłady w postaci źródeł i binariów. | |
cedb230c | 58 | |
5f5e4d53 MP |
59 | %prep |
60 | %setup -q | |
3d9c9aab | 61 | %patch0 -p1 |
5f5e4d53 MP |
62 | |
63 | %build | |
3d9c9aab AM |
64 | %{__aclocal} |
65 | %{__autoconf} | |
66 | %{__automake} | |
5f5e4d53 MP |
67 | %configure \ |
68 | --enable-shared \ | |
69 | --enable-static | |
70 | %{__make} | |
71 | ||
5f5e4d53 MP |
72 | %install |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %{__make} install \ | |
76 | DESTDIR=$RPM_BUILD_ROOT | |
77 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
78 | install -d $RPM_BUILD_ROOT%{_bindir} | |
5f5e4d53 | 79 | |
cedb230c | 80 | # gluiobj don't work |
3d9c9aab AM |
81 | cp -p examples/glutobj $RPM_BUILD_ROOT%{_bindir} |
82 | cp -p examples/smooth $RPM_BUILD_ROOT%{_bindir} | |
cedb230c | 83 | # game_glutobj seems same as glutobj |
3d9c9aab | 84 | cp -p examples/*.c examples/*.cpp examples/*.h examples/Makefile* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
5f5e4d53 MP |
85 | |
86 | %clean | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
89 | %post -p /sbin/ldconfig | |
5f5e4d53 MP |
90 | %postun -p /sbin/ldconfig |
91 | ||
5f5e4d53 MP |
92 | %files |
93 | %defattr(644,root,root,755) | |
94 | %doc AUTHORS ChangeLog INSTALL NEWS README TODO | |
95 | %attr(755,root,root) %{_libdir}/libglm.so.* | |
cedb230c JB |
96 | |
97 | %files devel | |
98 | %defattr(644,root,root,755) | |
99 | %attr(755,root,root) %{_libdir}/libglm.so | |
5f5e4d53 MP |
100 | %{_includedir}/glm.h |
101 | ||
cedb230c JB |
102 | %files static |
103 | %defattr(644,root,root,755) | |
104 | %{_libdir}/libglm.a | |
105 | ||
5f5e4d53 MP |
106 | %files examples |
107 | %defattr(644,root,root,755) | |
3d9c9aab AM |
108 | %attr(755,root,root) %{_bindir}/glutobj |
109 | %attr(755,root,root) %{_bindir}/smooth | |
5f5e4d53 | 110 | %{_examplesdir}/%{name}-%{version} |