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.
@ -19,18 +19,18 @@ unix {
|
|||||||
isEmpty(DATA_DIR) { DATA_DIR = "$${PREFIX}/share/RetroShare06" }
|
isEmpty(DATA_DIR) { DATA_DIR = "$${PREFIX}/share/RetroShare06" }
|
||||||
|
|
||||||
icon_files.path = "$${PREFIX}/share/icons/hicolor"
|
icon_files.path = "$${PREFIX}/share/icons/hicolor"
|
||||||
icon_files.files = build_scripts/Debian+Ubuntu/data/24x24
|
icon_files.files = data/24x24
|
||||||
icon_files.files += build_scripts/Debian+Ubuntu/data/48x48
|
icon_files.files += data/48x48
|
||||||
icon_files.files += build_scripts/Debian+Ubuntu/data/64x64
|
icon_files.files += data/64x64
|
||||||
icon_files.files += build_scripts/Debian+Ubuntu/data/128x128
|
icon_files.files += data/128x128
|
||||||
INSTALLS += icon_files
|
INSTALLS += icon_files
|
||||||
|
|
||||||
desktop_files.path = "$${PREFIX}/share/applications"
|
desktop_files.path = "$${PREFIX}/share/applications"
|
||||||
desktop_files.files = build_scripts/Debian+Ubuntu/retroshare06.desktop
|
desktop_files.files = data/retroshare06.desktop
|
||||||
INSTALLS += desktop_files
|
INSTALLS += desktop_files
|
||||||
|
|
||||||
pixmap_files.path = "$${PREFIX}/share/pixmaps"
|
pixmap_files.path = "$${PREFIX}/share/pixmaps"
|
||||||
pixmap_files.files = build_scripts/Debian+Ubuntu/retroshare06.xpm
|
pixmap_files.files = data/retroshare06.xpm
|
||||||
INSTALLS += pixmap_files
|
INSTALLS += pixmap_files
|
||||||
|
|
||||||
data_files.path = "$${DATA_DIR}"
|
data_files.path = "$${DATA_DIR}"
|
||||||
|
@ -88,7 +88,7 @@ if ! test -d ${workdir}/src/libretroshare/; then
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cp -r data ${workdir}/src/
|
#cp -r data ${workdir}/src/
|
||||||
cp -r debian ${workdir}/debian
|
cp -r debian ${workdir}/debian
|
||||||
|
|
||||||
#svn co -r${rev} ${svnpath}/trunk/ .
|
#svn co -r${rev} ${svnpath}/trunk/ .
|
||||||
|
@ -1 +0,0 @@
|
|||||||
../../Debian+Ubuntu/data/24x24
|
|
@ -1 +0,0 @@
|
|||||||
../../Debian+Ubuntu/data/48x48
|
|
@ -1 +0,0 @@
|
|||||||
../../Debian+Ubuntu/data/64x64
|
|
@ -1 +0,0 @@
|
|||||||
../../Debian+Ubuntu/data/retroshare.png
|
|
@ -1 +0,0 @@
|
|||||||
../../Debian+Ubuntu/data/retroshare.xpm
|
|
@ -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.
|
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
|
%prep
|
||||||
%setup -q -a 0
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cd lib/sqlcipher
|
cd lib/sqlcipher
|
||||||
@ -56,33 +56,14 @@ cd lib/sqlcipher
|
|||||||
make
|
make
|
||||||
cd -
|
cd -
|
||||||
cd src
|
cd src
|
||||||
qmake-qt4 CONFIG=release RetroShare.pro
|
qmake-qt4 CONFIG=release PREFIX=%{_prefix} LIB_DIR=%{_libdir} RetroShare.pro
|
||||||
make
|
make
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
cd src
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
|
make INSTALL_ROOT=$RPM_BUILD_ROOT install
|
||||||
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/
|
|
||||||
#menu
|
#menu
|
||||||
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/retroshare06.desktop
|
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/retroshare06.desktop
|
||||||
|
|
||||||
@ -106,11 +87,11 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%files voip-plugin
|
%files voip-plugin
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
/usr/lib/retroshare/extensions6/libVOIP.so
|
%{_libdir}/retroshare/extensions6/libVOIP.so*
|
||||||
|
|
||||||
%files feedreader-plugin
|
%files feedreader-plugin
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
/usr/lib/retroshare/extensions6/libFeedReader.so
|
%{_libdir}/retroshare/extensions6/libFeedReader.so*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Sat Apr 4 2015 Heini <noreply@nowhere.net> -
|
* Sat Apr 4 2015 Heini <noreply@nowhere.net> -
|
||||||
|
Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 9.6 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |