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