2011-09-15 14:08:34 +02:00
|
|
|
#
|
|
|
|
# spec file for package protobuf-c
|
|
|
|
#
|
2020-04-02 21:27:05 +02:00
|
|
|
# Copyright (c) 2020 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
|
2020-04-02 21:27:05 +02:00
|
|
|
Version: 1.3.3
|
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
|
2015-03-30 19:31:57 +02:00
|
|
|
Source99: protobuf-c-rpmlintrc
|
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
|
2019-08-18 18:46:42 +02:00
|
|
|
Requires: libprotobuf-c-devel = %version
|
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
|
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
|
2019-08-18 18:46:42 +02:00
|
|
|
%define _lto_cflags %nil
|
2015-06-09 13:34:38 +02:00
|
|
|
autoreconf -fvi
|
2011-09-15 14:08:34 +02:00
|
|
|
%configure
|
2019-06-07 17:40:26 +02:00
|
|
|
make %{?_smp_mflags}
|
2011-09-15 14:08:34 +02:00
|
|
|
|
|
|
|
%install
|
2018-02-06 17:59:07 +01:00
|
|
|
%make_install
|
2019-08-18 18:46:42 +02:00
|
|
|
rm "%buildroot/%_libdir"/*.a "%buildroot/%_libdir"/*.la
|
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
|
|
|
|
|
|
|
%files
|
|
|
|
%doc ChangeLog TODO
|
2019-08-18 18:46:42 +02:00
|
|
|
%_bindir/protoc-c
|
|
|
|
%_bindir/protoc-gen-c
|
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
|
2019-08-18 18:46:42 +02:00
|
|
|
%_includedir/*/
|
|
|
|
%_libdir/libprotobuf-c.so
|
|
|
|
%_libdir/pkgconfig/libprotobuf-c.pc
|
2011-09-15 14:08:34 +02:00
|
|
|
|
|
|
|
%changelog
|