]>
Commit | Line | Data |
---|---|---|
194878e0 | 1 | Summary: C++ universal value object and JSON library |
23ea552b | 2 | Summary(pl.UTF-8): Biblioteka C++ do obiektów uniwersalnych wartości i JSON |
194878e0 | 3 | Name: libunivalue |
ef639718 JB |
4 | Version: 1.0.5 |
5 | Release: 1 | |
23ea552b | 6 | License: MIT |
194878e0 | 7 | Group: Libraries |
23ea552b | 8 | #Source0Download: https://github.com/jgarzik/univalue/releases |
ef639718 JB |
9 | Source0: https://github.com/jgarzik/univalue/archive/v%{version}/univalue-%{version}.tar.gz |
10 | # Source0-md5: f8568f911a8c5cbbcbcd58e31e92c013 | |
194878e0 | 11 | URL: https://github.com/jgarzik/univalue |
23ea552b | 12 | BuildRequires: autoconf >= 2.60 |
194878e0 | 13 | BuildRequires: automake |
23ea552b JB |
14 | BuildRequires: libstdc++-devel |
15 | BuildRequires: libtool >= 2:2 | |
194878e0 AM |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
17 | ||
18 | %description | |
19 | A universal value object, with JSON encoding (output) and decoding | |
23ea552b | 20 | (input). Built as a single dynamic RAII C++ object class, and no |
194878e0 AM |
21 | templates. |
22 | ||
23ea552b JB |
23 | %description -l pl.UTF-8 |
24 | Obiekt o uniwersalnej wartości, z kodowaniem JSON (wyjście) i | |
25 | dekodowaniem (wejście). Zbudowany jako pojedyncza, dynamiczna klasa | |
26 | obiektów C++ RAII, bez szablonów. | |
27 | ||
194878e0 AM |
28 | %package devel |
29 | Summary: libunivalue development package | |
30 | Summary(pl.UTF-8): Pliki dla programistów libunivalue | |
31 | Group: Development/Libraries | |
32 | Requires: %{name} = %{version}-%{release} | |
23ea552b | 33 | Requires: libstdc++-devel |
194878e0 AM |
34 | |
35 | %description devel | |
36 | libunivalue development package. | |
37 | ||
38 | %description devel -l pl.UTF-8 | |
39 | Pliki dla programistów używających libunivalue. | |
40 | ||
23ea552b JB |
41 | %package static |
42 | Summary: Static libunivalue library | |
43 | Summary(pl.UTF-8): Statyczna biblioteka libunivalue | |
44 | Group: Development/Libraries | |
45 | Requires: %{name}-devel = %{version}-%{release} | |
46 | ||
47 | %description static | |
48 | Static libunivalue library. | |
49 | ||
50 | %description static -l pl.UTF-8 | |
51 | Statyczna biblioteka libunivalue. | |
52 | ||
194878e0 AM |
53 | %prep |
54 | %setup -q -n univalue-%{version} | |
55 | ||
56 | %build | |
57 | %{__libtoolize} | |
23ea552b | 58 | %{__aclocal} -I build-aux/m4 |
194878e0 AM |
59 | %{__autoconf} |
60 | %{__autoheader} | |
61 | %{__automake} | |
62 | ||
63 | %configure \ | |
64 | --disable-silent-rules | |
65 | %{__make} | |
66 | ||
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %{__make} install \ | |
71 | DESTDIR=$RPM_BUILD_ROOT | |
72 | ||
23ea552b JB |
73 | # obsoleted by pkg-config |
74 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libunivalue.la | |
75 | ||
194878e0 AM |
76 | %clean |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %post -p /sbin/ldconfig | |
80 | %postun -p /sbin/ldconfig | |
81 | ||
82 | %files | |
83 | %defattr(644,root,root,755) | |
23ea552b | 84 | %doc COPYING README.md TODO |
194878e0 | 85 | %attr(755,root,root) %{_libdir}/libunivalue.so.*.*.* |
23ea552b | 86 | %attr(755,root,root) %ghost %{_libdir}/libunivalue.so.0 |
194878e0 AM |
87 | |
88 | %files devel | |
89 | %defattr(644,root,root,755) | |
90 | %attr(755,root,root) %{_libdir}/libunivalue.so | |
91 | %{_includedir}/univalue.h | |
92 | %{_pkgconfigdir}/libunivalue.pc | |
23ea552b JB |
93 | |
94 | %files static | |
95 | %defattr(644,root,root,755) | |
96 | %{_libdir}/libunivalue.a |