]>
Commit | Line | Data |
---|---|---|
222c3cc5 | 1 | Summary: A C library for parsing and emitting YAML |
ff28f3ff | 2 | Summary(pl.UTF-8): Biblioteka C do analizy i wytwarzania YAML-a |
222c3cc5 | 3 | Name: yaml |
f54ce902 | 4 | Version: 0.2.4 |
243f9f81 | 5 | Release: 1 |
1f9bb440 | 6 | License: MIT |
222c3cc5 | 7 | Group: Libraries |
35d5054d JB |
8 | #Source0Download: https://github.com/yaml/libyaml/releases |
9 | Source0: https://github.com/yaml/libyaml/archive/%{version}/libyaml-%{version}.tar.gz | |
f54ce902 | 10 | # Source0-md5: 64219701e897efb467d95123a165ca01 |
0c754084 | 11 | URL: https://pyyaml.org/wiki/LibYAML |
35d5054d JB |
12 | BuildRequires: autoconf >= 2.59 |
13 | BuildRequires: automake >= 1:1.9 | |
14 | BuildRequires: doxygen | |
15 | BuildRequires: libtool | |
222c3cc5 AM |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
17 | ||
18 | %description | |
19 | YAML 1.1 parser and emitter written in C. | |
20 | ||
ff28f3ff | 21 | %description -l pl.UTF-8 |
243f9f81 | 22 | Napisana w C biblioteka analizująca i wytwarzająca dane w formacie |
ff28f3ff JB |
23 | YAML 1.1. |
24 | ||
222c3cc5 | 25 | %package devel |
ff28f3ff JB |
26 | Summary: Header files for yaml library |
27 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki yaml | |
222c3cc5 | 28 | Group: Development/Libraries |
d738e170 | 29 | Requires: %{name} = %{version}-%{release} |
222c3cc5 AM |
30 | |
31 | %description devel | |
ff28f3ff JB |
32 | Header files for yaml library. |
33 | ||
34 | %description devel -l pl.UTF-8 | |
35 | Pliki nagłówkowe biblioteki yaml. | |
222c3cc5 AM |
36 | |
37 | %package static | |
38 | Summary: Static yaml library | |
ff28f3ff | 39 | Summary(pl.UTF-8): Statyczna biblioteka yaml |
222c3cc5 | 40 | Group: Development/Libraries |
d738e170 | 41 | Requires: %{name}-devel = %{version}-%{release} |
222c3cc5 AM |
42 | |
43 | %description static | |
44 | Static yaml library. | |
45 | ||
ff28f3ff JB |
46 | %description static -l pl.UTF-8 |
47 | Statyczna biblioteka yaml. | |
48 | ||
222c3cc5 | 49 | %prep |
35d5054d | 50 | %setup -q -n libyaml-%{version} |
222c3cc5 AM |
51 | |
52 | %build | |
35d5054d JB |
53 | %{__libtoolize} |
54 | %{__aclocal} -I config | |
55 | %{__autoconf} | |
56 | %{__autoheader} | |
57 | %{__automake} | |
222c3cc5 AM |
58 | %configure |
59 | %{__make} | |
60 | ||
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %{__make} install \ | |
65 | DESTDIR=$RPM_BUILD_ROOT | |
66 | ||
35d5054d JB |
67 | # obsoleted by pkg-config |
68 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libyaml.la | |
69 | ||
222c3cc5 AM |
70 | %clean |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %post -p /sbin/ldconfig | |
74 | %postun -p /sbin/ldconfig | |
75 | ||
76 | %files | |
77 | %defattr(644,root,root,755) | |
f54ce902 | 78 | %doc Changes License ReadMe.md announcement.msg |
bd6c99ab | 79 | %attr(755,root,root) %{_libdir}/libyaml-0.so.*.*.* |
a1c289d8 | 80 | %attr(755,root,root) %ghost %{_libdir}/libyaml-0.so.2 |
222c3cc5 AM |
81 | |
82 | %files devel | |
83 | %defattr(644,root,root,755) | |
bd6c99ab | 84 | %attr(755,root,root) %{_libdir}/libyaml.so |
1f9bb440 JB |
85 | %{_includedir}/yaml.h |
86 | %{_pkgconfigdir}/yaml-0.1.pc | |
222c3cc5 AM |
87 | |
88 | %files static | |
89 | %defattr(644,root,root,755) | |
bd6c99ab | 90 | %{_libdir}/libyaml.a |