diff options
-rw-r--r-- | .gitignore | 7 | ||||
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | libmustache.spec | 109 |
3 files changed, 120 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1ab5c4f --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +package-*.xml +*.tgz +*.tar.gz +*.tar.xz +*.tar.xz.asc +*.src.rpm +*/*rpm diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..91b0fd5 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +SRCDIR := $(shell pwd) +NAME := $(shell basename $(SRCDIR)) +include ../../common/Makefile + diff --git a/libmustache.spec b/libmustache.spec new file mode 100644 index 0000000..877b440 --- /dev/null +++ b/libmustache.spec @@ -0,0 +1,109 @@ +# 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 <remi@remirepo.net> - 0.4.3-1 +- initial package |