--- /dev/null
+Name: caffe
+Summary: Caffe is a deep learning framework made with expression, speed, and modularity in mind
+Version: 1.0
+Release: 0
+Group: Machine Learning Framework/Libraries
+License: BSD-2-Clause
+Source0: %{name}-%{version}.tar.gz
+Source1001: %{name}.manifest
+BuildRequires: cmake
+BuildRequires: boost-devel
+BuildRequires: glog-devel
+BuildRequires: gflags-devel
+BuildRequires: hdf5-devel
+BuildRequires: openblas-devel
+BuildRequires: lmdb-devel
+BuildRequires: protobuf-devel
+BuildRequires: pkgconfig(opencv)
+#BuildRequires: protobuf-devel >= 3.1.0
+#BuildRequires: pkgconfig(opencv) >= 3.4.0
+
+%description
+Caffe is a deep learning framework made with expression, speed, and modularity in mind
+%package devel
+Summary: Caffe is a deep learning framework made with expression, speed, and modularity in mind
+Group: multimedia
+Requires: %{name} = %{version}-%{release}
+
+
+%description devel
+%devel_desc
+
+%prep
+%setup -q
+cp %{SOURCE1001} .
+
+
+%build
+mkdir build
+cd build
+%cmake .. \
+ -DCPU_ONLY=ON \
+ -DBUILD_SHARED_LIBS=ON \
+ -DBUILD_python=OFF \
+ -DBUILD_docs=OFF \
+ -DBUILD_python_layer=OFF \
+ -DBUILD_matlab=OFF \
+ -DALLOW_LMDB_NOLOCK=OFF \
+ -DUSE_NCCL=OFF \
+ -DUSE_LEVELDB=OFF \
+ -DUSE_LMDB=OFF \
+ -DUSE_OPENCV=ON \
+ -DUSE_OPENMP=OFF \
+ -DBLAS=Open
+
+make %{?jobs:-j%jobs}
+
+
+%install
+rm -rf %{buildroot}
+cd build
+%make_install
+
+
+%post
+/sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%{_libdir}/*.so*
+%{_bindir}/*
+
+%files devel
+%{_includedir}/*
+/usr/python/caffe/*
+/usr/share/Caffe/*