Name: libQtShadowsocks Version: 2.1.0 Release: 3%{?dist} Summary: A lightweight and ultra-fast shadowsocks library (C++) License: LGPLv3+ URL: https://github.com/shadowsocks/%{name} Source0: %{url}/archive/v%{version}.tar.gz %if 0%{?rhel} BuildRequires: cmake3 >= 3.1 BuildRequires: botan-devel %else BuildRequires: cmake >= 3.1 BuildRequires: botan2-devel %endif BuildRequires: qt5-qtbase-devel >= 5.5 %if 0%{?rhel} Requires: botan %else Requires: botan2 %endif Requires: qt5-qtbase >= 5.5 AutoReq: no %package devel Summary: libQtShadowsocks header files Requires: libQtShadowsocks %package -n shadowsocks-libQtShadowsocks Summary: A CLI shadowsocks server and client Requires: libQtShadowsocks %description A lightweight and ultra-fast shadowsocks library written in C++/Qt. %description devel Development files (headers) of libQtShadowsocks. %description -n shadowsocks-libQtShadowsocks A shadowsocks CLI client using libQtShadowsocks. %prep %setup -q %build %if 0%{?rhel} %cmake3 . %else %cmake . %endif make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} %files %doc %{_libdir}/libQtShadowsocks.so* %files devel %{_libdir}/pkgconfig/QtShadowsocks.pc %{_includedir}/* %files -n shadowsocks-libQtShadowsocks %{_bindir}/* %changelog