Skip to content

Commit

Permalink
Remove protobuf-c static sub-package. (microsoft#8283)
Browse files Browse the repository at this point in the history
Co-authored-by: lanzeliu <[email protected]>
  • Loading branch information
liulanze and lanzeliu authored Mar 7, 2024
1 parent 097492e commit e9febbf
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions SPECS/protobuf-c/protobuf-c.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Summary: Google's data interchange format - C implementation
Name: protobuf-c
Version: 1.5.0
Release: 2%{?dist}
Release: 3%{?dist}
License: BSD-3-Clause
Vendor: Microsoft Corporation
Distribution: Azure Linux
Expand Down Expand Up @@ -31,14 +31,6 @@ Requires: %{name} = %{version}-%{release}
The protobuf-c-devel package contains libraries and header files for
developing applications that use protobuf-c.

%package static
Summary: protobuf-c static lib
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}

%description static
The protobuf-c-static package contains static protobuf-c libraries.

%prep
%autosetup -p1

Expand All @@ -49,6 +41,7 @@ The protobuf-c-static package contains static protobuf-c libraries.
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
find %{buildroot} -type f -name "libprotobuf-c.a" -delete -print

%check
%make_build check
Expand All @@ -68,11 +61,10 @@ find %{buildroot} -type f -name "*.la" -delete -print
%{_libdir}/pkgconfig/*
%{_libdir}/libprotobuf-c.so

%files static
%defattr(-,root,root)
%{_libdir}/libprotobuf-c.a

%changelog
* Wed Mar 06 2024 Lanze Liu <[email protected]> - 1.5.0-3
- Remove protobuf-c static sub-package

* Tue Mar 05 2024 Lanze Liu <[email protected]> - 1.5.0-2
- Add missing dependencies protobuf and protobuf-static

Expand Down

0 comments on commit e9febbf

Please sign in to comment.