pkgs/appup/schachuhr.spec

Thu, 28 Jul 2011 12:26:06 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 28 Jul 2011 12:26:06 +0200
changeset 15
af9725334e07
parent 14
1bc8dc17e9c9
permissions
-rw-r--r--

Modify AppUp RPM according to wishes of Intel AppUp validation group.

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

mercurial