[packages/libseccomp] - new - pc patch to install proper file as libseccomp.pc, not bash
qboosh
qboosh at pld-linux.org
Sat Oct 27 21:42:33 CEST 2012
commit 98e97d35745fe73edce14986bfadd3ee6cfd15e2
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Oct 27 21:43:00 2012 +0200
- new
- pc patch to install proper file as libseccomp.pc, not bash
libseccomp-pc.patch | 12 +++++++
libseccomp.spec | 99 +++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 111 insertions(+)
---
diff --git a/libseccomp.spec b/libseccomp.spec
new file mode 100644
index 0000000..a0508a8
--- /dev/null
+++ b/libseccomp.spec
@@ -0,0 +1,99 @@
+Summary: Enhanced Seccomp (mode 2) Helper library
+Summary(pl.UTF-8): Rozszerzona biblioteka pomocnicza Seccomp (trybu 2)
+Name: libseccomp
+Version: 1.0.0
+Release: 1
+License: LGPL v2.1
+Group: Libraries
+Source0: http://downloads.sourceforge.net/libseccomp/%{name}-%{version}.tar.gz
+# Source0-md5: e9796bce21fab55fd661be4ee618211d
+Patch0: %{name}-pc.patch
+URL: http://libseccomp.sourceforge.net/
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The libseccomp library provides and easy to use, platform independent,
+interface to the Linux Kernel's syscall filtering mechanism: seccomp.
+The libseccomp API is designed to abstract away the underlying BPF
+based syscall filter language and present a more conventional
+function-call based filtering interface that should be familiar to,
+and easily adopted by application developers.
+
+%description -l pl.UTF-8
+Biblioteka libseccomp udostępnia łatwy w użyciu, niezależny od
+platformy interfejs do mechanizmu filtrowania wywołań systemowych
+jądra Linuksa - seccomp. API libseccomp jest zaprojektowane tak,
+żeby wyabstrahować język filtrowania wywołań BPF niższego poziomu i
+zaprezentować bardziej konwencjonalny interfejs filtrowania w oparciu
+o wywołania funkcji, który powinien być bardziej przyjazny i łatwiej
+adaptowalny dla programistów aplikacji.
+
+%package devel
+Summary: Header files for Seccomp library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Seccomp
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Header files for Seccomp library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki Seccomp.
+
+%package static
+Summary: Static Seccomp library
+Summary(pl.UTF-8): Statyczna biblioteka Seccomp
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static Seccomp library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka Seccomp.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+# not autoconf configure
+./configure \
+ --prefix=%{_prefix} \
+ --libdir=%{_libdir}
+
+GCC="%{__cc}" \
+CFLAGS="%{rpmcflags} -Wall" \
+%{__make} \
+ V=1
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+install src/libseccomp.a $RPM_BUILD_ROOT%{_libdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG CREDITS README
+%attr(755,root,root) %{_libdir}/libseccomp.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libseccomp.so.1
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libseccomp.so
+%{_includedir}/seccomp.h
+%{_pkgconfigdir}/libseccomp.pc
+%{_mandir}/man3/seccomp_*.3*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libseccomp.a
diff --git a/libseccomp-pc.patch b/libseccomp-pc.patch
new file mode 100644
index 0000000..a287e31
--- /dev/null
+++ b/libseccomp-pc.patch
@@ -0,0 +1,12 @@
+--- libseccomp-1.0.0/Makefile.orig 2012-07-28 00:39:00.000000000 +0200
++++ libseccomp-1.0.0/Makefile 2012-10-27 21:21:08.860539706 +0200
+@@ -85,7 +85,8 @@
+
+ install: $(SUBDIRS_BUILD)
+ @$(ECHO) ">> INFO: installing in $(INSTALL_PREFIX) ..."
+- $(INSTALL_PC_MACRO) libseccomp.pc
++ $(INSTALL) -d $(INSTALL_LIB_DIR)/pkgconfig
++ $(INSTALL) libseccomp.pc $(INSTALL_LIB_DIR)/pkgconfig
+ @for dir in $(SUBDIRS_INSTALL); do \
+ $(ECHO) ">> INFO: installing from $$dir/"; \
+ $(MAKE) -C $$dir install; \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libseccomp.git/commitdiff/98e97d35745fe73edce14986bfadd3ee6cfd15e2
More information about the pld-cvs-commit
mailing list