Changes of Revision 3
protobuf.spec
Changed
x
1
2
pushd python
3
python ./setup.py install --root=%{buildroot} --record=INSTALLED_FILES --optimize=1
4
popd
5
+rm -rf %{buildroot}%{python_sitelib}/google/__init__.py*
6
%endif
7
install -p -m 644 -D %{SOURCE1} %{buildroot}%{_datadir}/vim/vimfiles/ftdetect/proto.vim
8
install -p -m 644 -D editors/proto.vim %{buildroot}%{_datadir}/vim/vimfiles/syntax/proto.vim
9
10
%files python
11
%defattr(-, root, root, -)
12
%dir %{python_sitelib}/google
13
-%if 0%{?rhel} > 6 || 0%{?fedora}
14
-%exclude %{python_sitelib}/google/__init__.py*
15
-%endif
16
%{python_sitelib}/google/protobuf/
17
%{python_sitelib}/protobuf-%{version}-py2.?.egg-info
18
%if 0%{?rhel} > 6 || 0%{?fedora}
19