michael@14: ## michael@14: ## schachuhr.spec -- RPM Package Specification michael@14: ## Copyright (c) 2011 Michael Schloh von Bennewitz michael@14: ## michael@14: ## Permission to use, copy, modify, and distribute this software for michael@14: ## any purpose with or without fee is hereby granted, provided that michael@14: ## the above copyright notice and this permission notice appear in all michael@14: ## copies. michael@14: ## michael@14: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@14: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@14: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@14: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@14: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@14: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@14: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@14: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@14: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@14: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@14: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@14: ## SUCH DAMAGE. michael@14: ## michael@14: michael@14: # package information michael@14: Name: schachuhr michael@14: Summary: Chess Clock michael@14: URL: http://schachuhr.europalab.com/ michael@14: Vendor: Europalab Software michael@14: Packager: Michael Schloh von Bennewitz michael@14: Distribution: Michael Schloh von Bennewitz michael@14: Group: Amusements/Games michael@14: License: GPL michael@14: Version: 0.6.2 michael@14: Release: 20110726 michael@14: michael@14: # list of sources michael@14: Source0: ftp://ftp.europalab.com/pub/sfw/schachuhr/schachuhr-%{version}.tar.gz michael@14: michael@14: # build information michael@14: BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root michael@14: BuildRequires: pkgconfig(QtDeclarative), groff, util-linux-ng michael@14: Requires: libqtdeclarative4 michael@14: AutoReq: no michael@14: AutoReqProv: no michael@14: michael@14: %description michael@14: SchachUhr is an electronic representation of a traditional game clock michael@14: such as those wooden or plastic clocks used in judging a chess match. michael@14: michael@14: %prep michael@14: %setup -q michael@15: sed -i -e 's;/usr/share/schachuhr/qml/main.qml;/opt/schachuhr/qml/main.qml;' main.cpp michael@14: michael@14: %build michael@14: qmake michael@14: make %{?jobs:-j%jobs} michael@14: groff -t -e -mandoc -Tascii docs/schachuhr.6.tr | col -bx | gzip -9 >docs/schachuhr.6.gz michael@14: michael@14: %install michael@14: rm -rf %{buildroot} michael@14: %make_install INSTALL_ROOT=%{buildroot} michael@15: mkdir -p %{buildroot}/opt/schachuhr/doc michael@15: mkdir -p %{buildroot}/opt/schachuhr/man/man6 michael@15: mv %{buildroot}/usr/share/schachuhr/* %{buildroot}/opt/schachuhr/ michael@15: mv %{buildroot}/usr/share/applications %{buildroot}/opt/schachuhr/ michael@15: mv %{buildroot}/usr/share/icons %{buildroot}/opt/schachuhr/ michael@15: mv %{buildroot}/usr/bin/* %{buildroot}/opt/schachuhr/ michael@15: cp docs/license.txt %{buildroot}/opt/schachuhr/doc/ michael@15: cp docs/readme.txt %{buildroot}/opt/schachuhr/doc/ michael@15: cp docs/schachuhr.6.gz %{buildroot}/opt/schachuhr/man/man6/ michael@14: michael@14: %files michael@14: %defattr(-,root,root,-) michael@15: /opt/schachuhr/schachuhr michael@15: %doc /opt/schachuhr/doc/* michael@15: %doc /opt/schachuhr/man/man6/schachuhr.6.gz michael@15: /opt/schachuhr/applications/schachuhr.desktop michael@15: /opt/schachuhr/icons/hicolor/scalable/apps/schachuhr.svg michael@15: /opt/schachuhr/qml/* michael@14: michael@15: #%post michael@15: #echo "+------------------------Warning------------------------+" michael@15: #echo "| To pass AppUp validation this binary package must be |" michael@15: #echo "| correctly named: com...rpm |" michael@15: #echo "+-------------------------------------------------------+" michael@14: michael@14: %changelog michael@14: * Tue Jul 26 2011 Michael Schloh von Bennewitz - 0.6.2 michael@14: - Update version with vendor upstream current release. michael@15: - Modify paths to comply with AppUp validation requirements. michael@14: * Sat Jul 09 2011 Michael Schloh von Bennewitz - 0.6.1 michael@14: - Correct runtime binary dependencies to not use the pkgconfig framework. michael@14: * Fri Jul 08 2011 Michael Schloh von Bennewitz - 0.6.0 michael@14: - Implement initial package specification for initial software release.