michael@282: ## michael@282: ## pinentry.spec -- OpenPKG RPM Package Specification michael@282: ## Copyright (c) 2000-2010 OpenPKG Foundation e.V. michael@282: ## michael@282: ## Permission to use, copy, modify, and distribute this software for michael@282: ## any purpose with or without fee is hereby granted, provided that michael@282: ## the above copyright notice and this permission notice appear in all michael@282: ## copies. michael@282: ## michael@282: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@282: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@282: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@282: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@282: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@282: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@282: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@282: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@282: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@282: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@282: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@282: ## SUCH DAMAGE. michael@282: ## michael@282: michael@282: # package information michael@282: Name: pinentry michael@282: Summary: Interactive PIN Entry Dialogs michael@282: URL: http://www.gnupg.org/related_software/pinentry/ michael@282: Vendor: R. Bihlmeyer, W. Koch, S. Hansen, M. Brinkmann michael@282: Packager: OpenPKG Foundation e.V. michael@282: Distribution: OpenPKG Community michael@282: Class: PLUS michael@282: Group: Terminal michael@282: License: GPL michael@282: Version: 0.8.0 michael@283: Release: 20101020 michael@282: michael@282: # package options michael@282: %option with_x11 no michael@282: michael@282: # list of sources michael@282: Source0: ftp://ftp.gnupg.org/gcrypt/pinentry/pinentry-%{version}.tar.gz michael@282: Patch0: pinentry.patch michael@282: michael@282: # build information michael@283: Prefix: %{l_prefix} michael@283: BuildRoot: %{l_buildroot} michael@282: BuildPreReq: OpenPKG, openpkg >= 20100101 michael@282: PreReq: OpenPKG, openpkg >= 20100101 michael@282: BuildPreReq: ncurses, libiconv michael@282: PreReq: ncurses, libiconv michael@282: %if "%{with_x11}" == "yes" michael@282: BuildPreReq: gtk2 michael@282: PreReq: gtk2 michael@282: %endif michael@282: michael@282: %description michael@282: PINentry is a collection of simple PIN or passphrase entry dialogs michael@282: which utilize the Assuan protocol as described by the GnuPG michael@282: and Aegypten projects. It allows applications like GnuPG to michael@282: interactively request PINs or passphrases. michael@282: michael@282: %track michael@282: prog pinentry = { michael@282: version = %{version} michael@282: url = ftp://ftp.gnupg.org/gcrypt/pinentry/ michael@282: regex = pinentry-(__VER__)\.tar\.gz michael@282: } michael@282: michael@282: %prep michael@282: %setup -q michael@282: %patch -p0 michael@282: michael@282: %build michael@282: CC="%{l_cc}" \ michael@282: CXX="%{l_cxx}" \ michael@282: CFLAGS="%{l_cflags -O}" \ michael@282: CXXFLAGS="%{l_cxxflags -O}" \ michael@282: CPPFLAGS="%{l_cppflags ncurses .}" \ michael@282: LDFLAGS="%{l_ldflags}" \ michael@282: ./configure \ michael@282: --prefix=%{l_prefix} \ michael@282: --infodir=%{l_prefix}/info \ michael@282: --enable-pinentry-curses \ michael@282: --enable-fallback-curses \ michael@282: --with-ncurses-include-dir=%{l_prefix}/include/ncurses \ michael@282: %if "%{with_x11}" == "yes" michael@282: --with-x \ michael@282: --enable-pinentry-gtk2 \ michael@282: %else michael@282: --disable-pinentry-gtk2 \ michael@282: %endif michael@282: --disable-pinentry-gtk \ michael@282: --disable-pinentry-qt \ michael@282: --disable-threading michael@282: %{l_make} %{l_mflags -O} michael@282: michael@282: %install michael@283: rm -rf $RPM_BUILD_ROOT michael@282: %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" michael@282: strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true michael@282: rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir michael@282: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} michael@282: michael@282: %files -f files michael@282: michael@282: %clean michael@283: rm -rf $RPM_BUILD_ROOT michael@282: