Fix pre-build on systems w/out emacs (sane ones ;-)), minor new-world rpm cleanups
This commit is contained in:
parent
1f05c80c90
commit
3ccb200ee5
@ -9,9 +9,9 @@
|
|||||||
%define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
|
%define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%define emacs_version %(pkg-config emacs --modversion)
|
%global emacs_version %(pkg-config emacs --modversion)
|
||||||
%define emacs_lispdir %(pkg-config emacs --variable sitepkglispdir)
|
%global emacs_lispdir %(pkg-config emacs --variable sitepkglispdir)
|
||||||
%define emacs_startdir %(pkg-config emacs --variable sitestartdir)
|
%global emacs_startdir %(pkg-config emacs --variable sitestartdir)
|
||||||
|
|
||||||
Summary: Protocol Buffers - Google's data interchange format
|
Summary: Protocol Buffers - Google's data interchange format
|
||||||
Name: protobuf
|
Name: protobuf
|
||||||
@ -25,9 +25,9 @@ Source2: protobuf-init.el
|
|||||||
Patch1: protobuf-2.3.0-fedora-gtest.patch
|
Patch1: protobuf-2.3.0-fedora-gtest.patch
|
||||||
Patch2: protobuf-2.4.1-java-fixes.patch
|
Patch2: protobuf-2.4.1-java-fixes.patch
|
||||||
URL: http://code.google.com/p/protobuf/
|
URL: http://code.google.com/p/protobuf/
|
||||||
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
||||||
BuildRequires: automake autoconf libtool pkgconfig zlib-devel
|
BuildRequires: automake autoconf libtool pkgconfig zlib-devel
|
||||||
BuildRequires: emacs(bin), emacs-el >= 24.1
|
BuildRequires: emacs
|
||||||
|
BuildRequires: emacs-el >= 24.1
|
||||||
%if %{with gtest}
|
%if %{with gtest}
|
||||||
BuildRequires: gtest-devel
|
BuildRequires: gtest-devel
|
||||||
%endif
|
%endif
|
||||||
@ -135,7 +135,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
|
||||||
Group: Applications/Editors
|
Group: Applications/Editors
|
||||||
Requires: emacs(bin) >= %{emacs_version}
|
Requires: emacs >= 0%{emacs_version}
|
||||||
|
|
||||||
%description emacs
|
%description emacs
|
||||||
This package contains syntax highlighting for Google Protocol Buffers
|
This package contains syntax highlighting for Google Protocol Buffers
|
||||||
@ -144,7 +144,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
|
||||||
Group: Applications/Editors
|
Group: Applications/Editors
|
||||||
Requires: protobuf-emacs >= %{emacs_version}
|
Requires: protobuf-emacs >= 0%{emacs_version}
|
||||||
|
|
||||||
%description emacs-el
|
%description emacs-el
|
||||||
This package contains the elisp source files for %{pkgname}-emacs
|
This package contains the elisp source files for %{pkgname}-emacs
|
||||||
@ -269,9 +269,6 @@ install -p -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{emacs_startdir}
|
|||||||
%post compiler -p /sbin/ldconfig
|
%post compiler -p /sbin/ldconfig
|
||||||
%postun compiler -p /sbin/ldconfig
|
%postun compiler -p /sbin/ldconfig
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf %{buildroot}
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-, root, root, -)
|
%defattr(-, root, root, -)
|
||||||
%{_libdir}/libprotobuf.so.*
|
%{_libdir}/libprotobuf.so.*
|
||||||
|
Loading…
Reference in New Issue
Block a user