]> git.pld-linux.org Git - packages/ell.git/commitdiff
- new auto/th/ell-0.1-1
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 13 Jul 2017 17:11:20 +0000 (19:11 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Thu, 13 Jul 2017 17:11:20 +0000 (19:11 +0200)
ell-link.patch [new file with mode: 0644]
ell.spec [new file with mode: 0644]

diff --git a/ell-link.patch b/ell-link.patch
new file mode 100644 (file)
index 0000000..d6d5720
--- /dev/null
@@ -0,0 +1,10 @@
+--- ell-0.1/Makefile.am.orig   2017-06-10 15:42:47.000000000 +0200
++++ ell-0.1/Makefile.am        2017-07-13 18:55:15.116423275 +0200
+@@ -90,6 +90,7 @@
+                       ell/uuid.c \
+                       ell/key.c
++ell_libell_la_LIBADD = -ldl
+ ell_libell_la_LDFLAGS = -no-undefined \
+                       -version-info $(ELL_CURRENT):$(ELL_REVISION):$(ELL_AGE)
diff --git a/ell.spec b/ell.spec
new file mode 100644 (file)
index 0000000..f71f6a7
--- /dev/null
+++ b/ell.spec
@@ -0,0 +1,100 @@
+#
+# 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.1
+Release:       1
+License:       LGPL v2.1+
+Group:         Libraries
+Source0:       https://www.kernel.org/pub/linux/libs/ell/%{name}-%{version}.tar.xz
+# Source0-md5: 0faccfd3948e4fc9b1a874b3e9d5584b
+Patch0:                %{name}-link.patch
+URL:           https://git.kernel.org/pub/scm/libs/ell/ell.git/
+BuildRequires: autoconf >= 2.60
+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
+%patch0 -p1
+
+%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
This page took 0.175197 seconds and 4 git commands to generate.