# remirepo/fedora spec file for libmustache # # Copyright (c) 2017 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # %global libname libmustache %global gh_commit 081952948f6e50f0eeb116fd652585813f31a2ab %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner jbboehr %global gh_project %{libname} %global spec_commit b96be9fd4c6d6984828d93169fe7e86d8a8aec2f %global spec_short %(c=%{spec_commit}; echo ${c:0:7}) %global spec_owner jbboehr %global spec_project mustache-spec Name: %{libname} Version: 0.4.3 Release: 1%{?dist} Group: System Environment/Libraries Summary: Mustache C++ library License: MIT URL: https://github.com/%{gh_owner}/%{gh_project} Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}%{?prever}-%{gh_short}.tar.gz Source1: https://github.com/%{spec_owner}/%{spec_project}/archive/%{spec_commit}/%{spec_project}-%{gh_short}.tar.gz BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool BuildRequires: libyaml-devel BuildRequires: libstdc++-devel BuildRequires: gcc-c++ %description C++ implementation of Mustache[1]. [1] http://mustache.github.io/ %package devel Group: Development/Libraries Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package -n mustache Summary: Command line tools from %{libname} Group: Applications/System Requires: %{name}%{?_isa} = %{version}-%{release} %description -n mustache This package provides mustache command line tool split off %{libname}. %prep %setup -qn %{gh_project}-%{gh_commit} -a1 rmdir spec mv %{spec_project}-%{spec_commit} spec autoreconf -fiv %build %configure make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} rm %{buildroot}%{_libdir}/*.{a,la} %check make test %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %{!?_licensedir:%global license %%doc} %license LICENSE* %{_libdir}/%{libname}.so.4* %files devel %{_includedir}/mustache/ %{_libdir}/%{libname}.so %{_libdir}/pkgconfig/mustache.pc %files -n mustache %{_bindir}/mustache %changelog * Thu Jun 8 2017 Remi Collet - 0.4.3-1 - initial package