]> git.pld-linux.org Git - packages/yaml-cpp.git/blame - yaml-cpp.spec
- new URLs, updated to 0.6.2 (note: new soname; now uses C++11 instead of boost)
[packages/yaml-cpp.git] / yaml-cpp.spec
CommitLineData
42360a84
JB
1Summary: YAML parser and emitter for C++
2Summary(pl.UTF-8): Biblioteka C++ analizująca i generująca YAML
3Name: yaml-cpp
bf4156de
JB
4Version: 0.6.2
5Release: 1
42360a84
JB
6License: MIT
7Group: Libraries
bf4156de
JB
8#Source0Download: https://github.com/jbeder/yaml-cpp/releases
9Source0: https://github.com/jbeder/yaml-cpp/archive/%{name}-%{version}.tar.gz
10# Source0-md5: 5b943e9af0060d0811148b037449ef82
11Patch0: %{name}-gtest-no-install.patch
12URL: https://github.com/jbeder/yaml-cpp/
42360a84 13BuildRequires: cmake >= 2.6
bf4156de 14BuildRequires: libstdc++-devel >= 6:4.7
42360a84
JB
15BuildRequires: rpmbuild(macros) >= 1.605
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%description
19YAML parser and emitter for C++.
20
21%description -l pl.UTF-8
22Biblioteka C++ analizująca i generująca YAML.
23
24%package devel
25Summary: Header files for yaml-cpp library
26Summary(pl.UTF-8): Pliki nagłówkowe biblioteki yaml-cpp
27Group: Development/Libraries
28Requires: %{name} = %{version}-%{release}
bf4156de 29Requires: libstdc++-devel >= 6:4.7
42360a84
JB
30
31%description devel
32Header files for yaml-cpp library.
33
34%description devel -l pl.UTF-8
35Pliki nagłówkowe biblioteki yaml-cpp.
36
37%prep
bf4156de
JB
38%setup -q -n %{name}-%{name}-%{version}
39%patch0 -p1
42360a84
JB
40
41%build
bf4156de
JB
42install -d build
43cd build
44%cmake ..
42360a84
JB
45%{__make}
46
47%install
48rm -rf $RPM_BUILD_ROOT
49
bf4156de 50%{__make} -C build install \
42360a84
JB
51 DESTDIR=$RPM_BUILD_ROOT
52
53%clean
54rm -rf $RPM_BUILD_ROOT
55
56%post -p /sbin/ldconfig
57%postun -p /sbin/ldconfig
58
59%files
60%defattr(644,root,root,755)
bf4156de 61%doc LICENSE README.md
42360a84 62%attr(755,root,root) %{_libdir}/libyaml-cpp.so.*.*.*
bf4156de 63%attr(755,root,root) %ghost %{_libdir}/libyaml-cpp.so.0.6
42360a84
JB
64
65%files devel
66%defattr(644,root,root,755)
67%attr(755,root,root) %{_libdir}/libyaml-cpp.so
68%{_includedir}/yaml-cpp
69%{_pkgconfigdir}/yaml-cpp.pc
bf4156de 70%{_libdir}/cmake/yaml-cpp
This page took 0.095221 seconds and 4 git commands to generate.