2011-09-15 14:08:34 +02:00
|
|
|
#
|
|
|
|
# spec file for package protobuf-c
|
|
|
|
#
|
2023-03-23 20:27:38 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2011-09-15 14:08:34 +02:00
|
|
|
# Copyright (c) 2011 Pascal Bleser
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-10-05 12:18:13 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-09-15 14:08:34 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2019-06-07 17:40:26 +02:00
|
|
|
%define sover 1
|
2011-09-15 14:08:34 +02:00
|
|
|
Name: protobuf-c
|
2022-07-11 09:48:13 +02:00
|
|
|
Version: 1.4.1
|
2015-03-30 19:31:57 +02:00
|
|
|
Release: 0
|
2011-09-15 14:08:34 +02:00
|
|
|
Summary: C bindings for Google's Protocol Buffers
|
2015-03-30 19:31:57 +02:00
|
|
|
License: BSD-3-Clause
|
2011-09-15 14:08:34 +02:00
|
|
|
Group: Development/Tools/Other
|
2019-06-07 17:40:26 +02:00
|
|
|
URL: https://github.com/protobuf-c/protobuf-c
|
2019-08-18 18:46:42 +02:00
|
|
|
Source: https://github.com/protobuf-c/protobuf-c/releases/download/v%version/%name-%version.tar.gz
|
2011-09-15 14:08:34 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: pkgconfig
|
2015-03-30 19:31:57 +02:00
|
|
|
BuildRequires: protobuf-devel >= 2.6.0
|
2011-09-15 14:08:34 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package provides a code generator and runtime libraries to use Protocol
|
|
|
|
Buffers from pure C (not C++).
|
|
|
|
|
|
|
|
It uses a modified version of protoc called protoc-c.
|
|
|
|
|
2019-08-18 18:46:42 +02:00
|
|
|
%package -n libprotobuf-c%sover
|
2011-09-15 14:08:34 +02:00
|
|
|
Summary: C bindings for Google's Protocol Buffers
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2019-08-18 18:46:42 +02:00
|
|
|
%description -n libprotobuf-c%sover
|
2011-09-15 14:08:34 +02:00
|
|
|
This package provides a code generator and runtime libraries to use Protocol
|
|
|
|
Buffers from pure C (not C++).
|
|
|
|
|
|
|
|
%package -n libprotobuf-c-devel
|
|
|
|
Summary: C bindings for Google's Protocol Buffers
|
|
|
|
Group: Development/Libraries/C and C++
|
2019-08-18 18:46:42 +02:00
|
|
|
Requires: libprotobuf-c%sover = %version
|
2023-04-24 15:59:18 +02:00
|
|
|
Recommends: protobuf-devel
|
2021-11-23 14:27:52 +01:00
|
|
|
Provides: %name = %version
|
2022-07-05 19:19:17 +02:00
|
|
|
Obsoletes: %name <= 1.4.0
|
2011-09-15 14:08:34 +02:00
|
|
|
|
|
|
|
%description -n libprotobuf-c-devel
|
|
|
|
This package provides a code generator and runtime libraries to use Protocol
|
|
|
|
Buffers from pure C (not C++).
|
|
|
|
|
|
|
|
%prep
|
2019-08-18 18:46:42 +02:00
|
|
|
%autosetup -p1
|
2011-09-15 14:08:34 +02:00
|
|
|
|
|
|
|
%build
|
2022-07-05 19:19:17 +02:00
|
|
|
%{!?make_build:%define make_build make -O %{?_smp_mflags} V=1 VERBOSE=1}
|
2015-06-09 13:34:38 +02:00
|
|
|
autoreconf -fvi
|
2022-07-05 19:19:17 +02:00
|
|
|
%configure \
|
|
|
|
--enable-static=no
|
|
|
|
|
2021-05-19 09:33:24 +02:00
|
|
|
%make_build
|
2011-09-15 14:08:34 +02:00
|
|
|
|
|
|
|
%install
|
2018-02-06 17:59:07 +01:00
|
|
|
%make_install
|
2022-07-05 19:19:17 +02:00
|
|
|
rm %buildroot/%_libdir/*.la
|
|
|
|
|
|
|
|
%check
|
|
|
|
make check
|
2011-09-15 14:08:34 +02:00
|
|
|
|
2019-08-18 18:46:42 +02:00
|
|
|
%post -n libprotobuf-c%sover -p /sbin/ldconfig
|
|
|
|
%postun -n libprotobuf-c%sover -p /sbin/ldconfig
|
2011-09-15 14:08:34 +02:00
|
|
|
|
2019-08-18 18:46:42 +02:00
|
|
|
%files -n libprotobuf-c%sover
|
2019-06-07 17:40:26 +02:00
|
|
|
%license LICENSE
|
2019-08-18 18:46:42 +02:00
|
|
|
%_libdir/libprotobuf-c.so.%sover
|
|
|
|
%_libdir/libprotobuf-c.so.%sover.*
|
2011-09-15 14:08:34 +02:00
|
|
|
|
|
|
|
%files -n libprotobuf-c-devel
|
2021-11-19 19:23:32 +01:00
|
|
|
%doc ChangeLog TODO
|
2022-07-05 19:19:17 +02:00
|
|
|
%dir %_includedir/protobuf-c
|
|
|
|
%dir %_includedir/google
|
|
|
|
%dir %_includedir/google/protobuf-c
|
|
|
|
%_includedir/protobuf-c/*
|
|
|
|
%_includedir/google/protobuf-c/protobuf-c.h
|
2021-11-19 19:23:32 +01:00
|
|
|
%_bindir/protoc-c
|
|
|
|
%_bindir/protoc-gen-c
|
2019-08-18 18:46:42 +02:00
|
|
|
%_libdir/libprotobuf-c.so
|
|
|
|
%_libdir/pkgconfig/libprotobuf-c.pc
|
2011-09-15 14:08:34 +02:00
|
|
|
|
|
|
|
%changelog
|