Stop packaging static libraries
Nothing currently uses them, and the guidelines discourage packaging them: https://docs.fedoraproject.org/en-US/packaging-guidelines/#packaging-static-libraries
This commit is contained in:
parent
5f2bb87c55
commit
fcf86db54b
@ -19,7 +19,7 @@ Name: protobuf
|
|||||||
# “patch” updates of protobuf.
|
# “patch” updates of protobuf.
|
||||||
Version: 3.19.6
|
Version: 3.19.6
|
||||||
%global so_version 30
|
%global so_version 30
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
|
|
||||||
# The entire source is BSD-3-Clause, except the following files, which belong
|
# The entire source is BSD-3-Clause, except the following files, which belong
|
||||||
# to the build system; are unpackaged maintainer utility scripts; or are used
|
# to the build system; are unpackaged maintainer utility scripts; or are used
|
||||||
@ -139,17 +139,12 @@ Requires: protobuf = %{version}-%{release}
|
|||||||
Requires: protobuf-compiler = %{version}-%{release}
|
Requires: protobuf-compiler = %{version}-%{release}
|
||||||
Requires: zlib-devel
|
Requires: zlib-devel
|
||||||
|
|
||||||
|
Obsoletes: protobuf-static < 3.19.6-4
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
This package contains Protocol Buffers compiler for all languages and
|
This package contains Protocol Buffers compiler for all languages and
|
||||||
C++ headers and libraries
|
C++ headers and libraries
|
||||||
|
|
||||||
%package static
|
|
||||||
Summary: Static development files for protobuf
|
|
||||||
Requires: protobuf-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description static
|
|
||||||
Static libraries for Protocol Buffers
|
|
||||||
|
|
||||||
%package lite
|
%package lite
|
||||||
Summary: Protocol Buffers LITE_RUNTIME libraries
|
Summary: Protocol Buffers LITE_RUNTIME libraries
|
||||||
|
|
||||||
@ -165,6 +160,8 @@ Summary: Protocol Buffers LITE_RUNTIME development libraries
|
|||||||
Requires: protobuf-devel = %{version}-%{release}
|
Requires: protobuf-devel = %{version}-%{release}
|
||||||
Requires: protobuf-lite = %{version}-%{release}
|
Requires: protobuf-lite = %{version}-%{release}
|
||||||
|
|
||||||
|
Obsoletes: protobuf-lite-static < 3.19.6-4
|
||||||
|
|
||||||
%description lite-devel
|
%description lite-devel
|
||||||
This package contains development libraries built with
|
This package contains development libraries built with
|
||||||
optimize_for = LITE_RUNTIME.
|
optimize_for = LITE_RUNTIME.
|
||||||
@ -173,18 +170,6 @@ The "optimize_for = LITE_RUNTIME" option causes the compiler to generate code
|
|||||||
which only depends libprotobuf-lite, which is much smaller than libprotobuf but
|
which only depends libprotobuf-lite, which is much smaller than libprotobuf but
|
||||||
lacks descriptors, reflection, and some other features.
|
lacks descriptors, reflection, and some other features.
|
||||||
|
|
||||||
%package lite-static
|
|
||||||
Summary: Static development files for protobuf-lite
|
|
||||||
Requires: protobuf-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description lite-static
|
|
||||||
This package contains static development libraries built with
|
|
||||||
optimize_for = LITE_RUNTIME.
|
|
||||||
|
|
||||||
The "optimize_for = LITE_RUNTIME" option causes the compiler to generate code
|
|
||||||
which only depends libprotobuf-lite, which is much smaller than libprotobuf but
|
|
||||||
lacks descriptors, reflection, and some other features.
|
|
||||||
|
|
||||||
%if %{with python}
|
%if %{with python}
|
||||||
%package -n python3-protobuf
|
%package -n python3-protobuf
|
||||||
Summary: Python bindings for Google Protocol Buffers
|
Summary: Python bindings for Google Protocol Buffers
|
||||||
@ -334,7 +319,7 @@ iconv -f iso8859-1 -t utf-8 CONTRIBUTORS.txt > CONTRIBUTORS.txt.utf8
|
|||||||
mv CONTRIBUTORS.txt.utf8 CONTRIBUTORS.txt
|
mv CONTRIBUTORS.txt.utf8 CONTRIBUTORS.txt
|
||||||
export PTHREAD_LIBS="-lpthread"
|
export PTHREAD_LIBS="-lpthread"
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
%configure
|
%configure --disable-static
|
||||||
|
|
||||||
# -Wno-error=type-limits:
|
# -Wno-error=type-limits:
|
||||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1838470
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1838470
|
||||||
@ -418,10 +403,6 @@ install -p -m 0644 %{SOURCE2} %{buildroot}%{_emacs_sitestartdir}
|
|||||||
%{_emacs_sitelispdir}/protobuf/
|
%{_emacs_sitelispdir}/protobuf/
|
||||||
%{_emacs_sitestartdir}/protobuf-init.el
|
%{_emacs_sitestartdir}/protobuf-init.el
|
||||||
|
|
||||||
%files static
|
|
||||||
%{_libdir}/libprotobuf.a
|
|
||||||
%{_libdir}/libprotoc.a
|
|
||||||
|
|
||||||
%files lite
|
%files lite
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{_libdir}/libprotobuf-lite.so.%{so_version}{,.*}
|
%{_libdir}/libprotobuf-lite.so.%{so_version}{,.*}
|
||||||
@ -430,9 +411,6 @@ install -p -m 0644 %{SOURCE2} %{buildroot}%{_emacs_sitestartdir}
|
|||||||
%{_libdir}/libprotobuf-lite.so
|
%{_libdir}/libprotobuf-lite.so
|
||||||
%{_libdir}/pkgconfig/protobuf-lite.pc
|
%{_libdir}/pkgconfig/protobuf-lite.pc
|
||||||
|
|
||||||
%files lite-static
|
|
||||||
%{_libdir}/libprotobuf-lite.a
|
|
||||||
|
|
||||||
%if %{with python}
|
%if %{with python}
|
||||||
%files -n python3-protobuf
|
%files -n python3-protobuf
|
||||||
%if %{with python_cpp}
|
%if %{with python_cpp}
|
||||||
@ -480,6 +458,9 @@ install -p -m 0644 %{SOURCE2} %{buildroot}%{_emacs_sitestartdir}
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Apr 26 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 3.19.6-4
|
||||||
|
- Stop packaging static libraries
|
||||||
|
|
||||||
* Tue Apr 25 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 3.19.6-3
|
* Tue Apr 25 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 3.19.6-3
|
||||||
- Remove unnecessary explicit pkgconfig dependencies
|
- Remove unnecessary explicit pkgconfig dependencies
|
||||||
- Remove an obsolete workaround for failing Java tests
|
- Remove an obsolete workaround for failing Java tests
|
||||||
|
Loading…
Reference in New Issue
Block a user