Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
science:machinelearning
Shark
Shark.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File Shark.spec of Package Shark
# # spec file for package Shark # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define min_boost_version 1.48.0 %define libname libshark0 Name: Shark Summary: C++ machine learning library License: LGPL-3.0 Group: Development/Languages/C and C++ Version: 3.1.4 Release: 0 URL: http://www.shark-ml.org/ Source0: https://github.com/Shark-ML/Shark/archive/v%{version}.zip#/%{name}-%{version}.zip # PATCH-FIX-UPSTREAM - Shark-fix_lib64_usage.patch: install in lib64 instead of lib for 64-bit Patch1: Shark-fix_lib64_usage.patch BuildRequires: cblas-devel BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: hdf5-devel BuildRequires: libboost_date_time-devel >= %{min_boost_version} BuildRequires: libboost_filesystem-devel >= %{min_boost_version} BuildRequires: libboost_program_options-devel >= %{min_boost_version} BuildRequires: libboost_serialization-devel >= %{min_boost_version} BuildRequires: libboost_system-devel >= %{min_boost_version} BuildRequires: libboost_test-devel >= %{min_boost_version} BuildRequires: libboost_thread-devel >= %{min_boost_version} BuildRequires: openblas-devel BuildRequires: unzip BuildRequires: zlib-devel %description Shark is a fast, modular, feature-rich open-source C++ machine learning library. It provides methods for linear and nonlinear optimization, kernel-based learning algorithms, neural networks, and various other machine learning techniques. It serves as a powerful toolbox for real world applications as well as for research. Shark works on Windows, MacOS X, and Linux. It comes with extensive documentation. %package -n %{libname} Summary: Libraries for SHARK Group: Development/Languages/C and C++ %description -n %{libname} This package contains the development files required to compile programs that use SHARK. %package examples Summary: Examples for SHARK C++ machine learning library Group: Development/Languages/C and C++ Requires: %{libname} == %{version} %description examples This package contains some examples to use SHARK. %package devel Summary: Development header files and libraries for SHARK Group: Development/Languages/C and C++ Requires: %{libname} == %{version} Requires: %{name} == %{version} %description devel This package contains the development files required to compile programs that use SHARK. %prep %setup -q %patch1 -p1 %build %cmake \ -DENABLE_CBLAS:BOOL=ON \ -DENABLE_OPENMP:BOOL=ON \ -DBUILD_TESTING:BOOL=ON \ -DBUILD_EXAMPLES:BOOL=ON make %{?_smp_mflags} %install %cmake_install pushd %{buildroot}/usr/share/shark/examples/ # Move examples ELF binaries to _bindir for file in \ Data/Datasets Data/Normalization Data/Subsets \ EA/MOO/AdditiveEpsilonIndicatorMain EA/MOO/MOCMAExperiment EA/MOO/MOCMASimple EA/SOO/AckleyES EA/SOO/Archive EA/SOO/CMAExperiment EA/SOO/CMAPlot EA/SOO/CMASimple EA/SOO/ElitistCMASimpleMain EA/SOO/TSP \ Statistiscs/Statistics \ Supervised/CARTTutorial Supervised/CSvmGridSearchTutorial Supervised/CSvmLinear Supervised/CSvmMaxLikelihoodMS Supervised/CSvmTutorial Supervised/CVFolds \ Supervised/DeepNetworkTraining Supervised/DeepNetworkTrainingRBM Supervised/FFNNBasicTutorial Supervised/FFNNMultiClassCrossEntropy \ Supervised/KNNCrossValidationTutorial Supervised/KNNTutorial Supervised/KTA-tutorial Supervised/KernelBudgetedSGDTutorial Supervised/KernelLogisticRegression Supervised/KernelRegression \ Supervised/KernelSelection Supervised/LDATutorial Supervised/LassoRegression Supervised/McSvm Supervised/McSvmLinear Supervised/MklKernelTutorial Supervised/MultiTaskSvm \ Supervised/OneVersusOne Supervised/RFTutorial Supervised/StoppingCriteriaTutorial Supervised/SubrangeKernelTutorial Supervised/linearRegressionTutorial Supervised/quickstartTutorial Supervised/regressionTutorial \ Supervised/VersatileClassificationTutorial-LDA Supervised/VersatileClassificationTutorial-NN Supervised/VersatileClassificationTutorial-Network \ Supervised/VersatileClassificationTutorial-RF Supervised/VersatileClassificationTutorial-SVM Supervised/elmTutorial \ Unsupervised/AutoencoderTutorial Unsupervised/BinaryRBM Unsupervised/DenoisingAutoencoderTutorial Unsupervised/HierarchicalClustering Unsupervised/KMeansTutorial \ Unsupervised/MaxLogLikelihoodTutorial Unsupervised/OneClassSvm Unsupervised/PCA Unsupervised/PCATutorial Unsupervised/SparseAETutorial; do mkdir -p %{buildroot}%{_bindir} mv $file %{buildroot}%{_bindir}/`basename $file` done popd %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %files %doc README.txt %license COPYING COPYING.LESSER %{_bindir}/SharkVersion %files -n %{libname} %{_libdir}/*.so.* %files examples %dir %{_datadir}/shark %{_datadir}/shark/* %{_bindir}/* %exclude %{_bindir}/SharkVersion %files devel %{_includedir}/* %{_libdir}/*.so %dir %{_libdir}/cmake/Shark %{_libdir}/cmake/Shark/*.cmake %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor