- 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
This commit is contained in:
Tomas Cech 2018-04-01 08:05:24 +00:00 committed by Git OBS Bridge
parent 680e9f9baf
commit f0ae37647b
2 changed files with 10 additions and 12 deletions

View File

@ -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 Thu Mar 22 20:12:13 UTC 2018 - sleep_walker@opensuse.org

View File

@ -31,21 +31,14 @@ Source1: %{name}.tmpfiles.d
Source2: https://github.com/TokTok/c-toxcore/releases/download/v%{version}/%{name}-%{version}.tar.gz.asc Source2: https://github.com/TokTok/c-toxcore/releases/download/v%{version}/%{name}-%{version}.tar.gz.asc
BuildRequires: autoconf BuildRequires: autoconf
BuildRequires: automake BuildRequires: automake
BuildRequires: check
BuildRequires: check-devel
BuildRequires: cmake
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: libconfig-devel BuildRequires: libconfig-devel
BuildRequires: libopus-devel BuildRequires: libopus-devel
BuildRequires: libsodium-devel BuildRequires: libsodium-devel
BuildRequires: libtool BuildRequires: libtool
BuildRequires: libvpx-devel BuildRequires: libvpx-devel
BuildRequires: ncurses-devel
BuildRequires: openal-soft-devel
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: systemd BuildRequires: pkgconfig(systemd)
BuildRequires: systemd-sysvinit
BuildRequires: yasm
%{?systemd_requires} %{?systemd_requires}
%description %description
@ -110,7 +103,8 @@ sed -ri 's:%{_localstatedir}/lib/tox-bootstrapd/keys:%{_sysconfdir}/tox/bootstra
autoreconf -i autoreconf -i
%configure \ %configure \
--enable-daemon \ --enable-daemon \
--enable-dht-bootstrap --enable-dht-bootstrap \
--disable-static
make %{?_smp_mflags} make %{?_smp_mflags}
@ -150,7 +144,6 @@ if ! getent passwd tox >/dev/null; then
-s /sbin/nologin -c "Tox Bootstrap" tox -s /sbin/nologin -c "Tox Bootstrap" tox
fi fi
%post -p /sbin/ldconfig
%post daemon %post daemon
%service_add_post tox-bootstrapd.service %service_add_post tox-bootstrapd.service
systemd-tmpfiles --create %{_prefix}/lib/tmpfiles.d/tox-bootstrapd.conf 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 %preun daemon
%service_del_preun tox-bootstrapd.service %service_del_preun tox-bootstrapd.service
%postun -p /sbin/ldconfig
%postun daemon %postun daemon
%service_del_postun tox-bootstrapd.service %service_del_postun tox-bootstrapd.service
@ -171,7 +163,6 @@ systemd-tmpfiles --create %{_prefix}/lib/tmpfiles.d/tox-bootstrapd.conf
%files devel %files devel
%{_libdir}/*.so %{_libdir}/*.so
%{_libdir}/*.a
%{_libdir}/pkgconfig/*.pc %{_libdir}/pkgconfig/*.pc
%dir %{_includedir}/tox %dir %{_includedir}/tox
%{_includedir}/tox/* %{_includedir}/tox/*