2019-02-11 08:54:33 -05:00
|
|
|
Name: retroshare-gui-unstable
|
2018-10-09 12:14:23 -04:00
|
|
|
Version: 0.6.9999
|
2018-10-08 17:56:05 -04:00
|
|
|
Release: 0
|
2019-02-11 08:54:33 -05:00
|
|
|
License: AGPL-3.0-or-later
|
|
|
|
Summary: Secure distributed chat, mail, forums, file sharing etc
|
2018-10-08 17:56:05 -04:00
|
|
|
Group: Productivity/Networking/Other
|
2019-02-11 08:54:33 -05:00
|
|
|
Url: https://retroshare.cc
|
|
|
|
Source0: RetroShare.tar.gz
|
2018-10-08 17:56:05 -04:00
|
|
|
#Patch0: various.patch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}
|
2019-02-11 08:54:33 -05:00
|
|
|
Conflicts: retroshare
|
|
|
|
BuildRequires: cmake doxygen libupnp-devel openssl-devel sqlcipher-devel
|
2018-10-08 17:56:05 -04:00
|
|
|
|
|
|
|
%if %{defined centos_version}
|
|
|
|
BuildRequires: qt5-qtbase-devel qt5-qttools-devel qt5-qttools-static
|
2019-02-11 08:54:33 -05:00
|
|
|
BuildRequires: qt5-qtmultimedia-devel qt5-qtx11extras-devel libXScrnSaver-devel
|
2018-10-08 17:56:05 -04:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?fedora_version}
|
|
|
|
BuildRequires: gcc-c++
|
2019-02-11 08:54:33 -05:00
|
|
|
BuildRequires: fdupes xapian-core-devel libXScrnSaver-devel
|
2018-10-08 17:56:05 -04:00
|
|
|
BuildRequires: qt5-qtbase-devel qt5-qttools-devel qt5-qttools-static
|
2019-02-11 08:54:33 -05:00
|
|
|
BuildRequires: qt5-qtx11extras-devel qt5-qtmultimedia-devel
|
2018-10-08 17:56:05 -04:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{defined mageia}
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libzlib-devel libbzip2-devel
|
|
|
|
BuildRequires: libqt5core-devel libqt5xml-devel libxapian-devel
|
2019-02-11 08:54:33 -05:00
|
|
|
BuildRequires: libqt5x11extras-devel libxscrnsaver-devel libqt5multimedia-devel
|
|
|
|
BuildRequires: libqt5designer-devel
|
|
|
|
BuildRequires: libqt5gui-devel libqt5printsupport-devel
|
2018-10-08 17:56:05 -04:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
BuildRequires: gcc7 gcc7-c++
|
|
|
|
BuildRequires: fdupes libbz2-devel
|
|
|
|
BuildRequires: libqt5-qtbase-devel libqt5-qttools-devel
|
|
|
|
BuildRequires: libxapian-devel update-desktop-files
|
2019-02-11 08:54:33 -05:00
|
|
|
BuildRequires: libqt5-qtx11extras-devel
|
|
|
|
BuildRequires: libqt5-qtmultimedia-devel libXScrnSaver-devel
|
2018-10-08 17:56:05 -04:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?fedora_version} >= 27
|
|
|
|
%undefine _debugsource_packages
|
|
|
|
%undefine _debuginfo_subpackages
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
RetroShare is a cross-platform F2F communication platform.
|
|
|
|
It lets you share securely with your friends, using PGP
|
|
|
|
to authenticate peers and OpenSSL to encrypt all communication.
|
|
|
|
RetroShare provides filesharing, chat, messages and channels.
|
|
|
|
|
|
|
|
Authors:
|
2019-02-11 08:54:33 -05:00
|
|
|
see https://retroshare.cc/
|
2018-10-08 17:56:05 -04:00
|
|
|
--------
|
|
|
|
|
|
|
|
%prep
|
2019-02-11 08:54:33 -05:00
|
|
|
%setup -n RetroShare
|
2018-10-08 17:56:05 -04:00
|
|
|
#%patch0 -p0
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
nproc
|
|
|
|
qmake --version || qmake-qt5 --version
|
|
|
|
ls $(which gcc)*
|
|
|
|
ls $(which g++)*
|
|
|
|
|
|
|
|
BUILD_CC=""
|
|
|
|
BUILD_CXX=""
|
|
|
|
BUILD_DEEPSEARCH="CONFIG+=rs_deep_search"
|
2019-02-11 08:54:33 -05:00
|
|
|
BUILD_JSONAPI="CONFIG+=rs_jsonapi"
|
2018-10-08 17:56:05 -04:00
|
|
|
QMAKE="qmake-qt5"
|
|
|
|
|
|
|
|
%if %{defined centos_version}
|
|
|
|
# Xapian is not availabe on Centos 7
|
|
|
|
BUILD_DEEPSEARCH="CONFIG+=no_rs_deep_search"
|
2019-02-11 08:54:33 -05:00
|
|
|
BUILD_JSONAPI="CONFIG+=no_rs_jsonapi"
|
2018-10-08 17:56:05 -04:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{defined mageia}
|
|
|
|
QMAKE="qmake"
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
BUILD_CC="QMAKE_CC=gcc-7"
|
|
|
|
BUILD_CXX="QMAKE_CXX=g++-7"
|
|
|
|
%endif
|
|
|
|
|
|
|
|
$QMAKE $BUILD_CC $BUILD_CXX QMAKE_STRIP=echo PREFIX="%{_prefix}" \
|
2019-02-11 08:54:33 -05:00
|
|
|
BIN_DIR="%{_bindir}" LIB_DIR="%{_libdir}" \
|
|
|
|
DATA_DIR="%{_datadir}/retroshare" \
|
|
|
|
$(build_scripts/OBS/get_source_version.sh) RS_MINI_VERSION=9999 \
|
|
|
|
CONFIG-=debug \
|
2018-10-08 17:56:05 -04:00
|
|
|
CONFIG+=ipv6 CONFIG+=no_retroshare_android_service \
|
|
|
|
CONFIG+=no_retroshare_android_notify_service \
|
|
|
|
CONFIG+=no_retroshare_plugins CONFIG+=no_retroshare_nogui \
|
2019-02-11 08:54:33 -05:00
|
|
|
CONFIG+=retroshare_gui CONFIG+=no_tests CONFIG+=no_libresapi \
|
2018-10-08 17:56:05 -04:00
|
|
|
CONFIG+=no_libresapihttpserver CONFIG+=no_libresapilocalserver \
|
2019-02-11 08:54:33 -05:00
|
|
|
CONFIG+=no_retroshare_service ${BUILD_JSONAPI} ${BUILD_DEEPSEARCH} \
|
2018-10-08 17:56:05 -04:00
|
|
|
CONFIG+=release RetroShare.pro
|
|
|
|
make -j$(nproc) || make -j$(nproc) || make
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make INSTALL_ROOT=$RPM_BUILD_ROOT install
|
|
|
|
|
|
|
|
%if 0%{?centos_version} < 800
|
|
|
|
%else
|
|
|
|
%fdupes %{buildroot}/%{_prefix}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
2019-02-11 08:54:33 -05:00
|
|
|
%{_bindir}/retroshare
|
2018-10-08 17:56:05 -04:00
|
|
|
%defattr(644, root, root)
|
|
|
|
%{_datadir}/retroshare
|
2019-02-11 08:54:33 -05:00
|
|
|
%{_datadir}/pixmaps/retroshare.xpm
|
|
|
|
%{_datadir}/icons/hicolor/
|
|
|
|
%{_datadir}/applications/retroshare.desktop
|
2018-10-08 17:56:05 -04:00
|
|
|
|
|
|
|
%changelog
|