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