]>
Commit | Line | Data |
---|---|---|
f3bf4001 JR |
1 | # Note: the only package that requires yaml-cpp is OpenColorIO, and it requires |
2 | # the old API (as in yaml-cpp 0.3.0), so please don't STBR the new API until | |
3 | # OpenColorIO is updated. | |
42360a84 JB |
4 | Summary: YAML parser and emitter for C++ |
5 | Summary(pl.UTF-8): Biblioteka C++ analizująca i generująca YAML | |
6 | Name: yaml-cpp | |
e97e52b5 | 7 | Version: 0.5.1 |
1bb8ec78 | 8 | Release: 3 |
42360a84 JB |
9 | License: MIT |
10 | Group: Libraries | |
11 | #Source0Download: http://code.google.com/p/yaml-cpp/downloads/list | |
12 | Source0: http://yaml-cpp.googlecode.com/files/%{name}-%{version}.tar.gz | |
e97e52b5 | 13 | # Source0-md5: 0fa47a5ed8fedefab766592785c85ee7 |
42360a84 JB |
14 | URL: http://code.google.com/p/yaml-cpp/ |
15 | BuildRequires: cmake >= 2.6 | |
16 | BuildRequires: libstdc++-devel | |
17 | BuildRequires: rpmbuild(macros) >= 1.605 | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | YAML parser and emitter for C++. | |
22 | ||
23 | %description -l pl.UTF-8 | |
24 | Biblioteka C++ analizująca i generująca YAML. | |
25 | ||
26 | %package devel | |
27 | Summary: Header files for yaml-cpp library | |
28 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki yaml-cpp | |
29 | Group: Development/Libraries | |
30 | Requires: %{name} = %{version}-%{release} | |
31 | Requires: libstdc++-devel | |
32 | ||
33 | %description devel | |
34 | Header files for yaml-cpp library. | |
35 | ||
36 | %description devel -l pl.UTF-8 | |
37 | Pliki nagłówkowe biblioteki yaml-cpp. | |
38 | ||
39 | %prep | |
e241f418 | 40 | %setup -q |
42360a84 JB |
41 | |
42 | %build | |
43 | %cmake . | |
44 | %{__make} | |
45 | ||
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %{__make} install \ | |
50 | DESTDIR=$RPM_BUILD_ROOT | |
51 | ||
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %post -p /sbin/ldconfig | |
56 | %postun -p /sbin/ldconfig | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
60 | %doc license.txt | |
61 | %attr(755,root,root) %{_libdir}/libyaml-cpp.so.*.*.* | |
e241f418 | 62 | %attr(755,root,root) %ghost %{_libdir}/libyaml-cpp.so.0.5 |
42360a84 JB |
63 | |
64 | %files devel | |
65 | %defattr(644,root,root,755) | |
66 | %attr(755,root,root) %{_libdir}/libyaml-cpp.so | |
67 | %{_includedir}/yaml-cpp | |
68 | %{_pkgconfigdir}/yaml-cpp.pc |