@ -10,8 +10,10 @@ Source0: %{url}/archive/v%{version}.tar.gz
AutoReq: no
AutoReq: no
Conflicts: python-shadowsocks python3-shadowsocks
Conflicts: python-shadowsocks python3-shadowsocks
BuildRequires: make gcc pcre-devel asciidoc xmlto
Requires: pcre
BuildRequires: make gcc pcre-devel asciidoc xmlto automake libtool mbedtls-devel libsodium-devel >= 1.0.4 libev-devel udns-devel
Requires: pcre mbedtls libsodium >= 1.0.4
Requires: libev udns
%if 0%{?suse_version}
%if 0%{?suse_version}
Requires: libopenssl1_0_0
Requires: libopenssl1_0_0
@ -36,11 +38,6 @@ BuildRequires: systemd
%endif
%endif
%endif
%endif
%if 0%{?use_system_lib}
BuildRequires: libev-devel libsodium-devel >= 1.0.4 udns-devel
Requires: libev libsodium >= 1.0.4 udns
%endif
%description
%description
shadowsocks-libev is a lightweight secured scoks5 proxy for embedded devices and low end boxes.
shadowsocks-libev is a lightweight secured scoks5 proxy for embedded devices and low end boxes.
@ -84,7 +81,8 @@ install -m 644 %{_builddir}/%{buildsubdir}/completions/bash/* %{buildroot}%{_dat
%service_add_pre shadowsocks-libev.service
%service_add_pre shadowsocks-libev.service
%endif
%endif
%post -p /sbin/ldconfig
%post
/sbin/ldconfig
%if ! 0%{?use_systemd}
%if ! 0%{?use_systemd}
/sbin/chkconfig --add shadowsocks-libev > /dev/null 2>&1 || :
/sbin/chkconfig --add shadowsocks-libev > /dev/null 2>&1 || :
%else
%else
@ -109,7 +107,8 @@ fi
%endif
%endif
%endif
%endif
%postun -p /sbin/ldconfig
%postun
/sbin/ldconfig
%if 0%{?use_systemd}
%if 0%{?use_systemd}
%if 0%{?suse_version}
%if 0%{?suse_version}
%service_del_postun shadowsocks-libev.service
%service_del_postun shadowsocks-libev.service