pkgs/schachuhr.spec

changeset 0
ff1b43f833a9
child 4
fe1cd8fc5b83
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/pkgs/schachuhr.spec	Fri Jul 08 21:05:20 2011 +0200
     1.3 @@ -0,0 +1,79 @@
     1.4 +##
     1.5 +##  schachuhr.spec -- RPM Package Specification
     1.6 +##  Copyright (c) 2011 Michael Schloh von Bennewitz <michael@schloh.com>
     1.7 +##
     1.8 +##  Permission to use, copy, modify, and distribute this software for
     1.9 +##  any purpose with or without fee is hereby granted, provided that
    1.10 +##  the above copyright notice and this permission notice appear in all
    1.11 +##  copies.
    1.12 +##
    1.13 +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    1.14 +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    1.15 +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    1.16 +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    1.17 +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    1.18 +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    1.19 +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    1.20 +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    1.21 +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    1.22 +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    1.23 +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    1.24 +##  SUCH DAMAGE.
    1.25 +##
    1.26 +
    1.27 +#   package information
    1.28 +Name:         schachuhr
    1.29 +Summary:      Chess Clock
    1.30 +URL:          http://schachuhr.europalab.com/
    1.31 +Vendor:       Europalab Software
    1.32 +Packager:     Michael Schloh von Bennewitz
    1.33 +Distribution: Michael Schloh von Bennewitz
    1.34 +Group:        Amusements/Games
    1.35 +License:      GPL
    1.36 +Version:      0.6.0
    1.37 +Release:      20110708
    1.38 +
    1.39 +#   list of sources
    1.40 +Source0:      ftp://ftp.europalab.com/pub/sfw/schachuhr/schachuhr-%{version}.tar.gz
    1.41 +
    1.42 +#   build information
    1.43 +#Prefix:        /opt
    1.44 +BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root
    1.45 +BuildRequires: pkgconfig(QtDeclarative), groff, util-linux-ng
    1.46 +Requires:      pkgconfig(QtDeclarative)
    1.47 +AutoReq:       no
    1.48 +AutoReqProv:   no
    1.49 +
    1.50 +%description
    1.51 +    SchachUhr is an electronic representation of a traditional game clock
    1.52 +    such as those wooden or plastic clocks used in judging a chess match.
    1.53 +
    1.54 +%prep
    1.55 +%setup -q
    1.56 +
    1.57 +%build
    1.58 +qmake
    1.59 +make %{?jobs:-j%jobs}
    1.60 +groff -t -e -mandoc -Tascii docs/schachuhr.6.tr | col -bx | gzip -9 >docs/schachuhr.6.gz
    1.61 +
    1.62 +%install
    1.63 +rm -rf %{buildroot}
    1.64 +mkdir -p %{buildroot}/usr/share/doc/schachuhr
    1.65 +mkdir -p %{buildroot}/usr/share/man/man6
    1.66 +%make_install INSTALL_ROOT=%{buildroot}
    1.67 +cp docs/license.txt %{buildroot}/usr/share/doc/schachuhr/
    1.68 +cp docs/readme.txt %{buildroot}/usr/share/doc/schachuhr/
    1.69 +cp docs/schachuhr.6.gz %{buildroot}/usr/share/man/man6/
    1.70 +
    1.71 +%files
    1.72 +%defattr(-,root,root,-)
    1.73 +%{_bindir}/*
    1.74 +%doc %{_datadir}/doc/schachuhr
    1.75 +%doc %{_datadir}/man/man6/schachuhr.6.gz
    1.76 +%{_datadir}/applications/schachuhr.desktop
    1.77 +%{_datadir}/icons/hicolor/scalable/apps/schachuhr.svg
    1.78 +%{_datadir}/schachuhr/qml/*
    1.79 +
    1.80 +%changelog
    1.81 +* Fri Jul 08 2011 Michael Schloh von Bennewitz <michael@schloh.com> - 0.6.0
    1.82 +- Implement initial package specification for initial software release.

mercurial