Compare commits
1 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 83f827ecb0 |
@@ -1,9 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Thu Oct 16 19:34:43 UTC 2025 - Callum Farmer <gmbr3@opensuse.org>
|
|
||||||
|
|
||||||
- Move utils to bindir and then provide symlinks under sbindir
|
|
||||||
as needed by Steam (bsc#1252129)
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Mar 23 19:42:27 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
|
Sun Mar 23 19:42:27 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
|
||||||
|
|
||||||
|
|||||||
15
libcap.spec
15
libcap.spec
@@ -95,7 +95,7 @@ libcap.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
||||||
%global buildvariables RAISE_SETFCAP=no prefix=%{_prefix} lib=%{_lib} SHARED=yes LIBDIR=%{_libdir} SBINDIR=%{_bindir} PKGCONFIGDIR=%{_libdir}/pkgconfig/ INCDIR=%{_includedir} MANDIR=%{_mandir} SHARED=yes COPTS="%{optflags}"
|
%global buildvariables RAISE_SETFCAP=no prefix=%{_prefix} lib=%{_lib} SHARED=yes LIBDIR=%{_libdir} SBINDIR=%{_sbindir} PKGCONFIGDIR=%{_libdir}/pkgconfig/ INCDIR=%{_includedir} MANDIR=%{_mandir} SHARED=yes COPTS="%{optflags}"
|
||||||
|
|
||||||
%make_build %{buildvariables}
|
%make_build %{buildvariables}
|
||||||
|
|
||||||
@@ -105,10 +105,6 @@ find %{buildroot} -type f -name "*.la" -delete -print
|
|||||||
# do not provide static libs
|
# do not provide static libs
|
||||||
rm %{buildroot}%{_libdir}/libcap.a
|
rm %{buildroot}%{_libdir}/libcap.a
|
||||||
|
|
||||||
# symlinks for sbindir
|
|
||||||
mkdir -p %{buildroot}%{_sbindir}
|
|
||||||
ln -s %{_bindir}/{capsh,getcap,getpcaps,setcap} %{buildroot}%{_sbindir}
|
|
||||||
|
|
||||||
%fdupes -s %{buildroot}
|
%fdupes -s %{buildroot}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@@ -135,14 +131,7 @@ echo 'int main() { return 0; }' > tests/b219174.c
|
|||||||
%license License
|
%license License
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
%{_mandir}/man8/*
|
%{_mandir}/man8/*
|
||||||
%{_bindir}/capsh
|
%{_sbindir}/*
|
||||||
%{_bindir}/getcap
|
|
||||||
%{_bindir}/getpcaps
|
|
||||||
%{_bindir}/setcap
|
|
||||||
%{_sbindir}/capsh
|
|
||||||
%{_sbindir}/getcap
|
|
||||||
%{_sbindir}/getpcaps
|
|
||||||
%{_sbindir}/setcap
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%license License
|
%license License
|
||||||
|
|||||||
Reference in New Issue
Block a user