Name: avro-c Version: 1.8.2 Release: 1%{?dist} Summary: A data serialization system License: Apache URL: https://avro.apache.org Source0: http://www-eu.apache.org/dist/avro/stable/c/%{name}-%{version}.tar.gz Patch0: 0001-Fix-pkg-config-files.patch Patch1: 0002-Fix-cmake-files.patch BuildRequires: cmake BuildRequires: jansson-devel BuildRequires: snappy-devel BuildRequires: xz-devel BuildRequires: zlib-devel %description Apache Avro is a data serialization system. Avro provides rich data structures; a binary data format; and a container file format, to store Avro-encoded data persistently. This package provides the "avro-c" implementation of Apache Avro in C. The C implementation supports: * binary encoding/decoding of all primitive and complex data types * storage to an Avro Object Container File * schema resolution, promotion and projection * validating and non-validating mode for writing Avro data The C implementation of Avro lacks RPC support. %package libs Summary: Library files for %{name} %description libs The %{name}-libs package contains libraries for applications that use %{name}. %package devel Summary: Development files for %{name} Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %autosetup -p1 %build %cmake . %make_build %install rm -rf $RPM_BUILD_ROOT %make_install find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' %check make test %ldconfig_scriptlets libs %files %license LICENSE %doc AUTHORS NEWS NOTICE README %{_bindir}/avroappend %{_bindir}/avrocat %{_bindir}/avromod %{_bindir}/avropipe %files libs %license LICENSE %{_libdir}/libavro.so.* %files devel %doc docs/index.txt docs/index.html %{_includedir}/avro %{_includedir}/avro.h %{_libdir}/libavro.a %{_libdir}/libavro.so %{_libdir}/pkgconfig/%{name}.pc %changelog * Thu Jun 14 2018 Felix Kaechele - initial package