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.

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

mercurial