# $Id: ITO.spec,v 1.5 2012/10/19 20:24:11 ksb Exp $ # $KeyFile: ${echo:-echo} op-jacket.man %define _tmpdir /tmp %define _local_prefix /usr/local %define _local_bindir %{_local_prefix}/libexec/jacket %define _local_sbin %{_local_prefix}/sbin %define _local_mandir7 %{_local_prefix}/man/man7 %define _local_mandir8 %{_local_prefix}/man/man8 # for signing of packages #%_signature gpg #%_gpg_name FIXME@example.org # %dist should be defined on the target but in case it isn't we can guess one %define distguess %(cat /etc/{redhat,fedora,suse,ubuntu}-release | sed -e 's/Fedora Core/fc@/; s/Fedora/f@/; s/Red Hat[^0-9]*\(Enterprise|Server\)*[^0-9]*/rhel@/; s/Red Hat[^0-9]*/rh/; s/.*Suse[^0-9]*/se@/; s/Ubuntu[^0-9]*/ubuntu@/; s/@[^0-9]*//;s/\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)/\1_\2/; s/[^0-9]*$//') %{!?dist:%define dist .%{distguess}} # Do not generate debugging packages by default - older versions of rpmbuild # (like RehHat 6.2) choke on the line with the percent in the macro name: # We need a sed spell on RH6.x to "s/\(^.define \)%d/\1d/", Sigh. -- ksb %define debug_package %{nil} Name: op-jacket Version: 1.12 Release: 2%{?dist} BuildRoot: %{_tmpdir}/%{name}-%{version}-%{release} Vendor: NPCGuild.org Summary: NPC plugin collection for op helmet/jacket specifications Group: Applications/System License: BSD URL: http://msrc.npcguild.og/msrc/local/libexec/jacket Source: http://dl.npcguild.com/tarball/%{name}-%{version}.tgz BuildRequires: gcc m4 msrc_base install_base perl # Autoreq:0 prevents misleading depencies from being generated. Normally, this # is perfectly sane; however, the system is picking up mk directives and # mkcmd directives as well as system depencies. Autoreq: 0 Requires: /bin/ksh install_base perl Provides: op-jacket %description The op escalation tool depend on these programs to provide authorization services, in addition the built-in authentication services. These allow a log of _who_ gave permission to run an escalated command. They also allow some proxy services for the clients: e.g. X display, wrapper environments, and ssh-agent proxies. %prep %setup -q %build umask 022 mkdir -p $RPM_BUILD_ROOT/%{_local_bindir} mkdir -p $RPM_BUILD_ROOT/%{_local_mandir7} mkdir -p $RPM_BUILD_ROOT/%{_local_mandir8} mkdir -p $RPM_BUILD_ROOT/%{_local_sbin} %install F=`mktemp -d /var/tmp/bmHMXXXXXX` mmsrc -y INTO=$F -Cauto.cf -- make DESTDIR=$RPM_BUILD_ROOT install manual rm -rf $F find $RPM_BUILD_ROOT -type d -depth -name OLD -exec rm -rf \{\} \; %clean # Do not confilct with the next user of the fixed-path build directory [ / != "%{buildroot}" ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_local_bindir}/%{name} %config %{_local_sbin} %doc %{_local_mandir7} %doc %{_local_mandir8} %changelog * Fri Oct 19 2012 KS Braunsdorf - updated TODO and fixes spelling in ttyowner comments - unified the output of -H information * Fri Sep 7 2012 KS Braunsdorf - moved the jacket.m API into the (better) mkcmd/api dir from mkcmd/type - added manifest jacket - removed some extra white-space on end-of-line nits * Wed Mar 7 2012 KS Braunsdorf - updated the stamp and stampctl manual pages which used \fI in-place of \fB * Tue Feb 28 2012 KS Braunsdorf - Built the RPM spec file and added it to the msrc cache