]> git.pld-linux.org Git - SPECS.git/blob - glass.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / glass.spec
1 Summary:        GLASS - openGL Articulated Structure System
2 Summary(pl.UTF-8):      GLASS - Biblioteka obsługi struktur 3D OpenGL
3 Name:           glass
4 Version:        1.3.1
5 Release:        2
6 License:        GPL
7 Group:          X11/Libraries
8 Source0:        http://dl.sourceforge.net/glass/%{name}-%{version}.tar.gz
9 # Source0-md5:  bcde18e3ce0bebb19cf888d652f8b425
10 Patch0:         %{name}-LIBS.patch
11 Patch1:         %{name}-DESTDIR.patch
12 URL:            http://glass.sourceforge.net/
13 BuildRequires:  OpenGL-devel
14 Requires:       OpenGL
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
18
19 %description
20 GLASS is a 3D library, designed to make easy use of structured models
21 (models, that are made up of components linked by basic transforms,for
22 example, rotations and translations) in open GL applications. By using
23 GLASS in an application, these models can be loaded, modified, and
24 displayed using a minimum of function calls.
25
26 %description -l pl.UTF-8
27 GLASS to biblioteka wspomagająca projektowanie aplikacji 3D, stworzona
28 aby uprościć użycie modelu strukturalnego (modele, które składają się
29 z połączonych prostymi transformacjami części, np. obrotów lub
30 przesunięć) w aplikacjach 3D OpenGL. GLASS pozwala załadować,
31 zmodyfikować i wyświetlać te obiekty przy użyciu minimalnej ilości
32 wywołań (co upraszcza kod).
33
34 %package devel
35 Summary:        GLASS development package
36 Summary(pl.UTF-8):      Pakiet dla programistów GLASS
37 Group:          X11/Development/Libraries
38 Requires:       %{name} = %{version}-%{release}
39
40 %description devel
41 GLASS header files. Contains also tutorial and specifications.
42
43 %description devel -l pl.UTF-8
44 Pliki nagłówkowe biblioteki GLASS.
45
46 %prep
47 %setup -q
48 %patch0 -p1
49 %patch1 -p1
50
51 %build
52 %{__make} all \
53         CC="%{__cc}" \
54         CFLAGS="%{rpmcflags} -fPIC -Wall -I/usr/X11R6/include -DVERSION_STRING=\"\\\"%{version}\"\\\"" \
55         LIBS="-L/usr/X11R6/%{_lib} -lGL"
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
60
61 %{__make} install \
62         DESTDIR=$RPM_BUILD_ROOT \
63         INCLUDEDIR=%{_includedir}/glass \
64         LIBDIR=%{_libdir}
65
66 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
67
68 cd $RPM_BUILD_ROOT%{_libdir}
69 ln -sf libglass.so.*.*.* libglass.so.1
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %post   -p /sbin/ldconfig
75 %postun -p /sbin/ldconfig
76
77 %files
78 %defattr(644,root,root,755)
79 %doc ChangeLog README TODO
80 %attr(755,root,root) %{_libdir}/libglass.so.*.*.*
81 %attr(755,root,root) %ghost %{_libdir}/libglass.so.1
82
83 %files devel
84 %defattr(644,root,root,755)
85 %doc docs/*.html
86 %attr(755,root,root) %{_libdir}/libglass.so
87 %{_includedir}/glass
88 %{_examplesdir}/%{name}-%{version}
This page took 0.173575 seconds and 3 git commands to generate.