Simplify build configuration and cleanup spec file
authorSangwon Ha <sw815.ha@samsung.com>
Fri, 13 Mar 2015 14:08:26 +0000 (23:08 +0900)
committerSangwon Ha <sw815.ha@samsung.com>
Fri, 13 Mar 2015 14:08:26 +0000 (23:08 +0900)
Change-Id: If8a6465de73877819b59236eb8b1dd704d43679d

15 files changed:
debian/changelog [deleted file]
debian/compat [deleted file]
debian/control [deleted file]
debian/dirs [deleted file]
debian/docs [deleted file]
debian/libcoregl-dev.install.in [deleted file]
debian/libcoregl.install.in [deleted file]
debian/libcoregl.postinst [deleted file]
debian/rules [deleted file]
packaging/coregl.spec [changed mode: 0755->0644]
src/coregl.c [changed mode: 0755->0644]
src/headers/sym_egl.h [changed mode: 0755->0644]
src/modules/tracepath/coregl_tracepath.c [changed mode: 0755->0644]
src/wraps/coregl_egl.c [changed mode: 0755->0644]
src/wraps/coregl_gl.c [changed mode: 0755->0644]

diff --git a/debian/changelog b/debian/changelog
deleted file mode 100644 (file)
index 35c7c03..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-coregl (0.1.5) unstable; urgency=low
-
-  * Package Upload
-  * change changelog format
-  * Git: slp/pkgs/c/coregl
-  * Tag: coregl_0.1.5
-
- -- Sanghee Park <sh15.park@samsung.com>  Thu, 26 Apr 2012 17:31:40 +0900
-
-coregl (0.1.4) unstable; urgency=low
-
-  * Package Upload
-  * Fix bug related to build
-  * Git: slp/pkgs/c/coregl
-  * Tag: coregl_0.1.4
-
- -- Sanghee Park <sh15.park@samsung.com>  Thu, 26 Apr 2012 16:07:10 +0900
-
-coregl (0.1.3) unstable; urgency=low
-
-  * Package Upload
-  * Fix bug related to postinst
-  * Git: slp/pkgs/c/coregl
-  * Tag: coregl_0.1.3
-
- -- Sanghee Park <sh15.park@samsung.com>  Thu, 26 Apr 2012 13:18:29 +0900
-
-coregl (0.1.2) unstable; urgency=low
-
-  * Package Upload
-  * Fix postinst file
-  * Git: slp/pkgs/c/coregl
-  * Tag: coregl_0.1.2
-
- -- Sanghee Park <sh15.park@samsung.com>  Wed, 18 Apr 2012 09:23:41 +0900
-
-coregl (0.1.1) unstable; urgency=low
-
-  * Init Coregl
-  * Git: slp/pkgs/c/coregl
-  * Tag: coregl_0.1.1
-
- -- Wonsik Jung <sidein@samsung.com>  Thu, 29 Mar 2012 10:42:28 +0900
-
-
diff --git a/debian/compat b/debian/compat
deleted file mode 100644 (file)
index 7ed6ff8..0000000
+++ /dev/null
@@ -1 +0,0 @@
-5
diff --git a/debian/control b/debian/control
deleted file mode 100644 (file)
index 98ffa67..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-Source: coregl
-Section: libs
-Priority: extra
-Maintainer: Wonsik Jung(sidein@samsung.com)
-Uploaders: Wonsik Jung(sidein@samsung.com)
-Build-Depends: dlog-dev, libx11-dev, opengl-es-dev
-Standards-Version: 3.8.1
-
-Package: libcoregl-dev
-Section: libs
-Architecture: armel
-Depends: libcoregl, opengl-es-drv
-Description: extra libgles, libegl library
-
-Package: libcoregl
-Section: libs
-Architecture: armel
-Depends: ${shlibs:Depends}, ${misc:Depends}, opengl-es-drv
-Description: extra libgles, libegl library
-
-Package: libcoregl-dbg
-Section: debug
-Architecture: armel
-Depends: ${misc:Depends}, libcoregl (= ${Source-Version})
-Description: extra libgles, libegl library.
-
-
diff --git a/debian/dirs b/debian/dirs
deleted file mode 100644 (file)
index ca882bb..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-usr/bin
-usr/sbin
diff --git a/debian/docs b/debian/docs
deleted file mode 100644 (file)
index a0f0008..0000000
+++ /dev/null
@@ -1 +0,0 @@
-CMakeLists.txt
diff --git a/debian/libcoregl-dev.install.in b/debian/libcoregl-dev.install.in
deleted file mode 100644 (file)
index cd79e4a..0000000
+++ /dev/null
@@ -1 +0,0 @@
-@PREFIX@/lib/pkgconfig/COREGL.pc
diff --git a/debian/libcoregl.install.in b/debian/libcoregl.install.in
deleted file mode 100644 (file)
index 89183d4..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-@PREFIX@/lib/libCOREGL.so*
-@PREFIX@/lib/libEGL.so*
-@PREFIX@/lib/libGLESv2.so*
diff --git a/debian/libcoregl.postinst b/debian/libcoregl.postinst
deleted file mode 100644 (file)
index c624184..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/sh
-
-init_coregl()
-{
-    cd /usr/lib/
-
-#    file="./libEGL.so"
-#    if [ -e $file ]; then
-            rm -f ./libEGL.*
-            rm -f ./libGLESv2.*
-
-           ln -s libCOREGL.so libGLESv2.so.2.0
-           ln -s libCOREGL.so libGLESv2.so.2
-           ln -s libCOREGL.so libGLESv2.so
-
-           ln -s libCOREGL.so libEGL.so.1.4
-           ln -s libCOREGL.so libEGL.so.1
-           ln -s libCOREGL.so libEGL.so
-#    fi
-
-    cd -
-}
-
-init_coregl
-
-# End of a file
diff --git a/debian/rules b/debian/rules
deleted file mode 100644 (file)
index b7ab7d9..0000000
+++ /dev/null
@@ -1,115 +0,0 @@
-#!/usr/bin/make -f
-# -*- makefile -*-
-# Sample debian/rules that uses debhelper.
-# This file was originally written by Joey Hess and Craig Small.
-# As a special exception, when this file is copied by dh-make into a
-# dh-make output file, you may use that output file without restriction.
-# This special exception was added by Craig Small in version 0.37 of dh-make.
-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-CFLAGS ?= -Wall -g
-CXXFLAGS ?=  -Wall -g
-LDFLAGS ?=
-PREFIX ?= /usr
-DATADIR ?= /opt
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-       CFLAGS += -O0
-       CXXFLAGS += -O0
-else
-       CFLAGS += -O2
-       CXXFLAGS += -O2
-endif
-
-LDFLAGS += -Wl,--rpath=$(PREFIX)/lib -Wl,--as-needed
-
-CMAKE_BUILD_DIR ?= $(CURDIR)/cmake_build_tmp
-
-configure: configure-stamp
-configure-stamp:
-       dh_testdir
-       mkdir -p $(CMAKE_BUILD_DIR) && cd $(CMAKE_BUILD_DIR) && \
-       CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" cmake .. -DCMAKE_INSTALL_PREFIX=$(PREFIX)
-
-       touch configure-stamp
-
-build: build-stamp
-
-build-stamp: configure-stamp
-       dh_testdir
-
-       cd $(CMAKE_BUILD_DIR) && $(MAKE)
-
-       #docbook-to-man debian/wavplayer.sgml > wavplayer.1
-
-       for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
-               cat $$f > $${f%.in}; \
-               sed -i -e "s#@PREFIX@#$(PREFIX)#g" $${f%.in}; \
-               sed -i -e "s#@DATADIR@#$(DATADIR)#g" $${f%.in}; \
-       done
-
-
-       touch $@
-
-clean:
-       dh_testdir
-       dh_testroot
-       rm -f build-stamp configure-stamp
-
-       rm -rf $(CMAKE_BUILD_DIR)
-
-       for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
-               rm -f $${f%.in}; \
-       done
-
-       dh_clean
-
-install: build
-       dh_testdir
-       dh_testroot
-       dh_clean -k
-       dh_installdirs
-
-       # Add here commands to install the package into debian/wavplayer.
-       cd $(CMAKE_BUILD_DIR) && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
-
-
-# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do by default.
-
-# Build architecture-dependent files here.
-binary-arch: build install
-       dh_testdir
-       dh_testroot
-       dh_installchangelogs
-       dh_installdocs
-       dh_installexamples
-       dh_install --sourcedir=debian/tmp
-#      dh_installmenu
-#      dh_installdebconf
-#      dh_installlogrotate
-#      dh_installemacsen
-#      dh_installpam
-#      dh_installmime
-#      dh_python
-#      dh_installinit
-#      dh_installcron
-#      dh_installinfo
-       dh_installman
-       dh_link
-       dh_strip --dbg-package=libcoregl-dbg
-       dh_compress
-       dh_fixperms
-#      dh_perl
-       dh_makeshlibs
-       dh_installdeb
-       dh_shlibdeps
-       dh_gencontrol
-       dh_md5sums
-       dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
old mode 100755 (executable)
new mode 100644 (file)
index 4316c49..ccd53c8
@@ -1,82 +1,61 @@
-Name: coregl
-Version: 0.1.9
-Release: 1
-ExclusiveArch:  %arm
-Summary: coregl
-Group: Graphics
-License: TO_BE/FILLED_IN
-URL: http://www.tizen.org
-Source0: %{name}-%{version}.tar.gz
-Requires(post): /sbin/ldconfig
-Requires(postun): /sbin/ldconfig
-#Patch1: patchfile.patch
-%ifarch %{ix86}
-BuildRequires:  simulator-opengl-devel
-%else
+Name:                  coregl
+Summary:               CoreGL FastPath Optimization 
+Version:               0.1.10
+Release:               1
+ExclusiveArch: %arm
+Group:                 Graphics
+License:               TO_BE/FILLED_IN
+URL:                   http://www.tizen.org
+Source:                        %{name}-%{version}.tar.gz
+
 BuildRequires:  pkgconfig(gles20)
 BuildRequires:  pkgconfig(xfixes)
