Move data dir from build_scripts/ to root and adapt RedHat build files

The icons and desktop file in the data directory are shared between
linux distributions so they shouldn't be in the build_scripts directory.

The redhat build now makes use of "make install" and relocatable plugins dir.
This commit is contained in:
AsamK 2015-08-25 00:56:50 +02:00
parent 5c67941e53
commit 5aaf3e66f7
14 changed files with 13 additions and 37 deletions

View File

@ -19,18 +19,18 @@ unix {
isEmpty(DATA_DIR) { DATA_DIR = "$${PREFIX}/share/RetroShare06" }
icon_files.path = "$${PREFIX}/share/icons/hicolor"
icon_files.files = build_scripts/Debian+Ubuntu/data/24x24
icon_files.files += build_scripts/Debian+Ubuntu/data/48x48
icon_files.files += build_scripts/Debian+Ubuntu/data/64x64
icon_files.files += build_scripts/Debian+Ubuntu/data/128x128
icon_files.files = data/24x24
icon_files.files += data/48x48
icon_files.files += data/64x64
icon_files.files += data/128x128
INSTALLS += icon_files
desktop_files.path = "$${PREFIX}/share/applications"
desktop_files.files = build_scripts/Debian+Ubuntu/retroshare06.desktop
desktop_files.files = data/retroshare06.desktop
INSTALLS += desktop_files
pixmap_files.path = "$${PREFIX}/share/pixmaps"
pixmap_files.files = build_scripts/Debian+Ubuntu/retroshare06.xpm
pixmap_files.files = data/retroshare06.xpm
INSTALLS += pixmap_files
data_files.path = "$${DATA_DIR}"

View File

@ -88,7 +88,7 @@ if ! test -d ${workdir}/src/libretroshare/; then
exit
fi
cp -r data ${workdir}/src/
#cp -r data ${workdir}/src/
cp -r debian ${workdir}/debian
#svn co -r${rev} ${svnpath}/trunk/ .

View File

@ -1 +0,0 @@
../../Debian+Ubuntu/data/24x24

View File

@ -1 +0,0 @@
../../Debian+Ubuntu/data/48x48

View File

@ -1 +0,0 @@
../../Debian+Ubuntu/data/64x64

View File

@ -1 +0,0 @@
../../Debian+Ubuntu/data/retroshare.png

View File

@ -1 +0,0 @@
../../Debian+Ubuntu/data/retroshare.xpm

View File

@ -48,7 +48,7 @@ Requires: %name = %{version}
This package provides a plugin for RetroShare, a secured Friend-to-Friend communication platform. The plugin adds a RSS feed reader tab to retroshare.
%prep
%setup -q -a 0
%setup -q
%build
cd lib/sqlcipher
@ -56,33 +56,14 @@ cd lib/sqlcipher
make
cd -
cd src
qmake-qt4 CONFIG=release RetroShare.pro
qmake-qt4 CONFIG=release PREFIX=%{_prefix} LIB_DIR=%{_libdir} RetroShare.pro
make
cd -
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/24x24/apps
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps
mkdir -p $RPM_BUILD_ROOT%{_datadir}/RetroShare06
mkdir -p $RPM_BUILD_ROOT/usr/lib/retroshare/extensions6
#bin
install -m 755 src/retroshare-gui/src/RetroShare $RPM_BUILD_ROOT%{_bindir}/RetroShare06
install -m 755 src/retroshare-nogui/src/retroshare-nogui $RPM_BUILD_ROOT%{_bindir}/RetroShare06-nogui
#icons
install -m 644 src/data/retroshare.xpm $RPM_BUILD_ROOT%{_datadir}/pixmaps/retroshare06.xpm
install -m 644 src/data/24x24/retroshare.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/24x24/apps/retroshare06.png
install -m 644 src/data/48x48/retroshare.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/retroshare06.png
install -m 644 src/data/64x64/retroshare.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps/retroshare06.png
install -m 644 src/data/retroshare.desktop $RPM_BUILD_ROOT%{_datadir}/applications/retroshare06.desktop
install -m 644 src/libbitdht/src/bitdht/bdboot.txt $RPM_BUILD_ROOT%{_datadir}/RetroShare06/
#plugins
install -m 755 src/plugins/VOIP/libVOIP.so $RPM_BUILD_ROOT/usr/lib/retroshare/extensions6/
install -m 755 src/plugins/FeedReader/libFeedReader.so $RPM_BUILD_ROOT/usr/lib/retroshare/extensions6/
cd src
make INSTALL_ROOT=$RPM_BUILD_ROOT install
#menu
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/retroshare06.desktop
@ -106,11 +87,11 @@ rm -rf $RPM_BUILD_ROOT
%files voip-plugin
%defattr(-, root, root)
/usr/lib/retroshare/extensions6/libVOIP.so
%{_libdir}/retroshare/extensions6/libVOIP.so*
%files feedreader-plugin
%defattr(-, root, root)
/usr/lib/retroshare/extensions6/libFeedReader.so
%{_libdir}/retroshare/extensions6/libFeedReader.so*
%changelog
* Sat Apr 4 2015 Heini <noreply@nowhere.net> -

View File

Before

Width:  |  Height:  |  Size: 9.6 KiB

After

Width:  |  Height:  |  Size: 9.6 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB