diff --git a/README.md b/README.md index 1efffbc..35e4b93 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libclc +libclc is an open source, BSD licensed implementation of the library requirements of the OpenCL C programming language, as specified by the OpenCL 1.1 Specification. + diff --git a/libclc.spec b/libclc.spec new file mode 100644 index 0000000..29d3e8c --- /dev/null +++ b/libclc.spec @@ -0,0 +1,56 @@ +Name: libclc +Version: 20140919git +Release: 1mamba +Summary: An implementation of the library requirements of the OpenCL C programming language +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://libclc.llvm.org/ +## GITSOURCE http://llvm.org/git/libclc.git master +Source: http://llvm.org/git/libclc.git/master/libclc-%{version}.tar.bz2 +License: BSD +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRequires: libllvm-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +libclc is an open source, BSD licensed implementation of the library requirements of the OpenCL C programming language, as specified by the OpenCL 1.1 Specification. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: pkg-config + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%prep +%setup -q + +%build +./configure.py \ + --prefix=%{_prefix} + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/clc +%{_includedir}/clc/* +%dir %{_prefix}/lib/clc +%{_prefix}/lib/clc/*.bc +%{_datadir}/pkgconfig/libclc.pc +%doc README.TXT + +%changelog +* Fri Sep 19 2014 Silvan Calarco 20140919git-1mamba +- package created using the webbuild interface