pinentry/pinentry.spec

Fri, 22 Oct 2010 22:51:26 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 22 Oct 2010 22:51:26 +0200
changeset 282
dae915416cf4
child 283
2bd265c4cbb9
permissions
-rw-r--r--

Import package vendor original specs for necessary manipulations.

     1 ##
     2 ##  pinentry.spec -- OpenPKG RPM Package Specification
     3 ##  Copyright (c) 2000-2010 OpenPKG Foundation e.V. <http://openpkg.net/>
     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:         pinentry
    26 Summary:      Interactive PIN Entry Dialogs
    27 URL:          http://www.gnupg.org/related_software/pinentry/
    28 Vendor:       R. Bihlmeyer, W. Koch, S. Hansen, M. Brinkmann
    29 Packager:     OpenPKG Foundation e.V.
    30 Distribution: OpenPKG Community
    31 Class:        PLUS
    32 Group:        Terminal
    33 License:      GPL
    34 Version:      0.8.0
    35 Release:      20100303
    37 #   package options
    38 %option       with_x11  no
    40 #   list of sources
    41 Source0:      ftp://ftp.gnupg.org/gcrypt/pinentry/pinentry-%{version}.tar.gz
    42 Patch0:       pinentry.patch
    44 #   build information
    45 BuildPreReq:  OpenPKG, openpkg >= 20100101
    46 PreReq:       OpenPKG, openpkg >= 20100101
    47 BuildPreReq:  ncurses, libiconv
    48 PreReq:       ncurses, libiconv
    49 %if "%{with_x11}" == "yes"
    50 BuildPreReq:  gtk2
    51 PreReq:       gtk2
    52 %endif
    54 %description
    55     PINentry is a collection of simple PIN or passphrase entry dialogs
    56     which utilize the Assuan protocol as described by the GnuPG
    57     and Aegypten projects. It allows applications like GnuPG to
    58     interactively request PINs or passphrases.
    60 %track
    61     prog pinentry = {
    62         version   = %{version}
    63         url       = ftp://ftp.gnupg.org/gcrypt/pinentry/
    64         regex     = pinentry-(__VER__)\.tar\.gz
    65     }
    67 %prep
    68     %setup -q
    69     %patch -p0
    71 %build
    72     CC="%{l_cc}" \
    73     CXX="%{l_cxx}" \
    74     CFLAGS="%{l_cflags -O}" \
    75     CXXFLAGS="%{l_cxxflags -O}" \
    76     CPPFLAGS="%{l_cppflags ncurses .}" \
    77     LDFLAGS="%{l_ldflags}" \
    78     ./configure \
    79         --prefix=%{l_prefix} \
    80         --infodir=%{l_prefix}/info \
    81         --enable-pinentry-curses \
    82         --enable-fallback-curses \
    83         --with-ncurses-include-dir=%{l_prefix}/include/ncurses \
    84 %if "%{with_x11}" == "yes"
    85         --with-x \
    86         --enable-pinentry-gtk2 \
    87 %else
    88         --disable-pinentry-gtk2 \
    89 %endif
    90         --disable-pinentry-gtk \
    91         --disable-pinentry-qt \
    92         --disable-threading
    93     %{l_make} %{l_mflags -O}
    95 %install
    96     %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
    97     strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
    98     rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
    99     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
   101 %files -f files
   103 %clean

mercurial