]> git.pld-linux.org Git - packages/ell.git/blob - ell.spec
up to 0.38
[packages/ell.git] / ell.spec
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
8 Version:        0.38
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
13 # Source0-md5:  2104909a1f4c46b72b6dae1d5bf4f16f
14 URL:            https://git.kernel.org/pub/scm/libs/ell/ell.git/
15 BuildRequires:  autoconf >= 2.60
16 BuildRequires:  automake
17 BuildRequires:  libtool >= 2:2.2
18 BuildRequires:  tar >= 1:1.22
19 BuildRequires:  xz
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 Embedded Linux Library.
24
25 %description -l pl.UTF-8
26 Embedded Linux Library - biblioteka osadzonego Linuksa.
27
28 %package devel
29 Summary:        Header files for ELL library
30 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki ELL
31 Group:          Development/Libraries
32 Requires:       %{name} = %{version}-%{release}
33
34 %description devel
35 Header files for ELL library.
36
37 %description devel -l pl.UTF-8
38 Pliki nagłówkowe biblioteki ELL.
39
40 %package static
41 Summary:        Static ELL library
42 Summary(pl.UTF-8):      Statyczna biblioteka ELL
43 Group:          Development/Libraries
44 Requires:       %{name}-devel = %{version}-%{release}
45
46 %description static
47 Static ELL library.
48
49 %description static -l pl.UTF-8
50 Statyczna biblioteka ELL.
51
52 %prep
53 %setup -q
54
55 %build
56 %{__libtoolize}
57 %{__aclocal} -I build-aux
58 %{__autoconf}
59 %{__autoheader}
60 %{__automake}
61 %configure \
62         --enable-pie \
63         --disable-silent-rules \
64         %{?with_static_libs:--enable-static}
65 %{__make}
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69
70 %{__make} install \
71         DESTDIR=$RPM_BUILD_ROOT
72
73 # obsoleted by pkg-config
74 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libell.la
75
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)
84 %doc AUTHORS ChangeLog README TODO
85 %attr(755,root,root) %{_libdir}/libell.so.*.*.*
86 %attr(755,root,root) %ghost %{_libdir}/libell.so.0
87
88 %files devel
89 %defattr(644,root,root,755)
90 %attr(755,root,root) %{_libdir}/libell.so
91 %{_includedir}/ell
92 %{_pkgconfigdir}/ell.pc
93
94 %if %{with static_libs}
95 %files static
96 %defattr(644,root,root,755)
97 %{_libdir}/libell.a
98 %endif
This page took 0.047896 seconds and 4 git commands to generate.