From f0ae37647b27842062c2e5293a400003fab0b56e55bb0671296e14fb8482be14 Mon Sep 17 00:00:00 2001 From: Tomas Cech Date: Sun, 1 Apr 2018 08:05:24 +0000 Subject: [PATCH] - dependency cleanup - get rid of static libraries completely - disable ldconfig for non-libraries packages OBS-URL: https://build.opensuse.org/package/show/server:messaging/c-toxcore?expand=0&rev=4 --- c-toxcore.changes | 7 +++++++ c-toxcore.spec | 15 +++------------ 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/c-toxcore.changes b/c-toxcore.changes index 4d119c0..9294cff 100644 --- a/c-toxcore.changes +++ b/c-toxcore.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sun Apr 1 08:04:22 UTC 2018 - sleep_walker@opensuse.org + +- dependency cleanup +- get rid of static libraries completely +- disable ldconfig for non-libraries packages + ------------------------------------------------------------------- Thu Mar 22 20:12:13 UTC 2018 - sleep_walker@opensuse.org diff --git a/c-toxcore.spec b/c-toxcore.spec index 0a21b61..b19704b 100644 --- a/c-toxcore.spec +++ b/c-toxcore.spec @@ -31,21 +31,14 @@ Source1: %{name}.tmpfiles.d Source2: https://github.com/TokTok/c-toxcore/releases/download/v%{version}/%{name}-%{version}.tar.gz.asc BuildRequires: autoconf BuildRequires: automake -BuildRequires: check -BuildRequires: check-devel -BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: libconfig-devel BuildRequires: libopus-devel BuildRequires: libsodium-devel BuildRequires: libtool BuildRequires: libvpx-devel -BuildRequires: ncurses-devel -BuildRequires: openal-soft-devel BuildRequires: pkgconfig -BuildRequires: systemd -BuildRequires: systemd-sysvinit -BuildRequires: yasm +BuildRequires: pkgconfig(systemd) %{?systemd_requires} %description @@ -110,7 +103,8 @@ sed -ri 's:%{_localstatedir}/lib/tox-bootstrapd/keys:%{_sysconfdir}/tox/bootstra autoreconf -i %configure \ --enable-daemon \ - --enable-dht-bootstrap + --enable-dht-bootstrap \ + --disable-static make %{?_smp_mflags} @@ -150,7 +144,6 @@ if ! getent passwd tox >/dev/null; then -s /sbin/nologin -c "Tox Bootstrap" tox fi -%post -p /sbin/ldconfig %post daemon %service_add_post tox-bootstrapd.service systemd-tmpfiles --create %{_prefix}/lib/tmpfiles.d/tox-bootstrapd.conf @@ -161,7 +154,6 @@ systemd-tmpfiles --create %{_prefix}/lib/tmpfiles.d/tox-bootstrapd.conf %preun daemon %service_del_preun tox-bootstrapd.service -%postun -p /sbin/ldconfig %postun daemon %service_del_postun tox-bootstrapd.service @@ -171,7 +163,6 @@ systemd-tmpfiles --create %{_prefix}/lib/tmpfiles.d/tox-bootstrapd.conf %files devel %{_libdir}/*.so -%{_libdir}/*.a %{_libdir}/pkgconfig/*.pc %dir %{_includedir}/tox %{_includedir}/tox/*