up to 0.30
[packages/ell.git] / ell.spec
CommitLineData
fcdae57e
JB
1#
2# Conditional build:
3%bcond_without static_libs # static library
4#
5Summary: Embedded Linux Library
6Summary(pl.UTF-8): Embedded Linux Library - biblioteka osadzonego Linuksa
7Name: ell
1d49b12c 8Version: 0.30
fcdae57e
JB
9Release: 1
10License: LGPL v2.1+
11Group: Libraries
12Source0: https://www.kernel.org/pub/linux/libs/ell/%{name}-%{version}.tar.xz
1d49b12c 13# Source0-md5: 79c757858688cc6c36087605234d87a8
fcdae57e
JB
14Patch0: %{name}-link.patch
15URL: https://git.kernel.org/pub/scm/libs/ell/ell.git/
16BuildRequires: autoconf >= 2.60
17BuildRequires: automake
18BuildRequires: libtool >= 2:2.2
19BuildRequires: tar >= 1:1.22
20BuildRequires: xz
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24Embedded Linux Library.
25
26%description -l pl.UTF-8
27Embedded Linux Library - biblioteka osadzonego Linuksa.
28
29%package devel
30Summary: Header files for ELL library
31Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ELL
32Group: Development/Libraries
33Requires: %{name} = %{version}-%{release}
34
35%description devel
36Header files for ELL library.
37
38%description devel -l pl.UTF-8
39Pliki nagłówkowe biblioteki ELL.
40
41%package static
42Summary: Static ELL library
43Summary(pl.UTF-8): Statyczna biblioteka ELL
44Group: Development/Libraries
45Requires: %{name}-devel = %{version}-%{release}
46
47%description static
48Static ELL library.
49
50%description static -l pl.UTF-8
51Statyczna 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
70rm -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
79rm -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
This page took 0.189178 seconds and 4 git commands to generate.