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
%endif
%{?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
URL: https://github.com/protobuf-c/protobuf-c
Source0: https://github.com/protobuf-c/protobuf-c/releases/download/v%{version}/%{name}-%{version}.tar.gz
Source0: https://github.com/protobuf-c/protobuf-c/releases/download/v%{version}/%{pkg_name}-%{version}.tar.gz
BuildRequires: autoconf automake libtool
BuildRequires: gcc-c++
BuildRequires: pkgconfig(protobuf)
%{?scl:BuildRequires: %{scl}-build}
%{?scl:BuildRequires: %scl_runtime}
%{?scl:Requires: %scl_runtime}
%description
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.
%prep
%setup -q
%setup -q -n %{pkg_name}-%{version}
%build
# autoreconf -ifv
%configure --disable-static
%make_build
%{?scl:scl enable %scl -- }%make_build
%check
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