Commit 95a07e78 authored by Michał Kępień's avatar Michał Kępień
Browse files

Modify *.spec to enable building as part of a Software Collection

parent 15476419
Name: protobuf-c
%bcond_with scl
%if %{with scl}
%global scl isc-bind
%{?scl:%scl_package protobuf-c}
%{!?scl:%global pkg_name %{name}}
Name: %{?scl_prefix}protobuf-c
Version: 1.3.0
Release: 4%{?dist}
Release: 5%{?dist}
Summary: C bindings for Google's Protocol Buffers
License: BSD
BuildRequires: autoconf automake libtool
BuildRequires: gcc-c++
BuildRequires: pkgconfig(protobuf)
%{?scl:BuildRequires: %{scl}-build}
%{?scl:BuildRequires: %scl_runtime}
%{?scl:Requires: %scl_runtime}
Protocol Buffers are a way of encoding structured data in an efficient yet
extensible format. This package provides a code generator and run-time
......@@ -35,12 +48,12 @@ Requires: %{name}-compiler%{?_isa} = %{version}-%{release}
This package contains protobuf-c headers and libraries.
%setup -q
%setup -q -n %{pkg_name}-%{version}
# autoreconf -ifv
%configure --disable-static
%{?scl:scl enable %scl -- }%make_build
make check
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment