Sun, 10 Jul 2011 10:49:24 +0200
Note consideration of name change to neater and cooler 'Pendule' d'echecs.
1 ##
2 ## schachuhr.spec -- RPM Package Specification
3 ## Copyright (c) 2011 Michael Schloh von Bennewitz <michael@schloh.com>
4 ##
5 ## Permission to use, copy, modify, and distribute this software for
6 ## any purpose with or without fee is hereby granted, provided that
7 ## the above copyright notice and this permission notice appear in all
8 ## copies.
9 ##
10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
21 ## SUCH DAMAGE.
22 ##
24 # package information
25 Name: schachuhr
26 Summary: Chess Clock
27 URL: http://schachuhr.europalab.com/
28 Vendor: Europalab Software
29 Packager: Michael Schloh von Bennewitz
30 Distribution: Michael Schloh von Bennewitz
31 Group: Amusements/Games
32 License: GPL
33 Version: 0.6.1
34 Release: 20110708
36 # list of sources
37 Source0: ftp://ftp.europalab.com/pub/sfw/schachuhr/schachuhr-%{version}.tar.gz
39 # build information
40 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
41 BuildRequires: pkgconfig(QtDeclarative), groff, util-linux-ng
42 Requires: libqtdeclarative4
43 AutoReq: no
44 AutoReqProv: no
46 %description
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.
50 %prep
51 %setup -q
53 %build
54 qmake
55 make %{?jobs:-j%jobs}
56 groff -t -e -mandoc -Tascii docs/schachuhr.6.tr | col -bx | gzip -9 >docs/schachuhr.6.gz
58 %install
59 rm -rf %{buildroot}
60 mkdir -p %{buildroot}/usr/share/doc/schachuhr
61 mkdir -p %{buildroot}/usr/share/man/man6
62 %make_install INSTALL_ROOT=%{buildroot}
63 cp docs/license.txt %{buildroot}/usr/share/doc/schachuhr/
64 cp docs/readme.txt %{buildroot}/usr/share/doc/schachuhr/
65 cp docs/schachuhr.6.gz %{buildroot}/usr/share/man/man6/
67 %files
68 %defattr(-,root,root,-)
69 %{_bindir}/*
70 %doc %{_datadir}/doc/schachuhr
71 %doc %{_datadir}/man/man6/schachuhr.6.gz
72 %{_datadir}/applications/schachuhr.desktop
73 %{_datadir}/icons/hicolor/scalable/apps/schachuhr.svg
74 %{_datadir}/schachuhr/qml/*
76 %changelog
77 * Fri Jul 08 2011 Michael Schloh von Bennewitz <michael@schloh.com> - 0.6.0
78 - Implement initial package specification for initial software release.