Browse Source

mesa-libGLU: new package splitted from mesa

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@7125 ec354946-7b23-47d6-9f5a-488ba84defc7
daisuke 11 years ago
parent
commit
ba4fca04f7
1 changed files with 108 additions and 0 deletions
  1. 108 0
      m/mesa-libGLU/mesa-libGLU-vl.spec

+ 108 - 0
m/mesa-libGLU/mesa-libGLU-vl.spec

@@ -0,0 +1,108 @@
+%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
+
+Name:           mesa-libGLU
+Version:        9.0.0
+Release:        1%{?_dist_release}
+Summary:        Mesa libGLU library
+Summary(ja):    Mesa libGLU ライブラリ
+
+License:        MIT
+URL:            http://mesa3d.org/
+Source0:        ftp://ftp.freedesktop.org/pub/mesa/glu/glu-%{version}.tar.bz2
+Source2:        make-git-snapshot.sh
+
+BuildRequires:  mesa-libGL-devel
+Provides:       libGLU = %{version}-%{release}
+
+%description
+Mesa implementation of the standard GLU OpenGL utility API.
+
+%package        devel
+Summary:        Development files for %{name}
+Summary(ja):    %{name} の開発ファイル
+Requires:       %{name} = %{version}-%{release}
+Provides:       libGLU-devel = %{version}-%{release}
+
+%description    devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+
+# compat32
+%package -n compat32-%{name}
+Summary: Mesa libGLU runtime library
+Summary(ja): Mesa libGLU ランタイムライブラリ
+Group: System Environment/Libraries
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+Requires: %{name} = %{version}-%{release}
+
+%description -n compat32-%{name}
+Mesa libGLU runtime library
+
+
+%package -n compat32-%{name}-devel
+Summary: Mesa libGLU development package
+Summary(ja): Mesa libGLU 開発パッケージ
+Group: Development/Libraries
+Requires: compat32-mesa-libGL = %{version}
+Requires: compat32-%{name} = %{version}-%{release}
+Requires: mesa-libGL-devel = %{version}
+Requires: %{name}-devel = %{version}-%{release}
+
+%description -n compat32-%{name}-devel
+Mesa libGLU development package
+
+
+%prep
+%setup -q -n glu-%{version}
+
+%build
+%configure --disable-static
+make %{?_smp_mflags}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
+rm -rf $RPM_BUILD_ROOT%{_datadir}/man/man3/gl[A-Z]*
+
+%post -p /sbin/ldconfig
+%post -n compat32-%{name} -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+%postun -n compat32-%{name} -p /sbin/ldconfig
+
+%files
+%{_libdir}/libGLU.so.1
+%{_libdir}/libGLU.so.1.3.*
+
+%files devel
+%{_includedir}/GL/glu*.h
+%{_libdir}/libGLU.so
+%{_libdir}/pkgconfig/glu.pc
+
+%if %{build_compat32}
+%files -n compat32-%{name}
+%{_libdir}/libGLU.so.1
+%{_libdir}/libGLU.so.1.3.*
+
+%files -n compat32-%{name}-devel
+%{_includedir}/GL/glu*.h
+%{_libdir}/libGLU.so
+%{_libdir}/pkgconfig/glu.pc
+%endif
+
+%changelog
+* Sat Nov 17 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 9.0.0-1
+- initial build for Vine Linux
+
+* Tue Sep 18 2012 Adam Jackson <ajax@redhat.com> 9.0.0-1
+- libGLU 9.0
+
+* Mon Sep 10 2012 Dave Airlie <airlied@redhat.com> 9.0-0.2
+- add back libGLU provides for now
+
+* Tue Sep 04 2012 Adam Jackson <ajax@redhat.com> 9.0-0.1
+- Initial packaging for split libGLU
+