[gocl] Initial import plus improvements

Fabian Deutsch fabiand at fedoraproject.org
Wed Sep 11 16:58:12 UTC 2013


commit ce3d3072f5f6833d3627c625d1c11abbcea10d37
Author: Fabian Deutsch <fabiand at fedoraproject.org>
Date:   Wed Sep 11 18:57:49 2013 +0200

    Initial import plus improvements
    
    Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>

 .gitignore       |    1 +
 gocl-build.patch |   12 +++++++
 gocl.spec        |   92 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources          |    1 +
 4 files changed, 106 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ac077e5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gocl-0.1.4.tar.gz
diff --git a/gocl-build.patch b/gocl-build.patch
new file mode 100644
index 0000000..6b39c2b
--- /dev/null
+++ b/gocl-build.patch
@@ -0,0 +1,12 @@
+diff -r -u gocl-0.1.4.orig/examples/Makefile.am gocl-0.1.4/examples/Makefile.am
+--- gocl-0.1.4.orig/examples/Makefile.am	2013-08-03 11:08:50.000000000 +0200
++++ gocl-0.1.4/examples/Makefile.am	2013-08-19 10:27:31.455128153 +0200
+@@ -39,7 +39,7 @@
+ 
+ # gaussian-blur
+ gaussian_blur_CFLAGS = $(AM_CFLAGS) $(COGL_CFLAGS)
+-gaussian_blur_LDADD = $(AM_LIBS) $(COGL_LIBS) -lGL
++gaussian_blur_LDADD = $(AM_LIBS) $(COGL_LIBS) -lGL -lm
+ gaussian_blur_SOURCES = gaussian-blur.c
+ 
+ endif
diff --git a/gocl.spec b/gocl.spec
new file mode 100644
index 0000000..4bc69bf
--- /dev/null
+++ b/gocl.spec
@@ -0,0 +1,92 @@
+%global api_version 0.1
+
+Name:           gocl
+Version:        0.1.4
+Release:        3%{?dist}
+Summary:        GLib/GObject based library for OpenCL
+
+License:        LGPLv3
+URL:            https://github.com/elima/gocl/
+Source0:        https://github.com/elima/gocl/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
+
+# Tracked upstream in https://github.com/elima/gocl/pull/1
+Patch0:         gocl-build.patch
+
+BuildRequires:  automake
+BuildRequires:  glibc-devel
+BuildRequires:  gobject-introspection-devel
+BuildRequires:  gtk-doc
+BuildRequires:  ocl-icd-devel opencl-headers
+
+
+%description
+Gocl is a GLib/GObject based library that aims at simplifying the
+use of OpenCL in GNOME software. It is intended to be a lightweight
+wrapper that adapts OpenCL programming patterns and boilerplate, and
+expose a simpler API that is known and comfortable to GNOME
+developers. Examples of such adaptations are the integration with
+GLib’s main loop, exposing non-blocking APIs, GError based error
+reporting and full gobject-introspection support. It will also be
+including convenient API to simplify code for the most common use
+patterns.
+
+
+%package        devel
+Summary:        Development files for %{name}
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+
+%description    devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+
+%prep
+%setup -q
+%patch0 -p1 -b .build
+
+
+%build
+./autogen.sh
+%configure --disable-static --enable-introspection=yes --enable-tests=yes --enable-gtk-doc
+make %{?_smp_mflags}
+
+
+%install
+%make_install
+
+# NOTE: We intentionally don't ship *.la files
+find %{buildroot} -type f -name '*.la' | xargs rm -f -- || :
+
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+
+%files
+%doc COPYING
+%{_libdir}/libgocl-%{api_version}.so.*
+%{_libdir}/girepository-1.0/
+
+
+%files devel
+%doc examples/Makefile.am examples/*.c examples/*.cl examples/js/*.js
+%{_libdir}/libgocl-%{api_version}.so
+%{_libdir}/pkgconfig/%{name}-%{api_version}.pc
+%{_datadir}/gir-1.0/
+%{_datadir}/gtk-doc/
+%{_includedir}/gocl-%{api_version}/
+
+
+%changelog
+* Wed Sep 11 2013 Fabian Deutsch <fabiand at fedoraproject.org> - 0.1.4-3
+- Move all examples to devel package
+- Remove trash line from build patch
+
+* Wed Sep 11 2013 Fabian Deutsch <fabiand at fedoraproject.org> - 0.1.4-2
+- Own directories
+- Package examples
+- Use global instead of define
+
+* Sun Aug 18 2013 Fabian Deutsch <fabiand at fedoraproject.org> - 0.1.4-1
+- Initial package
diff --git a/sources b/sources
index e69de29..3001ef1 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+865235b45e94359c534ecbf88d380dff  gocl-0.1.4.tar.gz


More information about the scm-commits mailing list