-BuildRequires:  opengl-es-devel
-%endif
 BuildRequires:  pkgconfig(x11)
 BuildRequires:  cmake
 BuildRequires:  pkgconfig(dlog)
-BuildRequires:  sec-product-features
 
 %description
-This package contains the GLESv2.0/EGL 
+CoreGL provides the following capabilities:
+- Support for driver-independent optimization (FastPath)
+- EGL/OpenGL ES debugging
+- Performance logging
+
+Supported versions:
+- EGL 1.4
+- OpenGL ES 2.0, 3.0
 
 %prep
 %setup -q -n %{name}-%{version}
 
 %build
-
-%if 0%{?sec_product_feature_graphics_adreno}
-%global extra_option -DUSE_ADRENO=TRUE
-%endif
-
 cmake . -DCMAKE_INSTALL_PREFIX=/usr %{?extra_option}
-
 make %{?jobs:-j%jobs}
 
 %install
-
 mkdir -p %{buildroot}/usr/lib
-mkdir -p %{buildroot}/usr/include/EGL
-mkdir -p %{buildroot}/usr/include/GLES2
 cp %{_builddir}/%{name}-%{version}/libCOREGL.so.4.0 %{buildroot}%{_libdir}/libCOREGL.so.4.0
 cp %{_builddir}/%{name}-%{version}/libEGL.so.1.4 %{buildroot}%{_libdir}/libEGL.so.1.4
 cp %{_builddir}/%{name}-%{version}/libGLESv2.so.2.0 %{buildroot}%{_libdir}/libGLESv2.so.2.0
