]>
Commit | Line | Data |
---|---|---|
5b9b4ef6 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
4 | # | |
229ecbeb | 5 | Summary: Development framework for C (like GLib) |
68d4f34b | 6 | Summary(pl.UTF-8): Szkielet programistyczny dla C (podobny do GLiba) |
5b9b4ef6 JB |
7 | Name: libmowgli2 |
8 | Version: 2.0.0 | |
1a13b899 | 9 | Release: 3 |
5b9b4ef6 | 10 | License: MIT |
229ecbeb | 11 | Group: Libraries |
5b9b4ef6 JB |
12 | Source0: https://github.com/atheme/libmowgli-2/archive/libmowgli-%{version}.tar.gz |
13 | # Source0-md5: 0b8cf8b66d745d40f186e3cbd22fdc0e | |
14 | URL: https://github.com/atheme/libmowgli-2/ | |
15 | BuildRequires: openssl-devel | |
16 | BuildRequires: sed >= 4.0 | |
229ecbeb | 17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
20 | mowgli is a development framework for C (like GLib), which provides | |
21 | high performance and highly flexible algorithms. It can be used as a | |
22 | suppliment to GLib (to add additional functions (dictionaries, | |
68d4f34b JB |
23 | hashes), or replace some of the slow GLib functions (like list |
24 | manipulation), or stand alone. It also provides a powerful hook system | |
229ecbeb | 25 | and convenient logging for your code, as well as a high performance |
26 | block allocator. | |
27 | ||
68d4f34b JB |
28 | %description -l pl.UTF-8 |
29 | mowgli to szkielet programistyczny dla C (podobny do GLiba) | |
30 | udostępniający wysoko wydajne i elastyczne algorytmy. Może być używany | |
31 | jako suplement do GLiba (dodający nowe funkcje, takie jak słowniki czy | |
32 | hasze) albo do zastąpienia niektórych wolnych funkcji GLiba (jak | |
33 | operacje na listach), albo samodzielnie. Udostępnia także potężny | |
34 | system uchwytów i wygodnego logowania, a także wysoko wydajny alokator | |
35 | bloków. | |
36 | ||
229ecbeb | 37 | %package devel |
298243c4 | 38 | Summary: Header files for libmowgli |
68d4f34b | 39 | Summary(pl.UTF-8): Pliki nagłówkowe libmowgli |
298243c4 | 40 | Group: Development/Libraries |
41 | Requires: %{name} = %{version}-%{release} | |
229ecbeb | 42 | |
43 | %description devel | |
44 | Header files for libmowgli. | |
45 | ||
68d4f34b JB |
46 | %description devel -l pl.UTF-8 |
47 | Pliki nagłówkowe libmowgli. | |
48 | ||
5b9b4ef6 JB |
49 | %package static |
50 | Summary: Static libmowgli library | |
51 | Summary(pl.UTF-8): Biblioteka statyczna libmowgli | |
52 | Group: Development/Libraries | |
53 | Requires: %{name}-devel = %{version}-%{release} | |
54 | ||
55 | %description static | |
56 | Static libmowgli library. | |
57 | ||
58 | %description static -l pl.UTF-8 | |
59 | Biblioteka statyczna libmowgli. | |
60 | ||
229ecbeb | 61 | %prep |
5b9b4ef6 JB |
62 | %setup -q -n libmowgli-2-libmowgli-%{version} |
63 | ||
64 | %{__sed} -i -e '/^\.SILENT/d' buildsys.mk.in | |
229ecbeb | 65 | |
66 | %build | |
5b9b4ef6 JB |
67 | %configure \ |
68 | %{?with_static_libs:--enable-static} | |
229ecbeb | 69 | %{__make} |
70 | ||
71 | %install | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %{__make} install \ | |
75 | DESTDIR=$RPM_BUILD_ROOT | |
76 | ||
77 | %clean | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %post -p /sbin/ldconfig | |
81 | %postun -p /sbin/ldconfig | |
82 | ||
83 | %files | |
84 | %defattr(644,root,root,755) | |
5b9b4ef6 JB |
85 | %doc AUTHORS COPYING README |
86 | %attr(755,root,root) %{_libdir}/libmowgli-2.so.*.*.* | |
87 | %attr(755,root,root) %ghost %{_libdir}/libmowgli-2.so.0 | |
229ecbeb | 88 | |
89 | %files devel | |
90 | %defattr(644,root,root,755) | |
5b9b4ef6 JB |
91 | %doc doc/{BOOST,design-concepts.txt} |
92 | %attr(755,root,root) %{_libdir}/libmowgli-2.so | |
93 | %{_includedir}/libmowgli-2 | |
94 | %{_pkgconfigdir}/libmowgli-2.pc | |
95 | ||
96 | %if %{with static_libs} | |
97 | %files static | |
98 | %defattr(644,root,root,755) | |
99 | %{_libdir}/libmowgli-2.a | |
100 | %endif |