47 SchachUhr is an electronic representation of a traditional game clock |
47 SchachUhr is an electronic representation of a traditional game clock |
48 such as those wooden or plastic clocks used in judging a chess match. |
48 such as those wooden or plastic clocks used in judging a chess match. |
49 |
49 |
50 %prep |
50 %prep |
51 %setup -q |
51 %setup -q |
|
52 sed -i -e 's;/usr/share/schachuhr/qml/main.qml;/opt/schachuhr/qml/main.qml;' main.cpp |
52 |
53 |
53 %build |
54 %build |
54 qmake |
55 qmake |
55 make %{?jobs:-j%jobs} |
56 make %{?jobs:-j%jobs} |
56 groff -t -e -mandoc -Tascii docs/schachuhr.6.tr | col -bx | gzip -9 >docs/schachuhr.6.gz |
57 groff -t -e -mandoc -Tascii docs/schachuhr.6.tr | col -bx | gzip -9 >docs/schachuhr.6.gz |
57 |
58 |
58 %install |
59 %install |
59 rm -rf %{buildroot} |
60 rm -rf %{buildroot} |
60 mkdir -p %{buildroot}/opt/share/doc/schachuhr |
|
61 mkdir -p %{buildroot}/opt/share/man/man6 |
|
62 %make_install INSTALL_ROOT=%{buildroot} |
61 %make_install INSTALL_ROOT=%{buildroot} |
63 cp docs/license.txt %{buildroot}/opt/share/doc/schachuhr/ |
62 mkdir -p %{buildroot}/opt/schachuhr/doc |
64 cp docs/readme.txt %{buildroot}/opt/share/doc/schachuhr/ |
63 mkdir -p %{buildroot}/opt/schachuhr/man/man6 |
65 cp docs/schachuhr.6.gz %{buildroot}/opt/share/man/man6/ |
64 mv %{buildroot}/usr/share/schachuhr/* %{buildroot}/opt/schachuhr/ |
|
65 mv %{buildroot}/usr/share/applications %{buildroot}/opt/schachuhr/ |
|
66 mv %{buildroot}/usr/share/icons %{buildroot}/opt/schachuhr/ |
|
67 mv %{buildroot}/usr/bin/* %{buildroot}/opt/schachuhr/ |
|
68 cp docs/license.txt %{buildroot}/opt/schachuhr/doc/ |
|
69 cp docs/readme.txt %{buildroot}/opt/schachuhr/doc/ |
|
70 cp docs/schachuhr.6.gz %{buildroot}/opt/schachuhr/man/man6/ |
66 |
71 |
67 %files |
72 %files |
68 %defattr(-,root,root,-) |
73 %defattr(-,root,root,-) |
69 %{_bindir}/* |
74 /opt/schachuhr/schachuhr |
70 %doc %{_datadir}/doc/schachuhr |
75 %doc /opt/schachuhr/doc/* |
71 %doc %{_datadir}/man/man6/schachuhr.6.gz |
76 %doc /opt/schachuhr/man/man6/schachuhr.6.gz |
72 %{_datadir}/applications/schachuhr.desktop |
77 /opt/schachuhr/applications/schachuhr.desktop |
73 %{_datadir}/icons/hicolor/scalable/apps/schachuhr.svg |
78 /opt/schachuhr/icons/hicolor/scalable/apps/schachuhr.svg |
74 %{_datadir}/schachuhr/qml/* |
79 /opt/schachuhr/qml/* |
75 |
80 |
76 %post |
81 #%post |
77 echo "+------------------------Warning------------------------+" |
82 #echo "+------------------------Warning------------------------+" |
78 echo "| To pass AppUp validation this binary package must be |" |
83 #echo "| To pass AppUp validation this binary package must be |" |
79 echo "| correctly named: com.<company>.<appname>.rpm |" |
84 #echo "| correctly named: com.<company>.<appname>.rpm |" |
80 echo "+-------------------------------------------------------+" |
85 #echo "+-------------------------------------------------------+" |
81 |
86 |
82 %changelog |
87 %changelog |
83 * Tue Jul 26 2011 Michael Schloh von Bennewitz <michael@schloh.com> - 0.6.2 |
88 * Tue Jul 26 2011 Michael Schloh von Bennewitz <michael@schloh.com> - 0.6.2 |
84 - Update version with vendor upstream current release. |
89 - Update version with vendor upstream current release. |
|
90 - Modify paths to comply with AppUp validation requirements. |
85 * Sat Jul 09 2011 Michael Schloh von Bennewitz <michael@schloh.com> - 0.6.1 |
91 * Sat Jul 09 2011 Michael Schloh von Bennewitz <michael@schloh.com> - 0.6.1 |
86 - Correct runtime binary dependencies to not use the pkgconfig framework. |
92 - Correct runtime binary dependencies to not use the pkgconfig framework. |
87 * Fri Jul 08 2011 Michael Schloh von Bennewitz <michael@schloh.com> - 0.6.0 |
93 * Fri Jul 08 2011 Michael Schloh von Bennewitz <michael@schloh.com> - 0.6.0 |
88 - Implement initial package specification for initial software release. |
94 - Implement initial package specification for initial software release. |