diff --git a/libcap-nolibattr.patch b/libcap-nolibattr.patch new file mode 100644 index 0000000..e5e2441 --- /dev/null +++ b/libcap-nolibattr.patch @@ -0,0 +1,11 @@ +--- libcap-2.22.orig/libcap/Makefile ++++ libcap-2.22/libcap/Makefile +@@ -16,7 +16,7 @@ FILES=cap_alloc cap_proc cap_extint cap_ + # no support). + ifeq ($(LIBATTR),yes) + FILES += cap_file +-LDFLAGS += -lattr ++LDFLAGS += + endif + + INCLS=libcap.h cap_names.h $(INCS) diff --git a/libcap.changes b/libcap.changes index c7d42fe..e2ef1de 100644 --- a/libcap.changes +++ b/libcap.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 19 17:32:36 UTC 2014 - crrodriguez@opensuse.org + +- libcap-nolibattr.patch Do not link to libattr, it is + a bogus dependency. application uses sys/xattr from libc. + ------------------------------------------------------------------- Fri Feb 1 12:02:04 UTC 2013 - coolo@suse.com diff --git a/libcap.spec b/libcap.spec index 56e32b6..baf7e33 100644 --- a/libcap.spec +++ b/libcap.spec @@ -1,7 +1,7 @@ # # spec file for package libcap # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,7 +26,7 @@ Source: ftp://ftp.de.kernel.org/pub/linux/libs/security/linux-privs/libc Source2: baselibs.conf Url: https://sites.google.com/site/fullycapable/ BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: libattr-devel +Patch0: libcap-nolibattr.patch %if 0%{?suse_version} > 1030 BuildRequires: fdupes %endif @@ -86,7 +86,7 @@ libcap. %prep %setup -q - +%patch0 -p1 %build # lib=%{_lib} make %{?_smp_mflags} COPTFLAG="$RPM_OPT_FLAGS" lib=%{_lib} make %{?_smp_mflags} DEBUG="-g $RPM_OPT_FLAGS"