]> git.pld-linux.org Git - packages/Mesa-libGLw.git/blame - Mesa-libGLw.spec
- xz BRs
[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
f0ed3329
JB
25BuildRequires: tar >= 1:1.22
26BuildRequires: xz
39879017
JB
27BuildRequires: xorg-lib-libX11-devel
28BuildRequires: xorg-lib-libXext-devel
29BuildRequires: xorg-lib-libXt-devel
30Provides: OpenGL-GLw
31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33%description
34SGI OpenGL Xt widgets library.
35
36%description -l pl.UTF-8
37Biblioteka SGI widgetów Xt dla OpenGL-a.
38
39%package devel
40Summary: Header files for SGI libGLw library
41Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SGI libGLw
42License: SGI MIT-like
43Group: X11/Development/Libraries
44Requires: %{name} = %{epoch}:%{version}-%{release}
45Requires: OpenGL-devel >= 1.2
46Requires: xorg-lib-libX11-devel
47Requires: xorg-lib-libXt-devel
48Provides: OpenGL-GLw-devel
49
50%description devel
51Header files for SGI libGLw library.
52
53%description devel -l pl.UTF-8
54Pliki nagłówkowe biblioteki SGI libGLw.
55
56%package static
57Summary: Static SGI libGLw library
58Summary(pl.UTF-8): Statyczna biblioteka SGI libGLw
59License: SGI MIT-like
60Group: X11/Development/Libraries
61Requires: %{name}-devel = %{epoch}:%{version}-%{release}
62Provides: OpenGL-GLw-static
63
64%description static
65Static SGI libGLw library.
66
67%description static -l pl.UTF-8
68Statyczna biblioteka SGI libGLw.
69
70%prep
71%setup -q -n mesa-glw
72
73%build
74%{__libtoolize}
75%{__aclocal}
76%{__autoconf}
77%{__automake}
78%configure \
79 --disable-silent-rules \
80 %{!?with_static_libs:--disable-static} \
81 %{?with_motif:--enable-motif}
82
83%{__make}
84
85%install
86rm -rf $RPM_BUILD_ROOT
87
88%{__make} install \
89 DESTDIR=$RPM_BUILD_ROOT
90
91# there is pkg-config support; also, traditionally libGLw didn't have .la
92%{__rm} $RPM_BUILD_ROOT%{_libdir}/libGLw.la
93
94%clean
95rm -rf $RPM_BUILD_ROOT
96
97%post -p /sbin/ldconfig
98%postun -p /sbin/ldconfig
99
100%files
101%defattr(644,root,root,755)
102%attr(755,root,root) %{_libdir}/libGLw.so.*.*.*
103%attr(755,root,root) %ghost %{_libdir}/libGLw.so.1
104
105%files devel
106%defattr(644,root,root,755)
107%attr(755,root,root) %{_libdir}/libGLw.so
108%{_includedir}/GL/GLwDrawA.h
109%{_includedir}/GL/GLwDrawAP.h
110%if %{with motif}
111%{_includedir}/GL/GLwMDrawA.h
112%{_includedir}/GL/GLwMDrawAP.h
113%endif
114%{_pkgconfigdir}/glw.pc
115
116%if %{with static_libs}
117%files static
118%defattr(644,root,root,755)
119%{_libdir}/libGLw.a
120%endif
This page took 0.070634 seconds and 4 git commands to generate.