]> git.pld-linux.org Git - packages/glm.git/blame - glm.spec
- up to 0.3.2
[packages/glm.git] / glm.spec
CommitLineData
cedb230c 1Summary: glm - Alias Wavefront OBJ File Reader/Viewer Library
05343329 2Summary(pl.UTF-8): glm - biblioteka do odczytu i przeglądania plików OBJ Alias Wavefront
5f5e4d53 3Name: glm
3d9c9aab
AM
4Version: 0.3.2
5Release: 1
5f5e4d53
MP
6License: GPL v2
7Group: Libraries
8Source0: http://devernay.free.fr/hacks/glm/%{name}-%{version}.tar.gz
3d9c9aab
AM
9# Source0-md5: 63836fce687ac5ed2108d7bc889db71f
10Patch0: %{name}-build.patch
5f5e4d53 11URL: http://devernay.free.fr/hacks/glm/
3d9c9aab 12BuildRequires: autoconf
cedb230c 13BuildRequires: automake
5f5e4d53
MP
14BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16%description
17glm is an Alias Wavefront OBJ File Reader/Viewer Library.
18
98020728
JR
19%description -l pl.UTF-8
20glm to biblioteka do odczytu i przeglądania plików OBJ Alias
cedb230c
JB
21Wavefront.
22
23%package devel
24Summary: Header file for glm library
05343329 25Summary(pl.UTF-8): Plik nagłówkowy biblioteki glm
cedb230c
JB
26Group: Development/Libraries
27Requires: %{name} = %{version}-%{release}
28
29%description devel
30Header file for glm library.
31
98020728
JR
32%description devel -l pl.UTF-8
33Plik nagłówkowy biblioteki glm.
cedb230c
JB
34
35%package static
36Summary: Static glm library
05343329 37Summary(pl.UTF-8): Statyczna biblioteka glm
cedb230c
JB
38Group: Development/Libraries
39Requires: %{name}-devel = %{version}-%{release}
40
41%description static
42Static glm library.
43
98020728 44%description static -l pl.UTF-8
cedb230c
JB
45Statyczna biblioteka glm.
46
5f5e4d53 47%package examples
cedb230c 48Summary: glm examples
05343329 49Summary(pl.UTF-8): Przykłady do glm
5f5e4d53
MP
50Group: Development/Libraries
51#Requires: %{name} = %{version}-%{release}
52
53%description examples
54This is the package containing the examples, both binary and source.
55
98020728
JR
56%description examples -l pl.UTF-8
57Ten 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
73rm -rf $RPM_BUILD_ROOT
74
75%{__make} install \
76 DESTDIR=$RPM_BUILD_ROOT
77install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
78install -d $RPM_BUILD_ROOT%{_bindir}
5f5e4d53 79
cedb230c 80# gluiobj don't work
3d9c9aab
AM
81cp -p examples/glutobj $RPM_BUILD_ROOT%{_bindir}
82cp -p examples/smooth $RPM_BUILD_ROOT%{_bindir}
cedb230c 83# game_glutobj seems same as glutobj
3d9c9aab 84cp -p examples/*.c examples/*.cpp examples/*.h examples/Makefile* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
5f5e4d53
MP
85
86%clean
87rm -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}
This page took 0.093327 seconds and 5 git commands to generate.