2017-03-19 21:42:43 +03:00
|
|
|
#define _disable_ld_no_undefined 1
|
|
|
|
%define oname RetroShare
|
|
|
|
%define pkname retroshare
|
|
|
|
%define suff qt5
|
2025-01-31 15:09:03 +00:00
|
|
|
%define gitrev 032f1307ffdd80da7968228cb09e481c272eefbb
|
|
|
|
%define gitdate 20181127
|
2017-03-19 21:42:43 +03:00
|
|
|
%define debug %nil
|
|
|
|
%define debug_package %nil
|
|
|
|
#on/off plugins build
|
|
|
|
#if Qt5 to plugins off
|
2025-01-31 15:09:03 +00:00
|
|
|
%define plugins 1
|
2017-03-19 21:42:43 +03:00
|
|
|
|
|
|
|
Summary: Secure decentralized communication platform
|
|
|
|
Name: %{pkname}-%{suff}
|
2018-05-09 21:57:13 +03:00
|
|
|
Version: 0.6.4
|
2025-01-31 15:09:03 +00:00
|
|
|
Release: 2.%{gitdate}
|
2017-03-19 21:42:43 +03:00
|
|
|
License: GPLv2+
|
|
|
|
Group: Networking/File transfer
|
|
|
|
Url: https://github.com/RetroShare/RetroShare
|
2025-01-31 15:09:03 +00:00
|
|
|
Source0: https://github.com/RetroShare/RetroShare/archive/%{oname}-%{gitrev}.zip
|
2017-03-19 21:42:43 +03:00
|
|
|
Source100: %{name}.rpmlintrc
|
|
|
|
## patch delete all plugins
|
2018-05-09 21:57:13 +03:00
|
|
|
#if !%{plugins}
|
|
|
|
#Patch0: %{oname}.pro.patch
|
|
|
|
#endif
|
2017-03-19 21:42:43 +03:00
|
|
|
# patches renamed TARGET
|
|
|
|
Patch1: %{pkname}-gui.pro.patch
|
|
|
|
Patch2: %{pkname}-nogui.pro.patch
|
|
|
|
Patch3: %{pkname}.pri.patch
|
|
|
|
BuildRequires: imagemagick
|
|
|
|
BuildRequires: pkgconfig(gnome-keyring-1)
|
|
|
|
BuildRequires: pkgconfig(libcurl)
|
|
|
|
BuildRequires: pkgconfig(libssh)
|
|
|
|
BuildRequires: pkgconfig(libupnp)
|
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
|
|
BuildRequires: pkgconfig(libxslt)
|
|
|
|
BuildRequires: pkgconfig(protobuf)
|
|
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
|
|
|
BuildRequires: pkgconfig(Qt5Core)
|
|
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
|
|
|
BuildRequires: pkgconfig(Qt5Multimedia)
|
|
|
|
BuildRequires: pkgconfig(Qt5Xml)
|
2018-05-09 22:40:46 +03:00
|
|
|
BuildRequires: pkgconfig(Qt5UiTools)
|
|
|
|
BuildRequires: pkgconfig(Qt5X11Extras)
|
|
|
|
BuildRequires: pkgconfig(Qt5PrintSupport)
|
|
|
|
BuildRequires: pkgconfig(Qt5Network)
|
2017-03-19 21:42:43 +03:00
|
|
|
BuildRequires: pkgconfig(speex)
|
|
|
|
BuildRequires: pkgconfig(xscrnsaver)
|
|
|
|
BuildRequires: pkgconfig(sqlcipher)
|
|
|
|
BuildRequires: pkgconfig(libmicrohttpd)
|
|
|
|
BuildRequires: pkgconfig(libavcodec)
|
|
|
|
BuildRequires: pkgconfig(opencv)
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
|
|
|
|
%description
|
|
|
|
RetroShare is a Open Source cross-platform, Friend-2-Friend and secure
|
|
|
|
decentralized communication platform.
|
|
|
|
|
|
|
|
It lets you to securely chat and share files with your friends and
|
|
|
|
family, using a web-of-trust to authenticate peers and OpenSSL to
|
|
|
|
encrypt all communication.
|
|
|
|
|
|
|
|
RetroShare provides filesharing, chat, messages, forums and channels.
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
%package nogui
|
|
|
|
Summary: RetroShare cli client
|
|
|
|
Group: Networking/Other
|
|
|
|
Requires: openssl
|
|
|
|
Conflicts: %{name} = %{version}
|
|
|
|
|
|
|
|
%description nogui
|
|
|
|
This is the command-line client for RetroShare network.
|
|
|
|
This client can be contacted and talked-to using SSL.
|
|
|
|
Clients exist for portable devices running e.g. Android.
|
|
|
|
|
|
|
|
%files nogui
|
|
|
|
%doc LICENSE.txt
|
2018-05-09 21:57:13 +03:00
|
|
|
%{_bindir}/%{pkname}-nogui-%{suff}
|
2017-03-19 21:42:43 +03:00
|
|
|
|
|
|
|
%if %{plugins}
|
|
|
|
%package voip-plugin
|
|
|
|
Summary: RetroShare VOIP plugin
|
|
|
|
Group: Networking/Other
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
BuildRequires: pkgconfig(opencv)
|
|
|
|
BuildRequires: pkgconfig(speex)
|
|
|
|
|
|
|
|
%description voip-plugin
|
|
|
|
This package provides a plugin for RetroShare,
|
|
|
|
a secured Friend-to-Friend communication platform.
|
|
|
|
The plugin adds voice-over-IP functionality to
|
|
|
|
the private chat window. Both friends chatting together
|
|
|
|
need the plugin installed to be able to talk together.
|
|
|
|
|
|
|
|
%files voip-plugin
|
|
|
|
%doc LICENSE.txt
|
2018-05-09 21:57:13 +03:00
|
|
|
%{_libdir}/retroshare/extensions/libVOIP.so*
|
2017-03-19 21:42:43 +03:00
|
|
|
|
|
|
|
%package feedreader-plugin
|
|
|
|
Summary: RetroShare FeedReader plugin
|
|
|
|
Group: Networking/Other
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description feedreader-plugin
|
|
|
|
This package provides a plugin for RetroShare,
|
|
|
|
a secured Friend-to-Friend communication platform.
|
|
|
|
The plugin adds a RSS feed reader tab to retroshare.
|
|
|
|
|
|
|
|
%files feedreader-plugin
|
|
|
|
%doc LICENSE.txt
|
2018-05-09 21:57:13 +03:00
|
|
|
%{_libdir}/retroshare/extensions/libFeedReader.so*
|
2017-03-19 21:42:43 +03:00
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%prep
|
2025-01-31 15:09:03 +00:00
|
|
|
%setup -qn %{oname}-%{gitrev}
|
2018-05-09 21:57:13 +03:00
|
|
|
#patch0 -p0
|
2025-01-31 15:09:03 +00:00
|
|
|
#patch1 -p0
|
|
|
|
#patch2 -p0
|
2018-05-09 21:57:13 +03:00
|
|
|
#patch3 -p0
|
2017-03-19 21:42:43 +03:00
|
|
|
|
2018-05-09 21:57:13 +03:00
|
|
|
#sed -i s,"/usr/lib/retroshare","%{_libdir}/retroshare-qt5",g libretroshare/src/rsserver/rsinit.cc
|
2017-03-19 21:42:43 +03:00
|
|
|
|
|
|
|
%build
|
|
|
|
%global optflags %{optflags} -std=c++11
|
|
|
|
#qmake_qt5 "CONFIG-=debug" "CONFIG+=release" PREFIX=%{_prefix} LIB_DIR=%{_libdir} \
|
|
|
|
# DATA_DIR=%{_datadir}/%{name} INC_DIR=%{_includedir}/%{pkname} "CONFIG-=retroshare_plugins" "CONFIG -= plugin" \
|
|
|
|
# RetroShare.pro
|
|
|
|
|
|
|
|
# build qt4 only
|
2018-05-09 21:57:13 +03:00
|
|
|
#%qmake_qt5 "CONFIG-=debug" "CONFIG+=release" PREFIX=%{_prefix} LIB_DIR=%{_libdir} \
|
|
|
|
# DATA_DIR=%{_datadir}/%{name} INC_DIR=%{_includedir}/%{pkname} "CONFIG-=retroshare_plugins" "CONFIG -= plugin" \
|
|
|
|
# RetroShare.pro
|
|
|
|
|
2025-01-31 15:09:03 +00:00
|
|
|
qmake-qt5 "CONFIG-=debug" "CONFIG+=release" "CONFIG+=retroshare_plugins" \
|
|
|
|
"TARGET+=%{name}" "QMAKE_TARGET+=%{name}" \
|
2018-05-09 21:57:13 +03:00
|
|
|
PREFIX=%{_prefix} LIB_DIR=%{_libdir} \
|
|
|
|
DATA_DIR=%{_datadir}/%{name} INC_DIR=%{_includedir}/%{name} \
|
2017-03-19 21:42:43 +03:00
|
|
|
RetroShare.pro
|
2018-05-09 21:57:13 +03:00
|
|
|
#CONFIG+=retroshare_plugins
|
2017-03-19 21:42:43 +03:00
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
2018-05-09 21:57:13 +03:00
|
|
|
make INSTALL_ROOT=%{buildroot} install
|
2017-03-19 21:42:43 +03:00
|
|
|
|
|
|
|
# install menu entry
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/applications/
|
|
|
|
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
|
|
|
|
[Desktop Entry]
|
2018-05-09 21:57:13 +03:00
|
|
|
Name=RetroShare-Qt5
|
2017-03-19 21:42:43 +03:00
|
|
|
Comment=Secure decentralized communication platform
|
|
|
|
Exec=%{name}
|
2018-05-09 21:57:13 +03:00
|
|
|
Icon=%{pkname}
|
2017-03-19 21:42:43 +03:00
|
|
|
Terminal=false
|
|
|
|
Type=Application
|
|
|
|
Categories=Network;FileTransfer;
|
|
|
|
MimeType=x-scheme-handler/retroshare;
|
|
|
|
EOF
|
|
|
|
|
|
|
|
# install menu icons
|
2018-05-09 21:57:13 +03:00
|
|
|
#for N in 16 24 32 48 64 128;
|
|
|
|
#do
|
|
|
|
#convert data/retroshare06.xpm -scale ${N}x${N} $N.png;
|
|
|
|
#install -D -m 0644 $N.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
|
|
|
|
#done
|
|
|
|
#rm -f data/*.xpm data/*.desktop
|
|
|
|
#cp -a data/ %{buildroot}%{_iconsdir}/hicolor/
|
|
|
|
|
2017-03-19 21:42:43 +03:00
|
|
|
|
|
|
|
#clean stream icons retroshare06.png
|
2018-05-09 21:57:13 +03:00
|
|
|
#find %{buildroot}%{_iconsdir}/hicolor -name retroshare06.png -delete
|
2017-03-19 21:42:43 +03:00
|
|
|
find %{buildroot}%{_datadir}/%{name} -name *.sh -delete
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc LICENSE.txt README.md
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
2018-05-09 21:57:13 +03:00
|
|
|
%{_iconsdir}/hicolor/*/apps/%{pkname}.png
|
2017-03-19 21:42:43 +03:00
|
|
|
%{_datadir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|