diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ad7cfe6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/ViennaCL-1.7.1.tar.gz diff --git a/dead.package b/dead.package deleted file mode 100644 index 5204a84..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Orphaned for 6+ weeks diff --git a/sources b/sources new file mode 100644 index 0000000..a78508d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +00939858309689d32247d6fe60383b88 ViennaCL-1.7.1.tar.gz diff --git a/viennacl.spec b/viennacl.spec new file mode 100644 index 0000000..be0cea8 --- /dev/null +++ b/viennacl.spec @@ -0,0 +1,118 @@ +%ifnarch %{ix86} x86_64 %{arm} +%bcond_with tests +%else +%bcond_without tests +%endif + +Name: viennacl +Version: 1.7.1 +Release: 7%{?dist} +Summary: Linear algebra and solver library using CUDA, OpenCL, and OpenMP +License: MIT and ISC +URL: http://viennacl.sourceforge.net/ +Source0: http://sourceforge.net/projects/%{name}/files/1.7.x/ViennaCL-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: gcc-c++ cmake +BuildRequires: opencl-headers ocl-icd-devel +Buildrequires: boost-devel +%if %{with tests} +BuildRequires: pocl +BuildRequires: clang +%endif + + +%description +ViennaCL provides high level C++ interfaces for linear algebra routines on CPUs +and GPUs using CUDA, OpenCL, and OpenMP. The focus is on generic implementations +of iterative solvers often used for large linear systems and simple integration +into existing projects. + +%package devel +Summary: Linear algebra and solver library using CUDA, OpenCL, and OpenMP + +%description devel +ViennaCL provides high level C++ interfaces for linear algebra routines on CPUs +and GPUs using CUDA, OpenCL, and OpenMP. The focus is on generic implementations +of iterative solvers often used for large linear systems and simple integration +into existing projects. + +%package doc +Summary: Documentation for %{name} + +%description doc +ViennaCL provides high level C++ interfaces for linear algebra routines on CPUs +and GPUs using CUDA, OpenCL, and OpenMP. The focus is on generic implementations +of iterative solvers often used for large linear systems and simple integration +into existing projects. + + +%prep +%autosetup -n ViennaCL-%{version} +rm -vrf CL + +%build +pushd build + %cmake .. \ + -DINSTALL_CMAKE_DIR:PATH=%{_datadir}/cmake/Modules \ + -DVIENNACL_WITH_OPENCL=ON \ + -DVIENNACL_WITH_OPENMP=ON \ + -DBUILD_TESTING=%{?with_tests:ON}%{!?with_tests:OFF} + %make_build +popd + + +%install +%make_install -C build + +%if %{with tests} +%check +pushd build + # https://sourceforge.net/p/viennacl/mailman/message/35517365/ + ctest -VV --output-on-failure -E "(bisect-opencl|sparse_prod-opencl)" +popd +%endif + +%files devel +%doc README +%license LICENSE +%{_includedir}/%{name}/ +%dir %{_datadir}/cmake +%dir %{_datadir}/cmake/Modules +%exclude %{_datadir}/cmake/Modules/FindOpenCL.cmake +%{_datadir}/cmake/Modules/ViennaCLConfig.cmake +%{_datadir}/cmake/Modules/ViennaCLConfigVersion.cmake + +%files doc +%doc doc/html + + +%changelog +* Fri Feb 09 2018 Fedora Release Engineering - 1.7.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 1.7.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 1.7.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Dec 29 2016 Ilya Gradina - 1.7.1-4 +- exclude in cmake modules FindOpenCL + +* Thu Dec 01 2016 Ilya Gradina - 1.7.1-3 +- trivial changes in spec file + +* Wed Nov 30 2016 Ilya Gradina - 1.7.1-2 +- skipped two tests, status tests: https://sourceforge.net/p/viennacl/mailman/message/35517365/ + +* Thu Jan 21 2016 Ilya Gradina - 1.7.1-1 +- update to 1.7.1 +- deleted example files + +* Sat Dec 19 2015 Ilya Gradina - 1.7.0-2 +- add devel, doc and example files +- trivial fixes in spec + +* Sun Dec 06 2015 Ilya Gradina - 1.7.0-1 +- Initial package