add packaging
authorAnas Nashif <anas.nashif@intel.com>
Wed, 7 Nov 2012 06:46:48 +0000 (22:46 -0800)
committerAnas Nashif <anas.nashif@intel.com>
Wed, 7 Nov 2012 06:46:48 +0000 (22:46 -0800)
packaging/baselibs.conf [new file with mode: 0644]
packaging/libGLU.spec [new file with mode: 0644]

diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf
new file mode 100644 (file)
index 0000000..e408dab
--- /dev/null
@@ -0,0 +1,4 @@
+libGLU1
+libGLU-devel
+       requires -libGLU-<targettype>
+       requires "libGLU1-<targettype> = <version>"
diff --git a/packaging/libGLU.spec b/packaging/libGLU.spec
new file mode 100644 (file)
index 0000000..47f0a29
--- /dev/null
@@ -0,0 +1,77 @@
+#
+# Please submit bugfixes or comments via http://bugs.tizen.org/
+#
+
+Name:           libGLU
+Version:        9.0.0
+Release:        0
+License:        SGI Free B
+Summary:        Graphics Library Utilities (GLU)
+Url:            http://www.mesa3d.org
+Group:          Development/Libraries/C and C++
+Source:         glu.tar.bz2
+BuildRequires:  autoconf
+BuildRequires:  automake
+BuildRequires:  gcc-c++
+BuildRequires:  libtool
+BuildRequires:  pkgconfig
+BuildRequires:  pkgconfig(gl)
+Provides:       mesa:%{_libdir}/libGLU.so.1
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+
+%description
+GLU offers simple interfaces for building mipmaps; checking for the
+presence of extensions in the OpenGL (or other libraries which follow
+the same conventions for advertising extensions); drawing
+piecewise-linear curves, NURBS, quadrics and other primitives
+(including, but not limited to, teapots); tesselating surfaces;
+setting up projection matrices and unprojecting screen coordinates to
+world coordinates.
+
+This package provides the SGI implementation of GLU shipped with the
+Mesa package.
+
+%package devel
+Summary:        Development files for the Graphics Library Utilities (GLU)
+Group:          Development/Libraries/C and C++
+Requires:       libGLU = %{version}
+Requires:       pkgconfig(gl) >= 9
+
+%description devel
+GLU offers simple interfaces for building mipmaps; checking for the
+presence of extensions in the OpenGL (or other libraries which follow
+the same conventions for advertising extensions); drawing
+piecewise-linear curves, NURBS, quadrics and other primitives
+(including, but not limited to, teapots); tesselating surfaces;
+setting up projection matrices and unprojecting screen coordinates to
+world coordinates.
+
+This package contains includes headers and static libraries for
+compiling programs with GLU.
+
+%prep
+%setup -q -n glu
+
+%build
+autoreconf -fi
+%configure  --disable-static
+make %{?_smp_mflags} OPT_FLAGS="%{optflags}"
+
+%install
+%make_install
+
+%post  -p /sbin/ldconfig
+
+%postun  -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root)
+%{_libdir}/libGLU.so.1*
+
+%files devel
+%defattr(-,root,root)
+/usr/include/GL
+%{_libdir}/pkgconfig/glu.pc
+%{_libdir}/libGLU.so
+
+%changelog