From a4328623de6997a73a6811e011cb0831e891c3cc Mon Sep 17 00:00:00 2001 From: DoHyun Pyun Date: Wed, 18 Mar 2020 09:38:44 +0900 Subject: [PATCH] packaging: Initial packaging Change-Id: I0f21a178689e412566e010d7f0c3d67e46244d6b Signed-off-by: DoHyun Pyun --- packaging/ell.spec | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 packaging/ell.spec diff --git a/packaging/ell.spec b/packaging/ell.spec new file mode 100644 index 0000000..8d3df10 --- /dev/null +++ b/packaging/ell.spec @@ -0,0 +1,47 @@ +Name: ell +Version: 0.28 +Release: 0 +Summary: Embedded Linux Library +Group: Base/Utilities +License: LGPL-2.1 +URL: https://01.org/ell +Source0: http://ftp.be.debian.org/pub/linux/libs/ell/%{name}-%{version}.tar.gz + +%description +Embedded Linux Library + +%package devel +Summary: Embedded Linux Library development files +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig + +%description devel +This package contains Embedded Linux Library development files + +%prep +%setup -q + +%build +%configure --enable-pie --prefix=/usr +%__make %{?_smp_mflags} + +%install +%make_install +rm -rf %{buildroot}%{_libdir}/*.la + +%clean + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%license COPYING +%defattr(-,root,root,-) +%{_libdir}/libell.so.* + +%files devel +%defattr(-,root,root,-) +%{_includedir}/ell/* +%{_libdir}/libell.so +%{_libdir}/pkgconfig/ell.pc -- 2.7.4