pkgs/appup/schachuhr.spec

Wed, 27 Jul 2011 23:10:09 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 27 Jul 2011 23:10:09 +0200
changeset 14
1bc8dc17e9c9
child 15
af9725334e07
permissions
-rw-r--r--

Correct and improve code logic, build configuration, and appearance:
Increase delay of hand placement, correct SVG icon file blocky
transperency, correct build release utility tarball logic, and
modify Gnome desktop file to be portable.

michael@14 1 ##
michael@14 2 ## schachuhr.spec -- RPM Package Specification
michael@14 3 ## Copyright (c) 2011 Michael Schloh von Bennewitz <michael@schloh.com>
michael@14 4 ##
michael@14 5 ## Permission to use, copy, modify, and distribute this software for
michael@14 6 ## any purpose with or without fee is hereby granted, provided that
michael@14 7 ## the above copyright notice and this permission notice appear in all
michael@14 8 ## copies.
michael@14 9 ##
michael@14 10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
michael@14 11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
michael@14 12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
michael@14 13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
michael@14 14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
michael@14 15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
michael@14 16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
michael@14 17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
michael@14 18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
michael@14 19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
michael@14 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
michael@14 21 ## SUCH DAMAGE.
michael@14 22 ##
michael@14 23
michael@14 24 # package information
michael@14 25 Name: schachuhr
michael@14 26 Summary: Chess Clock
michael@14 27 URL: http://schachuhr.europalab.com/
michael@14 28 Vendor: Europalab Software
michael@14 29 Packager: Michael Schloh von Bennewitz
michael@14 30 Distribution: Michael Schloh von Bennewitz
michael@14 31 Group: Amusements/Games
michael@14 32 License: GPL
michael@14 33 Version: 0.6.2
michael@14 34 Release: 20110726
michael@14 35
michael@14 36 # list of sources
michael@14 37 Source0: ftp://ftp.europalab.com/pub/sfw/schachuhr/schachuhr-%{version}.tar.gz
michael@14 38
michael@14 39 # build information
michael@14 40 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
michael@14 41 BuildRequires: pkgconfig(QtDeclarative), groff, util-linux-ng
michael@14 42 Requires: libqtdeclarative4
michael@14 43 AutoReq: no
michael@14 44 AutoReqProv: no
michael@14 45
michael@14 46 %description
michael@14 47 SchachUhr is an electronic representation of a traditional game clock
michael@14 48 such as those wooden or plastic clocks used in judging a chess match.
michael@14 49
michael@14 50 %prep
michael@14 51 %setup -q
michael@14 52
michael@14 53 %build
michael@14 54 qmake
michael@14 55 make %{?jobs:-j%jobs}
michael@14 56 groff -t -e -mandoc -Tascii docs/schachuhr.6.tr | col -bx | gzip -9 >docs/schachuhr.6.gz
michael@14 57
michael@14 58 %install
michael@14 59 rm -rf %{buildroot}
michael@14 60 mkdir -p %{buildroot}/opt/share/doc/schachuhr
michael@14 61 mkdir -p %{buildroot}/opt/share/man/man6
michael@14 62 %make_install INSTALL_ROOT=%{buildroot}
michael@14 63 cp docs/license.txt %{buildroot}/opt/share/doc/schachuhr/
michael@14 64 cp docs/readme.txt %{buildroot}/opt/share/doc/schachuhr/
michael@14 65 cp docs/schachuhr.6.gz %{buildroot}/opt/share/man/man6/
michael@14 66
michael@14 67 %files
michael@14 68 %defattr(-,root,root,-)
michael@14 69 %{_bindir}/*
michael@14 70 %doc %{_datadir}/doc/schachuhr
michael@14 71 %doc %{_datadir}/man/man6/schachuhr.6.gz
michael@14 72 %{_datadir}/applications/schachuhr.desktop
michael@14 73 %{_datadir}/icons/hicolor/scalable/apps/schachuhr.svg
michael@14 74 %{_datadir}/schachuhr/qml/*
michael@14 75
michael@14 76 %post
michael@14 77 echo "+------------------------Warning------------------------+"
michael@14 78 echo "| To pass AppUp validation this binary package must be |"
michael@14 79 echo "| correctly named: com.<company>.<appname>.rpm |"
michael@14 80 echo "+-------------------------------------------------------+"
michael@14 81
michael@14 82 %changelog
michael@14 83 * Tue Jul 26 2011 Michael Schloh von Bennewitz <michael@schloh.com> - 0.6.2
michael@14 84 - Update version with vendor upstream current release.
michael@14 85 * Sat Jul 09 2011 Michael Schloh von Bennewitz <michael@schloh.com> - 0.6.1
michael@14 86 - Correct runtime binary dependencies to not use the pkgconfig framework.
michael@14 87 * Fri Jul 08 2011 Michael Schloh von Bennewitz <michael@schloh.com> - 0.6.0
michael@14 88 - Implement initial package specification for initial software release.

mercurial