]> git.pld-linux.org Git - packages/Mesa-libGLw.git/blame - Mesa-libGLw.spec
- libGLw moved from Mesa.spec (libGLw is no longer included in MesaLib)
[packages/Mesa-libGLw.git] / Mesa-libGLw.spec
CommitLineData
39879017
JB
1#
2# Conditional build:
3%bcond_without motif # Motif interface
4%bcond_without static_libs # static library
5#
6Summary: SGI OpenGL Xt widgets library
7Summary(pl.UTF-8): Biblioteka SGI widgetów Xt dla OpenGL-a
8Name: Mesa-libGLw
9Version: 1.0.0
10%define snap 20120116
11Release: 0.%{snap}.1
12Epoch: 1
13License: SGI MIT-like
14Group: X11/Libraries
15# git clone git://anongit.freedesktop.org/git/mesa/glw mesa-glw
16Source0: mesa-glw.tar.xz
17# Source0-md5: ffe670e257fd0ec1acda9e978a221318
18URL: http://www.mesa3d.org/
19BuildRequires: OpenGL-devel >= 1.2
20BuildRequires: autoconf >= 2.50
21BuildRequires: automake
22BuildRequires: libtool
23%{?with_motif:BuildRequires: motif-devel}
24BuildRequires: pkgconfig
25BuildRequires: xorg-lib-libX11-devel
26BuildRequires: xorg-lib-libXext-devel
27BuildRequires: xorg-lib-libXt-devel
28Provides: OpenGL-GLw
29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31%description
32SGI OpenGL Xt widgets library.
33
34%description -l pl.UTF-8
35Biblioteka SGI widgetów Xt dla OpenGL-a.
36
37%package devel
38Summary: Header files for SGI libGLw library
39Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SGI libGLw
40License: SGI MIT-like
41Group: X11/Development/Libraries
42Requires: %{name} = %{epoch}:%{version}-%{release}
43Requires: OpenGL-devel >= 1.2
44Requires: xorg-lib-libX11-devel
45Requires: xorg-lib-libXt-devel
46Provides: OpenGL-GLw-devel
47
48%description devel
49Header files for SGI libGLw library.
50
51%description devel -l pl.UTF-8
52Pliki nagłówkowe biblioteki SGI libGLw.
53
54%package static
55Summary: Static SGI libGLw library
56Summary(pl.UTF-8): Statyczna biblioteka SGI libGLw
57License: SGI MIT-like
58Group: X11/Development/Libraries
59Requires: %{name}-devel = %{epoch}:%{version}-%{release}
60Provides: OpenGL-GLw-static
61
62%description static
63Static SGI libGLw library.
64
65%description static -l pl.UTF-8
66Statyczna biblioteka SGI libGLw.
67
68%prep
69%setup -q -n mesa-glw
70
71%build
72%{__libtoolize}
73%{__aclocal}
74%{__autoconf}
75%{__automake}
76%configure \
77 --disable-silent-rules \
78 %{!?with_static_libs:--disable-static} \
79 %{?with_motif:--enable-motif}
80
81%{__make}
82
83%install
84rm -rf $RPM_BUILD_ROOT
85
86%{__make} install \
87 DESTDIR=$RPM_BUILD_ROOT
88
89# there is pkg-config support; also, traditionally libGLw didn't have .la
90%{__rm} $RPM_BUILD_ROOT%{_libdir}/libGLw.la
91
92%clean
93rm -rf $RPM_BUILD_ROOT
94
95%post -p /sbin/ldconfig
96%postun -p /sbin/ldconfig
97
98%files
99%defattr(644,root,root,755)
100%attr(755,root,root) %{_libdir}/libGLw.so.*.*.*
101%attr(755,root,root) %ghost %{_libdir}/libGLw.so.1
102
103%files devel
104%defattr(644,root,root,755)
105%attr(755,root,root) %{_libdir}/libGLw.so
106%{_includedir}/GL/GLwDrawA.h
107%{_includedir}/GL/GLwDrawAP.h
108%if %{with motif}
109%{_includedir}/GL/GLwMDrawA.h
110%{_includedir}/GL/GLwMDrawAP.h
111%endif
112%{_pkgconfigdir}/glw.pc
113
114%if %{with static_libs}
115%files static
116%defattr(644,root,root,755)
117%{_libdir}/libGLw.a
118%endif
This page took 0.079388 seconds and 4 git commands to generate.