summaryrefslogtreecommitdiffstats
path: root/libmustache.spec
blob: 877b4404471df81c80217c20fa7722760901184e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
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