-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtensorflow.spec
More file actions
executable file
·56 lines (43 loc) · 1.11 KB
/
tensorflow.spec
File metadata and controls
executable file
·56 lines (43 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Name: tensorflow
Version: 0.8.0
Release: 1.20160419.alonid%{?dist}
Summary: test
License: Apache License 2.0
URL: http://www.tensorflow.org/
Source: nothing
BuildRequires: bazel
BuildRequires: python-devel
BuildRequires: python-six
BuildRequires: python-wheel
BuildRequires: python-pip
BuildRequires: swig
BuildRequires: git
BuildRequires: gcc-c++
BuildRequires: numpy
BuildRequires: zlib-devel
BuildRequires: pkgconfig
%description
test
%prep
[ ! -d tensorflow ] && \
git clone --depth 1 --recursive https://github.com/tensorflow/tensorflow.git -b r0.8
cd tensorflow
echo -e '\nn' | ./configure
%build
export LANG=en_US.UTF-8
cd tensorflow
bazel build --verbose_failures -c opt //tensorflow/tools/pip_package:build_pip_package
%check
%install
cd tensorflow
rm -rf dist-temp
bazel-bin/tensorflow/tools/pip_package/build_pip_package `pwd`/dist-temp
ls -l dist-temp
cd dist-temp
mkdir -p $RPM_BUILD_ROOT/%{_prefix}/share/tensorflow
cp -a * $RPM_BUILD_ROOT/%{_prefix}/share/tensorflow
%clean
rm -rf $RPM_BUILD_ROOT
%files
%{_prefix}/share/tensorflow
%changelog