"Fossies" - the Fresh Open Source Software Archive

Member "xlockmore-5.59/xlockmore.spec" (2 Oct 2019, 7159 Bytes) of package /linux/misc/xlockmore-5.59.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) RPM Spec source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "xlockmore.spec": 5.58_vs_5.59.

    1 # xlockmore.spec -- RPM spec file for xlockmore
    2 #
    3 # Xlock (c) 2017 David Bagley <bagleyd AT verizon.net>
    4 #                Eric Lassauge <lassauge AT users.sourceforge.net>
    5 #
    6 # Permission to use, copy, modify, and distribute this software and its
    7 # documentation for any purpose and without fee is hereby granted,
    8 # provided that the above copyright notice appear in all copies and that
    9 # both that copyright notice and this permission notice appear in
   10 # supporting documentation.
   11 #
   12 # This file is provided AS IS with no warranties of any kind.  The author
   13 # shall have no liability with respect to the infringement of copyrights,
   14 # trade secrets or any patents by this file or any part thereof.  In no
   15 # event will the author be liable for any lost revenue or profits or
   16 # other special, indirect and consequential damages.
   17 #
   18 # mailto:bagleyd AT verizon.net
   19 # http://www.sillycycle.com/xlockmore.html
   20 
   21 %define name        xlockmore
   22 %define stableversion   5.59
   23 %define release     1
   24 %define serial      1
   25 # Comment quality for stable release
   26 #%define quality        ALPHA
   27 #%define quality        BETA
   28 %define x11_prefix  /usr/X11R6
   29 %define gnome_prefix    /usr
   30 
   31 %define gnome_datadir   %{gnome_prefix}/share
   32 %define gnome_appsdir   %{gnome_datadir}/gnome/apps/Utilities
   33 %define xlock_datadir   %{x11_prefix}/lib/X11/xlock
   34 
   35 %{?quality:%define version  %{stableversion}%{quality}}
   36 %{!?quality:%define version %{stableversion}}
   37 
   38 # By default, builds everything, including GL modes
   39 
   40 Summary: An X terminal locking program.
   41 Summary(de):    Terminal-Sperrprogramm für X mit vielen Bildschirmschonern
   42 Summary(fr):    Verrouillage de terminaux X
   43 Summary(nl):    een X-terminal vergrendelings programma
   44 Summary(tr):    X terminal kilitleme programı
   45 Name: %{name}
   46 Version: %{version}
   47 Release: %{release}
   48 Serial: %{serial}
   49 Copyright: BSD
   50 Group: Amusements/Graphics
   51 Url: http://www.sillycycle.com/xlockmore.html
   52 Source: http://www.sillycycle.com/xlockmore/%{name}-%{version}.tar.bz2
   53 # ftp site is currently down. :(
   54 #Patch0: %{name}-%{version}-patch
   55 BuildPrereq: esound-devel, audiofile-devel gltt-devel Mesa-devel freetype-devel
   56 Requires: pam >= 0.74, esound, audiofile, /usr/games/fortune, freetype, gltt, Mesa
   57 Buildroot: %{_tmppath}/%{name}-%{version}-root
   58 Vendor: David Bagley <bagleyd AT verizon.net>
   59 Packager: Eric Lassauge <lassauge AT users.sourceforge.net>
   60 # For a beautiful icon in gnorpm do :
   61 # convert /usr/share/pixmaps/gnome-lockscreen.png /usr/src/redhat/SOURCES/xlock.xpm
   62 # and uncomment the following line.
   63 # Icon: xlock.xpm
   64 
   65 %description
   66 The xlockmore utility is an enhanced version of the standard xlock
   67 program, which allows you to lock an X session so that other users
   68 can't access it.  Xlockmore runs a provided screensaver until you type
   69 in your password.
   70 
   71 Install the xlockmore package if you need a locking program to secure
   72 X sessions.
   73 
   74 %description -l de
   75 Eine erweiterte Version des Standardprogramms xlock, mit dem Sie eine
   76 X-Sitzung für andere Benutzer sperren können, wenn Sie sich nicht an
   77 Ihrem Rechner befinden. Es führt einen von vielen Bildschirmschonern
   78 aus und wartet auf die Eingabe eines Paßworts, bevor es die Sitzung
   79 freigibt und Sie an Ihre X-Programme läßt.
   80 
   81 %description -l fr
   82 Version améliorée du programme xlock standard et qui permet d'empêcher
   83 les autres utilisateurs d'aller dans une session X pendant que vous
   84 êtes éloigné de la machine. Il lance l'un des nombreux économiseurs
   85 d'écran et attend que vous tapiez votre mot de passe, débloquant la
   86 session et vous redonnant accès à vos programmes X.
   87 
   88 %description -l nl
   89 Het xlockmore programma is een uitgebreide versie van het standaard xlock
   90 programma, dat het mogelijk maakt om een X-windows sessie te vergrendelen
   91 zodat andere gebruikers er geen toegang toe hebben. Xlockmore toont een
   92 leuke animatie op het scherm totdat het juiste wachtwoord ingegeven wordt.
   93 
   94 Installeer het xlockmore pakket als je een vergendelings programma nodig
   95 hebt om X-windows sessie veilig te houden.
   96 
   97 %description -l tr
   98 Standart xlock programının bir miktar geliştirilmiş sürümü. xlockmore
   99 ile makinanın başından ayrılmanız gerektiği zaman ekranı
  100 kilitleyebilir, böylece istenmeyen misafirlerin sistemi
  101 kurcalamalarını önleyebilirsiniz.
  102 
  103 %prep
  104 %setup -q
  105 #%patch0 -p1
  106 
  107 %build
  108 autoconf
  109 # Feel free to change default options !
  110 CFLAGS="$MY_CFLAGS" CXXFLAGS="$MY_CFLAGS" ./configure \
  111     --prefix=%{x11_prefix} \
  112     --disable-allow-root --disable-bomb --without-nas --without-editres \
  113     --with-esound --enable-vtlock --enable-pam --enable-unstable \
  114     --enable-orig-xpm-patch $MY_CONFFLAGS
  115 
  116 if [ "$SMP" != "" ]; then
  117   (make "MAKE=make -k -j $SMP"; exit 0)
  118   make
  119 else
  120   make
  121 fi
  122 
  123 # make xglock too, force using the same datadir
  124 (cd xglock
  125 make xglock datadir=%{x11_prefix}/lib/X11)
  126 
  127 %install
  128 
  129 rm -rf $RPM_BUILD_ROOT
  130 
  131 # Most xlockmore executables go in the X bin directory (/usr/X11R6/bin/)
  132 # but some stuff go in the GNOME share directory instead (/usr/share/gnome/).
  133 # and the misc datas go into xlock share directory (/usr/X11R6/lib/X11/xlock/).
  134 #
  135 mkdir -p $RPM_BUILD_ROOT%{gnome_appsdir}
  136 # This is a directory that "make install" won't make as needed
  137 # (since Linux uses /etc/pam.d/* and Solaris uses /etc/pam.conf).
  138 #
  139 mkdir -p $RPM_BUILD_ROOT/etc/pam.d
  140 
  141 make install prefix=$RPM_BUILD_ROOT%{x11_prefix} xapploaddir=$RPM_BUILD_ROOT%{x11_prefix}/lib/X11/app-defaults/ INSTPGMFLAGS="-s"
  142 install -m 644 etc/xlock.pamd $RPM_BUILD_ROOT/etc/pam.d/xlock
  143 
  144 install etc/xlockmore.desktop $RPM_BUILD_ROOT%{gnome_appsdir}
  145 
  146 # xlock shared data directory 
  147 mkdir -p $RPM_BUILD_ROOT%{xlock_datadir}
  148 # You can put all TrueType fonts here
  149 mkdir -p $RPM_BUILD_ROOT%{xlock_datadir}/fonts/
  150 mkdir -p $RPM_BUILD_ROOT%{xlock_datadir}/sounds/
  151 cp sounds/*.au $RPM_BUILD_ROOT%{xlock_datadir}/sounds/
  152 
  153 (cd etc
  154 sed -e 's|/usr/X11/bin/wish|/usr/bin/wish|g' xlock.tcl > xlock.tcl.new
  155 mv xlock.tcl.new xlock.tcl
  156 chmod +x xlock.tcl
  157 install -m 755 xlock.tcl $RPM_BUILD_ROOT%{x11_prefix}/bin/xlock.tcl
  158 )
  159 
  160 # strange install options will install 'xglockrc' in xlock share directory
  161 (cd xglock
  162 make install_xglock prefix=$RPM_BUILD_ROOT%{x11_prefix} datadir=$RPM_BUILD_ROOT%{x11_prefix}/lib/X11)
  163 
  164 %clean
  165 rm -rf $RPM_BUILD_ROOT
  166 
  167 %files
  168 %defattr(644,root,root,755)
  169 %doc            README docs/*
  170 %attr(644,root,root)    %config %verify(not size mtime md5) /etc/pam.d/xlock
  171 %attr(4111,root,root)   %{x11_prefix}/bin/xlock
  172 %attr(755,root,root)    %{x11_prefix}/bin/xmlock
  173 %attr(755,root,root)    %{x11_prefix}/bin/xglock
  174 %attr(755,root,root)    %{x11_prefix}/bin/xlock.tcl
  175 %config         %{x11_prefix}/man/man1/*lock.*
  176 %config         %{x11_prefix}/lib/X11/app-defaults/*
  177 %{xlock_datadir}/*
  178 %{gnome_appsdir}/%{name}.desktop
  179 
  180 %changelog
  181 * Thu Nov 22 2001 Eric Lassauge <lassauge AT users.sourceforge.net>
  182 - added quality and stableversion defines for STABLE/ALPHA/BETA versions 
  183 - modified configure flags: use MY_CFLAGS and MY_CONFFLAGS if needed
  184 * Thu Oct 25 2001 Eric Lassauge <lassauge AT users.sourceforge.net>
  185 - created xlock_datadir define
  186 - removed patch commands as the patch file is now included
  187 * Thu Oct 18 2001 David Bagley <bagleyd AT verizon.net>
  188 - Took over ownership  :)
  189 * Wed Oct 17 2001 Eric Lassauge <lassauge AT users.sourceforge.net>
  190 - Created inspired by old Redhat version and xscreensaver spec file