+ln -sf libCOREGL.so.4.0 %{buildroot}%{_libdir}/libCOREGL.so.4
+ln -sf libCOREGL.so.4 %{buildroot}%{_libdir}/libCOREGL.so
+ln -sf libEGL.so.1.4 %{buildroot}%{_libdir}/libEGL.so.1
+ln -sf libEGL.so.1 %{buildroot}%{_libdir}/libEGL.so
+ln -sf driver/libGLESv1_CM.so.1.1 %{buildroot}%{_libdir}/libGLESv1_CM.so.1.1
+ln -sf libGLESv1_CM.so.1.1 %{buildroot}%{_libdir}/libGLESv1_CM.so.1
+ln -sf libGLESv1_CM.so.1 %{buildroot}%{_libdir}/libGLESv1_CM.so
+ln -sf libGLESv2.so.2.0 %{buildroot}%{_libdir}/libGLESv2.so.2
+ln -sf libGLESv2.so.2 %{buildroot}%{_libdir}/libGLESv2.so
 
 %clean
 rm -rf %{buildroot}
 
-%post
-
-init_coregl()
-{
-    cd /usr/lib
-
-    rm -f ./libEGL.so
-    rm -f ./libEGL.so.1
-    rm -f ./libGLESv2.so
-    rm -f ./libGLESv2.so.2
-    rm -f ./libCOREGL.so
-    rm -f ./libCOREGL.so.4
-    ln -s libCOREGL.so.4.0 libCOREGL.so.4
-    ln -s libCOREGL.so.4 libCOREGL.so
-    ln -s libEGL.so.1.4 libEGL.so.1
-    ln -s libEGL.so.1 libEGL.so
-    ln -s libGLESv2.so.2.0 libGLESv2.so.2
-    ln -s libGLESv2.so.2 libGLESv2.so
-
-    cd -
-}
+%post -p /sbin/ldconfig
 
-init_coregl
 %postun -p /sbin/ldconfig
 
 %files
 %defattr(-,root,root,-)
 %{_libdir}/libCOREGL.so*
 %{_libdir}/libEGL.so*
+%{_libdir}/libGLESv1_CM.so*
 %{_libdir}/libGLESv2.so*
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)