Name: tinycbor Version: 0.2 Release: 1%{?dist} Summary: Concise Binary Object Representation (CBOR) Library License: MIT URL: https://github.com/01org/tinycbor Source0: https://github.com/01org/tinycbor/archive/v0.2.tar.gz # Change the build prefix from /usr/local to /usr Patch0: tinycbor_prefix.patch # Change _BSD_SOURCE to _DEFAULT_SOURCE to make the compiler happy Patch1: tinycbor_DEFAULT_SOURCE.patch #BuildRequires: #Requires: %description Concise Binary Object Representation (CBOR) Library %prep %setup -q %patch0 -p1 %patch1 -p1 %build make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT %make_install %files /usr/bin/cbordump %doc TODO VERSION %package devel Provides: %{name}-static = %{version}-%{release} Summary: Static library for Concise Binary Object Representation (CBOR) Library %description devel Concise Binary Object Representation (CBOR) Library %files devel %{libdir}/libtinycbor.a %{libdir}/pkgconfig/tinycbor.pc %{includedir}/tinycbor %changelog * Mon Oct 5 2015 Jared Smith - Initial packaging