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