[clinfo/f19] Initial commit

Fabian Deutsch fabiand at fedoraproject.org
Tue Oct 1 13:08:18 UTC 2013


commit 66ec8893548943058483e3bac642231e0a2ae4d2
Author: Fabian Deutsch <fabiand at fedoraproject.org>
Date:   Tue Oct 1 15:07:27 2013 +0200

    Initial commit

 .gitignore  |    1 +
 clinfo.spec |   60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources     |    1 +
 3 files changed, 62 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..b137893 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/clinfo-0.1-7f44937.tar.gz
diff --git a/clinfo.spec b/clinfo.spec
new file mode 100644
index 0000000..c771208
--- /dev/null
+++ b/clinfo.spec
@@ -0,0 +1,60 @@
+%global commit 7f44937169b1d7d0fb446cc0b1878cf0c09017f1
+%global commitdate 20131001
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+%global gitversion .git%{commitdate}.%{shortcommit}
+
+Summary: Enumerate OpenCL platforms and devices
+Name:    clinfo
+Version: 0.1
+Release: 0.1%{?gitversion}%{?dist}
+License: Public Domain
+Group:   System Environment/Libraries
+URL:     https://github.com/Oblomov/clinfo
+
+%global tarball %{name}-%{gitversion}.tar.gz
+Source0: https://github.com/Oblomov/%{name}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
+
+BuildRequires: opencl-headers ocl-icd-devel
+
+Requires: opencl-filesystem
+
+
+%description
+A simple OpenCL application that enumerates all possible platform and
+device properties. Inspired by AMD's program of the same name, it is
+coded in pure C99 and it tries to output all possible information,
+including that provided by platform-specific extensions, and not to
+crash on platform-unsupported properties (e.g. 1.2 properties on 1.1
+platforms).
+
+
+%prep
+%setup -q -n %{name}-%{commit}
+
+
+%build
+# configure doesn't exist, but we need the exported CFLAGS and friends
+%configure || :
+make %{?_smp_mflags}
+
+
+%install
+mkdir -p %{buildroot}/%{_bindir}
+%{__install} -m0755 clinfo %{buildroot}/%{_bindir}/
+
+mkdir -p %{buildroot}/%{_mandir}/man1
+%{__cp} -a man/clinfo.1 %{buildroot}/%{_mandir}/man1/
+
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+
+%files
+%doc README LICENSE
+%{_bindir}/clinfo
+%{_mandir}/man1/clinfo.1.gz
+
+%changelog
+* Tue Oct 01 2013 Fabian Deutsch <fabiand at fedoraproject.org> - 0.1-0.1.git20131001.7f44937
+- Initial package
diff --git a/sources b/sources
index e69de29..88d727d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+f00ac6896cdf406959b498730e57918b  clinfo-0.1-7f44937.tar.gz


More information about the scm-commits mailing list