]> git.pld-linux.org Git - packages/Mesa-libGLw.git/commitdiff
- libGLw moved from Mesa.spec (libGLw is no longer included in MesaLib)
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 21 Feb 2012 18:40:40 +0000 (18:40 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    Mesa-libGLw.spec -> 1.1

Mesa-libGLw.spec [new file with mode: 0644]

diff --git a/Mesa-libGLw.spec b/Mesa-libGLw.spec
new file mode 100644 (file)
index 0000000..5a758b3
--- /dev/null
@@ -0,0 +1,118 @@
+#
+# Conditional build:
+%bcond_without motif           # Motif interface
+%bcond_without static_libs     # static library
+#
+Summary:       SGI OpenGL Xt widgets library
+Summary(pl.UTF-8):     Biblioteka SGI widgetów Xt dla OpenGL-a
+Name:          Mesa-libGLw
+Version:       1.0.0
+%define        snap    20120116
+Release:       0.%{snap}.1
+Epoch:         1
+License:       SGI MIT-like
+Group:         X11/Libraries
+# git clone git://anongit.freedesktop.org/git/mesa/glw mesa-glw
+Source0:       mesa-glw.tar.xz
+# Source0-md5: ffe670e257fd0ec1acda9e978a221318
+URL:           http://www.mesa3d.org/
+BuildRequires: OpenGL-devel >= 1.2
+BuildRequires: autoconf >= 2.50
+BuildRequires: automake
+BuildRequires: libtool
+%{?with_motif:BuildRequires:   motif-devel}
+BuildRequires: pkgconfig
+BuildRequires: xorg-lib-libX11-devel
+BuildRequires: xorg-lib-libXext-devel
+BuildRequires: xorg-lib-libXt-devel
+Provides:      OpenGL-GLw
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+SGI OpenGL Xt widgets library.
+
+%description -l pl.UTF-8
+Biblioteka SGI widgetów Xt dla OpenGL-a.
+
+%package devel
+Summary:       Header files for SGI libGLw library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki SGI libGLw
+License:       SGI MIT-like
+Group:         X11/Development/Libraries
+Requires:      %{name} = %{epoch}:%{version}-%{release}
+Requires:      OpenGL-devel >= 1.2
+Requires:      xorg-lib-libX11-devel
+Requires:      xorg-lib-libXt-devel
+Provides:      OpenGL-GLw-devel
+
+%description devel
+Header files for SGI libGLw library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki SGI libGLw.
+
+%package static
+Summary:       Static SGI libGLw library
+Summary(pl.UTF-8):     Statyczna biblioteka SGI libGLw
+License:       SGI MIT-like
+Group:         X11/Development/Libraries
+Requires:      %{name}-devel = %{epoch}:%{version}-%{release}
+Provides:      OpenGL-GLw-static
+
+%description static
+Static SGI libGLw library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka SGI libGLw.
+
+%prep
+%setup -q -n mesa-glw
+
+%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure \
+       --disable-silent-rules \
+       %{!?with_static_libs:--disable-static} \
+       %{?with_motif:--enable-motif}
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+# there is pkg-config support; also, traditionally libGLw didn't have .la
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libGLw.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libGLw.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libGLw.so.1
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libGLw.so
+%{_includedir}/GL/GLwDrawA.h
+%{_includedir}/GL/GLwDrawAP.h
+%if %{with motif}
+%{_includedir}/GL/GLwMDrawA.h
+%{_includedir}/GL/GLwMDrawAP.h
+%endif
+%{_pkgconfigdir}/glw.pc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libGLw.a
+%endif
This page took 0.108776 seconds and 4 git commands to generate.