mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-01 10:46:23 -04:00
Update open build service recipes
This commit is contained in:
parent
a96310d45e
commit
3f2a1d52c2
66 changed files with 5111 additions and 70 deletions
|
@ -0,0 +1,48 @@
|
|||
# Maintainer: Gioacchino Mazzurco <gio@altermundi.net>
|
||||
# Contributor: AsamK
|
||||
# Contributor: sehraf
|
||||
# Contributor: stqn
|
||||
# Contributor: JHeaton <jheaton at archlinux dot us>
|
||||
# Contributor: Tristero <tristero at online dot de>
|
||||
# Contributor: funkyou
|
||||
|
||||
pkgname=retroshare
|
||||
pkgver=stable
|
||||
pkgrel=0
|
||||
pkgdesc="Serverless encrypted instant messenger with filesharing, chatgroups, e-mail. System service version."
|
||||
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
|
||||
url="https://retroshare.cc/"
|
||||
license=('AGPL' 'GPL' 'LGPL')
|
||||
depends=('bzip2' 'libupnp' 'libxss' 'libzip' 'openssl' 'qt5-multimedia' 'qt5-x11extras' 'rapidjson' 'sqlcipher' 'xapian-core')
|
||||
makedepends=('cmake' 'doxygen' 'pkgconf' 'qt5-tools')
|
||||
provides=('retroshare')
|
||||
conflicts=('retroshare-gui-unstable')
|
||||
|
||||
source=(RetroShare.tar.gz)
|
||||
|
||||
md5sums=('45a438fb9a862542cc651c6f5ff28fac')
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}/RetroShare"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/RetroShare"
|
||||
qmake-qt5 PREFIX=/usr DATA_DIR=/usr/share/retroshare \
|
||||
RS_MAJOR_VERSION=0 RS_MINOR_VERSION=6 RS_MINI_VERSION=5 \
|
||||
RS_EXTRA_VERSION="-retroshare-gui-OBS-Arch" \
|
||||
CONFIG-=debug \
|
||||
CONFIG+=ipv6 CONFIG+=no_retroshare_android_service \
|
||||
CONFIG+=no_retroshare_android_notify_service \
|
||||
CONFIG+=no_retroshare_plugins CONFIG+=no_retroshare_nogui \
|
||||
CONFIG+=retroshare_gui CONFIG+=no_tests CONFIG+=no_libresapi \
|
||||
CONFIG+=no_libresapihttpserver CONFIG+=no_libresapilocalserver \
|
||||
CONFIG+=no_retroshare_service CONFIG+=rs_jsonapi CONFIG+=rs_deep_search \
|
||||
CONFIG+=release
|
||||
make -j$(nproc) || make -j$(nproc) || make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/RetroShare"
|
||||
make INSTALL_ROOT="${pkgdir}" install
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
app: retroshare-gui
|
||||
|
||||
build:
|
||||
packages:
|
||||
- desktop-file-utils
|
||||
- doxygen
|
||||
- gcc5
|
||||
- gcc5-c++
|
||||
- glib2-devel
|
||||
- libbz2-devel
|
||||
- libqt5-qtbase-devel
|
||||
- libqt5-qtmultimedia-devel
|
||||
- libqt5-qttools-devel
|
||||
- libqt5-qtsvg-devel
|
||||
- libqt5-qtx11extras-devel
|
||||
- libupnp-devel
|
||||
- libxapian-devel
|
||||
- libXScrnSaver-devel
|
||||
- linuxdeployqt
|
||||
- openssl-devel
|
||||
- sqlcipher-devel
|
||||
- update-desktop-files
|
||||
|
||||
script:
|
||||
- cd $BUILD_SOURCE_DIR
|
||||
- tar -xf RetroShare.tar.gz
|
||||
- cd RetroShare
|
||||
- gcc --version
|
||||
- ls $(which gcc)*
|
||||
- ls $(which g++)*
|
||||
- sed -i 's/retroshare.xpm/retroshare/' data/retroshare.desktop
|
||||
- sed -i 's|/usr/bin/retroshare|retroshare|' data/retroshare.desktop
|
||||
- qmake-qt5 QMAKE_CC=gcc-5 QMAKE_CXX=g++-5 PREFIX=/usr RS_MAJOR_VERSION=0 RS_MINOR_VERSION=6 RS_MINI_VERSION=5 RS_EXTRA_VERSION="-retroshare-gui-OBS-AppImage" CONFIG-=debug CONFIG+=release CONFIG+=no_retroshare_nogui CONFIG+=no_retroshare_plugins CONFIG+=no_retroshare_qml_app CONFIG+=no_retroshare_android_notify_service CONFIG+=no_retroshare_plugins CONFIG+=ipv6 CONFIG+=no_tests CONFIG+=rs_jsonapi CONFIG+=no_retroshare_android_service CONFIG+=rs_deep_search CONFIG+=no_libresapilocalserver CONFIG+=retroshare_gui CONFIG+=no_libresapihttpserver CONFIG+=no_retroshare_service CONFIG+=no_libresapi CONFIG+=c++11 CONFIG+=appimage
|
||||
- make -j$(nproc) || make -j$(nproc) || make
|
||||
- make INSTALL_ROOT=$BUILD_APPDIR install
|
||||
- unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH
|
||||
- linuxdeployqt $BUILD_APPDIR/usr/share/applications/*.desktop -bundle-non-qt-libs -verbose=3 -no-strip
|
|
@ -0,0 +1,5 @@
|
|||
retroshare (0.6.5) stable; urgency=low
|
||||
|
||||
Add retroshare 0.6.5 package
|
||||
|
||||
-- Gioacchino Mazzurco <gio@altermundi.net> Mon, 09 Feb 2019 16:56:00 +0100
|
|
@ -0,0 +1 @@
|
|||
7
|
|
@ -0,0 +1,17 @@
|
|||
Source: retroshare
|
||||
Section: devel
|
||||
Priority: standard
|
||||
Maintainer: Cyril Soler <csoler@users.sourceforge.net>
|
||||
Standards-Version: 3.9.3
|
||||
Homepage: https://retroshare.cc
|
||||
|
||||
Package: retroshare
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||
Description: Secure communication with friends
|
||||
RetroShare is a Free and Open Source, private 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.
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
debian/tmp/usr/bin/retroshare
|
||||
debian/tmp/usr/share/applications/retroshare.desktop
|
||||
debian/tmp/usr/share/icons/hicolor/*
|
||||
debian/tmp/usr/share/pixmaps/retroshare.xpm
|
||||
debian/tmp/usr/share/retroshare/*
|
|
@ -0,0 +1,69 @@
|
|||
#!/usr/bin/make -f
|
||||
|
||||
configure: configure-stamp
|
||||
configure-stamp:
|
||||
dh_testdir
|
||||
cat /etc/os-release
|
||||
qmake --version
|
||||
echo '. /etc/os-release' > /tmp/configJsonApi.sh
|
||||
echo '[ "$$VERSION_ID" != "8" ] &&' >> /tmp/configJsonApi.sh
|
||||
echo ' echo "CONFIG+=rs_jsonapi"' >> /tmp/configJsonApi.sh
|
||||
echo 'true' >> /tmp/configJsonApi.sh
|
||||
chmod +x /tmp/configJsonApi.sh
|
||||
qmake \
|
||||
RS_MAJOR_VERSION=0 RS_MINOR_VERSION=6 RS_MINI_VERSION=5 \
|
||||
RS_EXTRA_VERSION="-retroshare-gui-OBS-deb" \
|
||||
CONFIG-=debug CONFIG+=release PREFIX=/usr LIB_DIR=/usr/lib \
|
||||
CONFIG+=no_retroshare_plugins CONFIG+=no_retroshare_nogui \
|
||||
CONFIG+=retroshare_gui CONFIG+=no_tests CONFIG+=no_libresapi \
|
||||
CONFIG+=no_libresapihttpserver CONFIG+=no_libresapilocalserver \
|
||||
CONFIG+=no_retroshare_service CONFIG+=rs_deep_search CONFIG+=c++11 \
|
||||
$$(/tmp/configJsonApi.sh) \
|
||||
RetroShare.pro
|
||||
touch $@
|
||||
|
||||
build: build-stamp
|
||||
build-stamp: configure-stamp
|
||||
dh_testdir
|
||||
$(MAKE) -j$(shell nproc) || $(MAKE) -j$(shell nproc) || $(MAKE)
|
||||
touch $@
|
||||
|
||||
clean:
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
rm -f configure-stamp build-stamp
|
||||
# Add here commands to clean up after the build process.
|
||||
[ ! -f Makefile ] || $(MAKE) distclean
|
||||
dh_clean
|
||||
|
||||
install: build
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_clean -k
|
||||
#dh_installdirs
|
||||
$(MAKE) INSTALL_ROOT=$(CURDIR)/debian/tmp install
|
||||
|
||||
# Build architecture-independent files here.
|
||||
binary-indep: build install
|
||||
# We have nothing to do by default.
|
||||
|
||||
# Build architecture-dependent files here.
|
||||
binary-arch: build install
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_install --list-missing
|
||||
#dh_installdocs
|
||||
#dh_installexamples
|
||||
#dh_installman
|
||||
dh_link
|
||||
dh_strip
|
||||
dh_compress
|
||||
dh_fixperms
|
||||
dh_installdeb
|
||||
dh_shlibdeps
|
||||
dh_gencontrol
|
||||
dh_md5sums
|
||||
dh_builddeb
|
||||
|
||||
binary: binary-indep binary-arch
|
||||
.PHONY: build clean binary-indep binary-arch binary install configure
|
|
@ -0,0 +1,11 @@
|
|||
Format: 1.0
|
||||
Source: retroshare
|
||||
Binary: retroshare
|
||||
Architecture: any
|
||||
Version: 0.6.5
|
||||
Maintainer: Cyril Soler <csoler@users.sourceforge.net>
|
||||
Homepage: https://retroshare.cc
|
||||
Standards-Version: 3.8.1
|
||||
Build-Depends: cmake, debhelper (>= 7), doxygen, libglib2.0-dev, libssl-dev, libbz2-dev, libqt5x11extras5-dev, libsqlcipher-dev, libupnp-dev, libxapian-dev, libxss-dev, qt5-default, qtbase5-dev, qtmultimedia5-dev, qttools5-dev
|
||||
Files:
|
||||
45a438fb9a862542cc651c6f5ff28fac 29377995 RetroShare.tar.gz
|
|
@ -0,0 +1,151 @@
|
|||
Name: retroshare
|
||||
Version: 0.6.5
|
||||
Release: 0
|
||||
License: AGPL-3.0-or-later
|
||||
Summary: Secure distributed chat, mail, forums, file sharing etc
|
||||
Group: Productivity/Networking/Other
|
||||
Url: https://retroshare.cc
|
||||
Source0: RetroShare.tar.gz
|
||||
#Patch0: various.patch
|
||||
BuildRoot: %{_tmppath}/%{name}
|
||||
Conflicts: retroshare-gui-unstable
|
||||
BuildRequires: cmake doxygen openssl-devel sqlcipher-devel
|
||||
|
||||
%if %{defined centos_version}
|
||||
BuildRequires: qt5-qtbase-devel qt5-qttools-devel qt5-qttools-static
|
||||
BuildRequires: qt5-qtmultimedia-devel qt5-qtx11extras-devel libXScrnSaver-devel
|
||||
BuildRequires: libupnp-devel
|
||||
%endif
|
||||
|
||||
%if 0%{?fedora_version}
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: fdupes xapian-core-devel libXScrnSaver-devel
|
||||
BuildRequires: qt5-qtbase-devel qt5-qttools-devel qt5-qttools-static
|
||||
BuildRequires: qt5-qtx11extras-devel qt5-qtmultimedia-devel
|
||||
%endif
|
||||
|
||||
%if 0%{?fedora_version} >= 29
|
||||
BuildRequires: miniupnpc-devel
|
||||
%else
|
||||
BuildRequires: libupnp-devel
|
||||
%endif
|
||||
|
||||
%if %{defined mageia}
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libzlib-devel libbzip2-devel
|
||||
BuildRequires: libqt5core-devel libqt5xml-devel libxapian-devel
|
||||
BuildRequires: libqt5x11extras-devel libxscrnsaver-devel libqt5multimedia-devel
|
||||
BuildRequires: libqt5designer-devel
|
||||
BuildRequires: libqt5gui-devel libqt5printsupport-devel
|
||||
BuildRequires: libupnp-devel
|
||||
%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
|
||||
BuildRequires: libqt5-qtx11extras-devel
|
||||
BuildRequires: libqt5-qtmultimedia-devel libXScrnSaver-devel
|
||||
BuildRequires: libminiupnpc-devel
|
||||
%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:
|
||||
see https://retroshare.cc/
|
||||
--------
|
||||
|
||||
%prep
|
||||
%setup -n RetroShare
|
||||
#%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"
|
||||
BUILD_JSONAPI="CONFIG+=rs_jsonapi"
|
||||
QMAKE="qmake-qt5"
|
||||
|
||||
%if %{defined centos_version}
|
||||
# Xapian is not availabe on Centos 7
|
||||
BUILD_DEEPSEARCH="CONFIG+=no_rs_deep_search"
|
||||
BUILD_JSONAPI="CONFIG+=no_rs_jsonapi"
|
||||
%endif
|
||||
|
||||
%if %{defined mageia}
|
||||
QMAKE="qmake"
|
||||
%endif
|
||||
|
||||
%if 0%{?suse_version}
|
||||
BUILD_CC="QMAKE_CC=gcc-7"
|
||||
BUILD_CXX="QMAKE_CXX=g++-7"
|
||||
RS_UPNP_LIB="RS_UPNP_LIB=miniupnpc"
|
||||
%endif
|
||||
|
||||
# On OpenSuse Tumbleweed and Factory ARM 64 bits seems cmake/restbed and
|
||||
# qmake/retroshare have PIE/PIC mismatch attempt to coherce restbed to be PIC
|
||||
# https://en.opensuse.org/Archive:How_to_detect_Tumbleweed
|
||||
%if 0%{?suse_version} == 1550 && ( (%{_arch} == "x86_64") || (%{_arch} == "aarch64") )
|
||||
RESTBED_CMAKE_FILE="supportlibs/restbed/CMakeLists.txt"
|
||||
echo 'set(CMAKE_POSITION_INDEPENDENT_CODE ON)' | \
|
||||
cat - $RESTBED_CMAKE_FILE > tmp_cmake && mv tmp_cmake $RESTBED_CMAKE_FILE
|
||||
cat $RESTBED_CMAKE_FILE
|
||||
%endif
|
||||
|
||||
%if 0%{?fedora_version} >= 29
|
||||
RS_UPNP_LIB="RS_UPNP_LIB=miniupnpc"
|
||||
%endif
|
||||
|
||||
$QMAKE $BUILD_CC $BUILD_CXX QMAKE_STRIP=echo PREFIX="%{_prefix}" \
|
||||
BIN_DIR="%{_bindir}" LIB_DIR="%{_libdir}" ${QMAKE_NO_PIE} \
|
||||
DATA_DIR="%{_datadir}/retroshare" ${RS_UPNP_LIB} \
|
||||
RS_MAJOR_VERSION=0 RS_MINOR_VERSION=6 RS_MINI_VERSION=5 \
|
||||
RS_EXTRA_VERSION="-retroshare-gui-OBS-rpm" \
|
||||
CONFIG-=debug \
|
||||
CONFIG+=ipv6 CONFIG+=no_retroshare_android_service \
|
||||
CONFIG+=no_retroshare_android_notify_service \
|
||||
CONFIG+=no_retroshare_plugins CONFIG+=no_retroshare_nogui \
|
||||
CONFIG+=retroshare_gui CONFIG+=no_tests CONFIG+=no_libresapi \
|
||||
CONFIG+=no_libresapihttpserver CONFIG+=no_libresapilocalserver \
|
||||
CONFIG+=no_retroshare_service ${BUILD_JSONAPI} ${BUILD_DEEPSEARCH} \
|
||||
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)
|
||||
%{_bindir}/retroshare
|
||||
%defattr(644, root, root)
|
||||
%{_datadir}/retroshare
|
||||
%{_datadir}/pixmaps/retroshare.xpm
|
||||
%{_datadir}/icons/hicolor/
|
||||
%{_datadir}/applications/retroshare.desktop
|
||||
|
||||
%changelog
|
Loading…
Add table
Add a link
Reference in a new issue