Thu, 28 Jul 2011 12:26:06 +0200
Modify AppUp RPM according to wishes of Intel AppUp validation group.
pkgs/appup/schachuhr.spec | file | annotate | diff | comparison | revisions |
1.1 --- a/pkgs/appup/schachuhr.spec Wed Jul 27 23:10:09 2011 +0200 1.2 +++ b/pkgs/appup/schachuhr.spec Thu Jul 28 12:26:06 2011 +0200 1.3 @@ -49,6 +49,7 @@ 1.4 1.5 %prep 1.6 %setup -q 1.7 +sed -i -e 's;/usr/share/schachuhr/qml/main.qml;/opt/schachuhr/qml/main.qml;' main.cpp 1.8 1.9 %build 1.10 qmake 1.11 @@ -57,31 +58,36 @@ 1.12 1.13 %install 1.14 rm -rf %{buildroot} 1.15 -mkdir -p %{buildroot}/opt/share/doc/schachuhr 1.16 -mkdir -p %{buildroot}/opt/share/man/man6 1.17 %make_install INSTALL_ROOT=%{buildroot} 1.18 -cp docs/license.txt %{buildroot}/opt/share/doc/schachuhr/ 1.19 -cp docs/readme.txt %{buildroot}/opt/share/doc/schachuhr/ 1.20 -cp docs/schachuhr.6.gz %{buildroot}/opt/share/man/man6/ 1.21 +mkdir -p %{buildroot}/opt/schachuhr/doc 1.22 +mkdir -p %{buildroot}/opt/schachuhr/man/man6 1.23 +mv %{buildroot}/usr/share/schachuhr/* %{buildroot}/opt/schachuhr/ 1.24 +mv %{buildroot}/usr/share/applications %{buildroot}/opt/schachuhr/ 1.25 +mv %{buildroot}/usr/share/icons %{buildroot}/opt/schachuhr/ 1.26 +mv %{buildroot}/usr/bin/* %{buildroot}/opt/schachuhr/ 1.27 +cp docs/license.txt %{buildroot}/opt/schachuhr/doc/ 1.28 +cp docs/readme.txt %{buildroot}/opt/schachuhr/doc/ 1.29 +cp docs/schachuhr.6.gz %{buildroot}/opt/schachuhr/man/man6/ 1.30 1.31 %files 1.32 %defattr(-,root,root,-) 1.33 -%{_bindir}/* 1.34 -%doc %{_datadir}/doc/schachuhr 1.35 -%doc %{_datadir}/man/man6/schachuhr.6.gz 1.36 -%{_datadir}/applications/schachuhr.desktop 1.37 -%{_datadir}/icons/hicolor/scalable/apps/schachuhr.svg 1.38 -%{_datadir}/schachuhr/qml/* 1.39 +/opt/schachuhr/schachuhr 1.40 +%doc /opt/schachuhr/doc/* 1.41 +%doc /opt/schachuhr/man/man6/schachuhr.6.gz 1.42 +/opt/schachuhr/applications/schachuhr.desktop 1.43 +/opt/schachuhr/icons/hicolor/scalable/apps/schachuhr.svg 1.44 +/opt/schachuhr/qml/* 1.45 1.46 -%post 1.47 -echo "+------------------------Warning------------------------+" 1.48 -echo "| To pass AppUp validation this binary package must be |" 1.49 -echo "| correctly named: com.<company>.<appname>.rpm |" 1.50 -echo "+-------------------------------------------------------+" 1.51 +#%post 1.52 +#echo "+------------------------Warning------------------------+" 1.53 +#echo "| To pass AppUp validation this binary package must be |" 1.54 +#echo "| correctly named: com.<company>.<appname>.rpm |" 1.55 +#echo "+-------------------------------------------------------+" 1.56 1.57 %changelog 1.58 * Tue Jul 26 2011 Michael Schloh von Bennewitz <michael@schloh.com> - 0.6.2 1.59 - Update version with vendor upstream current release. 1.60 +- Modify paths to comply with AppUp validation requirements. 1.61 * Sat Jul 09 2011 Michael Schloh von Bennewitz <michael@schloh.com> - 0.6.1 1.62 - Correct runtime binary dependencies to not use the pkgconfig framework. 1.63 * Fri Jul 08 2011 Michael Schloh von Bennewitz <michael@schloh.com> - 0.6.0