]>
Commit | Line | Data |
---|---|---|
fcdae57e JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
4 | # | |
5 | Summary: Embedded Linux Library | |
6 | Summary(pl.UTF-8): Embedded Linux Library - biblioteka osadzonego Linuksa | |
7 | Name: ell | |
41eeacc2 | 8 | Version: 0.12 |
fcdae57e JB |
9 | Release: 1 |
10 | License: LGPL v2.1+ | |
11 | Group: Libraries | |
12 | Source0: https://www.kernel.org/pub/linux/libs/ell/%{name}-%{version}.tar.xz | |
41eeacc2 | 13 | # Source0-md5: 7d337a1cac6e09275d446f3f744ef744 |
fcdae57e JB |
14 | Patch0: %{name}-link.patch |
15 | URL: https://git.kernel.org/pub/scm/libs/ell/ell.git/ | |
16 | BuildRequires: autoconf >= 2.60 | |
17 | BuildRequires: automake | |
18 | BuildRequires: libtool >= 2:2.2 | |
19 | BuildRequires: tar >= 1:1.22 | |
20 | BuildRequires: xz | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | Embedded Linux Library. | |
25 | ||
26 | %description -l pl.UTF-8 | |
27 | Embedded Linux Library - biblioteka osadzonego Linuksa. | |
28 | ||
29 | %package devel | |
30 | Summary: Header files for ELL library | |
31 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ELL | |
32 | Group: Development/Libraries | |
33 | Requires: %{name} = %{version}-%{release} | |
34 | ||
35 | %description devel | |
36 | Header files for ELL library. | |
37 | ||
38 | %description devel -l pl.UTF-8 | |
39 | Pliki nagłówkowe biblioteki ELL. | |
40 | ||
41 | %package static | |
42 | Summary: Static ELL library | |
43 | Summary(pl.UTF-8): Statyczna biblioteka ELL | |
44 | Group: Development/Libraries | |
45 | Requires: %{name}-devel = %{version}-%{release} | |
46 | ||
47 | %description static | |
48 | Static ELL library. | |
49 | ||
50 | %description static -l pl.UTF-8 | |
51 | Statyczna biblioteka ELL. | |
52 | ||
53 | %prep | |
54 | %setup -q | |
55 | %patch0 -p1 | |
56 | ||
57 | %build | |
58 | %{__libtoolize} | |
59 | %{__aclocal} -I build-aux | |
60 | %{__autoconf} | |
61 | %{__autoheader} | |
62 | %{__automake} | |
63 | %configure \ | |
64 | --enable-pie \ | |
65 | --disable-silent-rules \ | |
66 | %{?with_static_libs:--enable-static} | |
67 | %{__make} | |
68 | ||
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %{__make} install \ | |
73 | DESTDIR=$RPM_BUILD_ROOT | |
74 | ||
75 | # obsoleted by pkg-config | |
76 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libell.la | |
77 | ||
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %post -p /sbin/ldconfig | |
82 | %postun -p /sbin/ldconfig | |
83 | ||
84 | %files | |
85 | %defattr(644,root,root,755) | |
86 | %doc AUTHORS ChangeLog README TODO | |
87 | %attr(755,root,root) %{_libdir}/libell.so.*.*.* | |
88 | %attr(755,root,root) %ghost %{_libdir}/libell.so.0 | |
89 | ||
90 | %files devel | |
91 | %defattr(644,root,root,755) | |
92 | %attr(755,root,root) %{_libdir}/libell.so | |
93 | %{_includedir}/ell | |
94 | %{_pkgconfigdir}/ell.pc | |
95 | ||
96 | %if %{with static_libs} | |
97 | %files static | |
98 | %defattr(644,root,root,755) | |
99 | %{_libdir}/libell.a | |
100 | %endif |