# HG changeset patch # User Michael Schloh von Bennewitz # Date 1310285251 -7200 # Node ID 070a0d1c21d4211351684fac8a3cd61dc40ad7b8 # Parent 6fe6d3548766922234060203b6f9bba5e7e74185 Add Deb packaging logic and move RPM to its own directory. diff -r 6fe6d3548766 -r 070a0d1c21d4 pkgs/deb/README --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pkgs/deb/README Sun Jul 10 10:07:31 2011 +0200 @@ -0,0 +1,6 @@ +The Debian Package schachuhr +---------------------------- + +Comments regarding the Package + + -- Michael Schloh von Bennewitz Sun, 10 Jul 2011 09:20:43 +0200 diff -r 6fe6d3548766 -r 070a0d1c21d4 pkgs/deb/changelog --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pkgs/deb/changelog Sun Jul 10 10:07:31 2011 +0200 @@ -0,0 +1,5 @@ +schachuhr (0.0.1) unstable; urgency=low + + * Initial Release. + + -- Michael Schloh von Bennewitz Sun, 10 Jul 2011 09:20:43 +0200 diff -r 6fe6d3548766 -r 070a0d1c21d4 pkgs/deb/compat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pkgs/deb/compat Sun Jul 10 10:07:31 2011 +0200 @@ -0,0 +1,1 @@ +7 diff -r 6fe6d3548766 -r 070a0d1c21d4 pkgs/deb/control --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pkgs/deb/control Sun Jul 10 10:07:31 2011 +0200 @@ -0,0 +1,19 @@ +Source: schachuhr +Section: games +Priority: optional +Maintainer: Michael Schloh von Bennewitz +Build-Depends: debhelper (>= 5), libqt4-dev +Standards-Version: 3.7.3 +Homepage: http://schachuhr.europalab.com/ + +Package: schachuhr +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Game clock graphical user interface client + Game clocks typically used in chess matches afford two competing + opponents the means of judging their move timing by looking at their + side of the game clock. This allows for judging the match outcome as + well, because of time allowance playing a role in chess. The SchachUhr + can certainly be used for this, but in other types of strategy matches + and games in which timing plays a role as well. +XSBC-Maemo-Display-Name: schachuhr diff -r 6fe6d3548766 -r 070a0d1c21d4 pkgs/deb/copyright --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pkgs/deb/copyright Sun Jul 10 10:07:31 2011 +0200 @@ -0,0 +1,35 @@ +This package was debianized by Michael Schloh von Bennewitz + on Sun, 10 Jul 2011 09:20:43 +0200. + +It was downloaded from http://schachuhr.europalab.com/ + +Upstream Author: + + Michael Schloh von Bennewitz + +Copyright: + + Copyright (C) 2011 Michael Schloh von Bennewitz + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +The complete text of the GNU General Public License can be found at: + + http://www.gnu.org/licenses/gpl-2.0.html + +The Debian packaging is (C) 2011, Michael Schloh von Bennewitz + and is licensed under the GPL, see above. diff -r 6fe6d3548766 -r 070a0d1c21d4 pkgs/deb/rules --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pkgs/deb/rules Sun Jul 10 10:07:31 2011 +0200 @@ -0,0 +1,91 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + + + + +configure: configure-stamp +configure-stamp: + dh_testdir + # qmake PREFIX=/usr# Uncomment this line for use without Qt Creator + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + # $(MAKE) # Uncomment this line for use without Qt Creator + #docbook-to-man debian/schachuhr.sgml > schachuhr.1 + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + $(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/schachuhr. + $(MAKE) INSTALL_ROOT="$(CURDIR)"/debian/schachuhr install + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_python +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_makeshlibs + dh_installdeb + # dh_shlibdeps # Uncomment this line for use without Qt Creator + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure diff -r 6fe6d3548766 -r 070a0d1c21d4 pkgs/rpm/schachuhr.spec --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pkgs/rpm/schachuhr.spec Sun Jul 10 10:07:31 2011 +0200 @@ -0,0 +1,78 @@ +## +## schachuhr.spec -- RPM Package Specification +## Copyright (c) 2011 Michael Schloh von Bennewitz +## +## Permission to use, copy, modify, and distribute this software for +## any purpose with or without fee is hereby granted, provided that +## the above copyright notice and this permission notice appear in all +## copies. +## +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +## SUCH DAMAGE. +## + +# package information +Name: schachuhr +Summary: Chess Clock +URL: http://schachuhr.europalab.com/ +Vendor: Europalab Software +Packager: Michael Schloh von Bennewitz +Distribution: Michael Schloh von Bennewitz +Group: Amusements/Games +License: GPL +Version: 0.6.1 +Release: 20110708 + +# list of sources +Source0: ftp://ftp.europalab.com/pub/sfw/schachuhr/schachuhr-%{version}.tar.gz + +# build information +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +BuildRequires: pkgconfig(QtDeclarative), groff, util-linux-ng +Requires: libqtdeclarative4 +AutoReq: no +AutoReqProv: no + +%description + SchachUhr is an electronic representation of a traditional game clock + such as those wooden or plastic clocks used in judging a chess match. + +%prep +%setup -q + +%build +qmake +make %{?jobs:-j%jobs} +groff -t -e -mandoc -Tascii docs/schachuhr.6.tr | col -bx | gzip -9 >docs/schachuhr.6.gz + +%install +rm -rf %{buildroot} +mkdir -p %{buildroot}/usr/share/doc/schachuhr +mkdir -p %{buildroot}/usr/share/man/man6 +%make_install INSTALL_ROOT=%{buildroot} +cp docs/license.txt %{buildroot}/usr/share/doc/schachuhr/ +cp docs/readme.txt %{buildroot}/usr/share/doc/schachuhr/ +cp docs/schachuhr.6.gz %{buildroot}/usr/share/man/man6/ + +%files +%defattr(-,root,root,-) +%{_bindir}/* +%doc %{_datadir}/doc/schachuhr +%doc %{_datadir}/man/man6/schachuhr.6.gz +%{_datadir}/applications/schachuhr.desktop +%{_datadir}/icons/hicolor/scalable/apps/schachuhr.svg +%{_datadir}/schachuhr/qml/* + +%changelog +* Fri Jul 08 2011 Michael Schloh von Bennewitz - 0.6.0 +- Implement initial package specification for initial software release. diff -r 6fe6d3548766 -r 070a0d1c21d4 pkgs/schachuhr.spec --- a/pkgs/schachuhr.spec Sat Jul 09 19:14:03 2011 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,78 +0,0 @@ -## -## schachuhr.spec -- RPM Package Specification -## Copyright (c) 2011 Michael Schloh von Bennewitz -## -## Permission to use, copy, modify, and distribute this software for -## any purpose with or without fee is hereby granted, provided that -## the above copyright notice and this permission notice appear in all -## copies. -## -## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED -## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR -## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF -## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT -## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -## SUCH DAMAGE. -## - -# package information -Name: schachuhr -Summary: Chess Clock -URL: http://schachuhr.europalab.com/ -Vendor: Europalab Software -Packager: Michael Schloh von Bennewitz -Distribution: Michael Schloh von Bennewitz -Group: Amusements/Games -License: GPL -Version: 0.6.1 -Release: 20110708 - -# list of sources -Source0: ftp://ftp.europalab.com/pub/sfw/schachuhr/schachuhr-%{version}.tar.gz - -# build information -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root -BuildRequires: pkgconfig(QtDeclarative), groff, util-linux-ng -Requires: libqtdeclarative4 -AutoReq: no -AutoReqProv: no - -%description - SchachUhr is an electronic representation of a traditional game clock - such as those wooden or plastic clocks used in judging a chess match. - -%prep -%setup -q - -%build -qmake -make %{?jobs:-j%jobs} -groff -t -e -mandoc -Tascii docs/schachuhr.6.tr | col -bx | gzip -9 >docs/schachuhr.6.gz - -%install -rm -rf %{buildroot} -mkdir -p %{buildroot}/usr/share/doc/schachuhr -mkdir -p %{buildroot}/usr/share/man/man6 -%make_install INSTALL_ROOT=%{buildroot} -cp docs/license.txt %{buildroot}/usr/share/doc/schachuhr/ -cp docs/readme.txt %{buildroot}/usr/share/doc/schachuhr/ -cp docs/schachuhr.6.gz %{buildroot}/usr/share/man/man6/ - -%files -%defattr(-,root,root,-) -%{_bindir}/* -%doc %{_datadir}/doc/schachuhr -%doc %{_datadir}/man/man6/schachuhr.6.gz -%{_datadir}/applications/schachuhr.desktop -%{_datadir}/icons/hicolor/scalable/apps/schachuhr.svg -%{_datadir}/schachuhr/qml/* - -%changelog -* Fri Jul 08 2011 Michael Schloh von Bennewitz - 0.6.0 -- Implement initial package specification for initial software release. diff -r 6fe6d3548766 -r 070a0d1c21d4 schachuhr.pro --- a/schachuhr.pro Sat Jul 09 19:14:03 2011 +0200 +++ b/schachuhr.pro Sun Jul 10 10:07:31 2011 +0200 @@ -29,3 +29,11 @@ # Please do not modify the following two lines. Required for deployment. include(qmlapplicationviewer/qmlapplicationviewer.pri) qtcAddDeployment() + +OTHER_FILES += \ + pkgs/deb/rules \ + pkgs/deb/README \ + pkgs/deb/copyright \ + pkgs/deb/control \ + pkgs/deb/compat \ + pkgs/deb/changelog