Make various sub-packages noarch
This commit is contained in:
parent
887f67f89e
commit
d3e175851c
@ -111,6 +111,7 @@ lacks descriptors, reflection, and some other features.
|
|||||||
%if %{with python}
|
%if %{with python}
|
||||||
%package python
|
%package python
|
||||||
Summary: Python bindings for Google Protocol Buffers
|
Summary: Python bindings for Google Protocol Buffers
|
||||||
|
BuildArch: noarch
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: python-setuptools
|
||||||
# For tests
|
# For tests
|
||||||
@ -124,6 +125,7 @@ This package contains Python libraries for Google Protocol Buffers
|
|||||||
|
|
||||||
%package vim
|
%package vim
|
||||||
Summary: Vim syntax highlighting for Google Protocol Buffers descriptions
|
Summary: Vim syntax highlighting for Google Protocol Buffers descriptions
|
||||||
|
BuildArch: noarch
|
||||||
Requires: vim-enhanced
|
Requires: vim-enhanced
|
||||||
|
|
||||||
%description vim
|
%description vim
|
||||||
@ -132,6 +134,7 @@ descriptions in Vim editor
|
|||||||
|
|
||||||
%package emacs
|
%package emacs
|
||||||
Summary: Emacs mode for Google Protocol Buffers descriptions
|
Summary: Emacs mode for Google Protocol Buffers descriptions
|
||||||
|
BuildArch: noarch
|
||||||
Requires: emacs(bin) >= 0%{emacs_version}
|
Requires: emacs(bin) >= 0%{emacs_version}
|
||||||
|
|
||||||
%description emacs
|
%description emacs
|
||||||
@ -140,6 +143,7 @@ descriptions in the Emacs editor.
|
|||||||
|
|
||||||
%package emacs-el
|
%package emacs-el
|
||||||
Summary: Elisp source files for Google protobuf Emacs mode
|
Summary: Elisp source files for Google protobuf Emacs mode
|
||||||
|
BuildArch: noarch
|
||||||
Requires: protobuf-emacs = %{version}
|
Requires: protobuf-emacs = %{version}
|
||||||
|
|
||||||
%description emacs-el
|
%description emacs-el
|
||||||
@ -151,7 +155,7 @@ under GNU Emacs. You do not need to install this package to use
|
|||||||
%if %{with java}
|
%if %{with java}
|
||||||
%package java
|
%package java
|
||||||
Summary: Java Protocol Buffers runtime library
|
Summary: Java Protocol Buffers runtime library
|
||||||
|
BuildArch: noarch
|
||||||
BuildRequires: maven-local
|
BuildRequires: maven-local
|
||||||
BuildRequires: mvn(com.google.code.gson:gson)
|
BuildRequires: mvn(com.google.code.gson:gson)
|
||||||
BuildRequires: mvn(com.google.guava:guava)
|
BuildRequires: mvn(com.google.guava:guava)
|
||||||
@ -169,6 +173,7 @@ This package contains Java Protocol Buffers runtime library.
|
|||||||
|
|
||||||
%package java-util
|
%package java-util
|
||||||
Summary: Utilities for Protocol Buffers
|
Summary: Utilities for Protocol Buffers
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
%description java-util
|
%description java-util
|
||||||
Utilities to work with protos. It contains JSON support
|
Utilities to work with protos. It contains JSON support
|
||||||
@ -176,12 +181,14 @@ as well as utilities to work with proto3 well-known types.
|
|||||||
|
|
||||||
%package javadoc
|
%package javadoc
|
||||||
Summary: Javadoc for %{name}-java
|
Summary: Javadoc for %{name}-java
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
%description javadoc
|
%description javadoc
|
||||||
This package contains the API documentation for %{name}-java.
|
This package contains the API documentation for %{name}-java.
|
||||||
|
|
||||||
%package javanano
|
%package javanano
|
||||||
Summary: Protocol Buffer JavaNano API
|
Summary: Protocol Buffer JavaNano API
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
%description javanano
|
%description javanano
|
||||||
JavaNano is a special code generator and runtime
|
JavaNano is a special code generator and runtime
|
||||||
@ -233,7 +240,7 @@ make %{?_smp_mflags}
|
|||||||
|
|
||||||
%if %{with python}
|
%if %{with python}
|
||||||
pushd python
|
pushd python
|
||||||
python ./setup.py build
|
%py2_build
|
||||||
sed -i -e 1d build/lib/google/protobuf/descriptor_pb2.py
|
sed -i -e 1d build/lib/google/protobuf/descriptor_pb2.py
|
||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
@ -319,10 +326,10 @@ install -p -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{emacs_startdir}
|
|||||||
|
|
||||||
%if %{with python}
|
%if %{with python}
|
||||||
%files python
|
%files python
|
||||||
%dir %{python_sitelib}/google
|
%dir %{python2_sitelib}/google
|
||||||
%{python_sitelib}/google/protobuf/
|
%{python2_sitelib}/google/protobuf/
|
||||||
%{python_sitelib}/protobuf-%{version}-py2.?.egg-info/
|
%{python2_sitelib}/protobuf-%{version}-py2.?.egg-info/
|
||||||
%{python_sitelib}/protobuf-%{version}-py2.?-nspkg.pth
|
%{python2_sitelib}/protobuf-%{version}-py2.?-nspkg.pth
|
||||||
%doc python/README.md
|
%doc python/README.md
|
||||||
%doc examples/add_person.py examples/list_people.py examples/addressbook.proto
|
%doc examples/add_person.py examples/list_people.py examples/addressbook.proto
|
||||||
%endif
|
%endif
|
||||||
@ -339,7 +346,6 @@ install -p -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{emacs_startdir}
|
|||||||
%{emacs_lispdir}/protobuf-mode.el
|
%{emacs_lispdir}/protobuf-mode.el
|
||||||
|
|
||||||
%if %{with java}
|
%if %{with java}
|
||||||
|
|
||||||
%files java -f java/.mfiles-protobuf-java
|
%files java -f java/.mfiles-protobuf-java
|
||||||
%doc examples/AddPerson.java examples/ListPeople.java
|
%doc examples/AddPerson.java examples/ListPeople.java
|
||||||
%doc java/README.md
|
%doc java/README.md
|
||||||
@ -356,10 +362,12 @@ install -p -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{emacs_startdir}
|
|||||||
|
|
||||||
%files parent -f java/.mfiles-protobuf-parent
|
%files parent -f java/.mfiles-protobuf-parent
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Nov 04 2016 Orion Poplawski <orion@cora.nwra.com> - 3.1.0-2
|
||||||
|
- Make various sub-packages noarch
|
||||||
|
|
||||||
* Fri Nov 04 2016 gil cattaneo <puntogil@libero.it> 3.1.0-2
|
* Fri Nov 04 2016 gil cattaneo <puntogil@libero.it> 3.1.0-2
|
||||||
- enable javanano
|
- enable javanano
|
||||||
- minor changes to adapt to current guidelines
|
- minor changes to adapt to current guidelines
|
||||||
|
Loading…
Reference in New Issue
Block a user