File mingw64-protobuf-c.spec of Package mingw64-protobuf-c
#
# spec file for package mingw64-protobuf-c
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: mingw64-protobuf-c
Version: 1.1.1
Release: 0
Summary: C bindings for Google's Protocol Buffers
License: Apache-2.0
Group: Development/Libraries/C and C++
Url: https://github.com/protobuf-c/protobuf-c
Source0: https://github.com/protobuf-c/protobuf-c/releases/download/v%{version}/protobuf-c-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: doxygen
BuildRequires: libtool
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-pkg-config
#!BuildIgnore: post-build-checks
%_mingw64_package_header_debug
BuildArch: noarch
%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.
%package -n mingw64-libprotobuf-c-1
Summary: C bindings for Google's Protocol Buffers
Group: System/Libraries
Obsoletes: %{name}
Provides: %{name}
%description -n mingw64-libprotobuf-c-1
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.
%package devel
Summary: C bindings for Google's Protocol Buffers (development files)
Group: Development/Libraries/C and C++
%description devel
This package provides a code generator and runtime libraries to use Protocol
Buffers from pure C (not C++).
%lang_package
%_mingw64_debug_package
%prep
%setup -q -n protobuf-c-%{version}
%build
libtoolize --force --copy --install
autoreconf -fi
echo "lt_cv_deplibs_check_method='pass_all'" >> %{_mingw64_cache}
PATH="%{_mingw64_bindir}:$PATH"; export PATH; \
%{_mingw64_configure} \
--enable-shared --disable-static --disable-protoc --with-endianness=little
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}
%install
%{_mingw64_make} DESTDIR=%{buildroot} install
%files -n mingw64-libprotobuf-c-1
%defattr(-,root,root)
%{_mingw64_bindir}/libprotobuf-c-1.dll
%files devel
%defattr(-,root,root)
%{_mingw64_includedir}/google/protobuf-c/protobuf-c.h
%{_mingw64_includedir}/protobuf-c/protobuf-c.h
%{_mingw64_libdir}/libprotobuf-c.dll.a
%{_mingw64_libdir}/pkgconfig/libprotobuf-c.pc
%changelog