michael@423: ## michael@423: ## top.spec -- OpenPKG RPM Package Specification michael@423: ## Copyright (c) 2000-2009 OpenPKG Foundation e.V. michael@423: ## michael@423: ## Permission to use, copy, modify, and distribute this software for michael@423: ## any purpose with or without fee is hereby granted, provided that michael@423: ## the above copyright notice and this permission notice appear in all michael@423: ## copies. michael@423: ## michael@423: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@423: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@423: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@423: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@423: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@423: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@423: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@423: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@423: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@423: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@423: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@423: ## SUCH DAMAGE. michael@423: ## michael@423: michael@423: # package version michael@423: %define V_dist 3.8beta1 michael@423: %define V_opkg 3.8b1 michael@423: michael@423: # package information michael@423: Name: top michael@423: Summary: Full-Screen Process Display michael@423: URL: http://www.unixtop.org/ michael@423: Vendor: William LeFebvre michael@423: Packager: OpenPKG Foundation e.V. michael@423: Distribution: OpenPKG Community michael@423: Class: EVAL michael@423: Group: Monitoring michael@423: License: Freely Redistributable michael@423: Version: %{V_opkg} michael@423: Release: 20090522 michael@423: michael@423: # list of sources michael@423: Source0: http://www.unixtop.org/dist/top-%{V_dist}.tar.gz michael@423: michael@423: # build information michael@423: Prefix: %{l_prefix} michael@423: BuildRoot: %{l_buildroot} michael@423: BuildPreReq: OpenPKG, openpkg >= 20040130 michael@423: PreReq: OpenPKG, openpkg >= 20040130 michael@423: AutoReq: no michael@423: AutoReqProv: no michael@423: michael@423: %description michael@423: Top is a full-screen display of the currently running system michael@423: processes. michael@423: michael@423: %track michael@423: prog top = { michael@423: version = %{V_dist} michael@423: url = http://www.unixtop.org/download/ michael@423: regex = top-(__VER__)\.tar\.gz michael@423: } michael@423: michael@423: %prep michael@423: %setup -q -n top-%{V_dist} michael@423: michael@423: %build michael@423: # configure program michael@423: CC="%{l_cc}" \ michael@423: CFLAGS="%{l_cflags -O}" \ michael@423: ./configure \ michael@423: --prefix=%{l_prefix} michael@423: michael@423: # build program michael@423: %{l_make} %{l_mflags} michael@423: michael@423: %install michael@423: rm -rf $RPM_BUILD_ROOT michael@423: michael@423: # install program michael@423: %{l_shtool} mkdir -f -p -m 755 \ michael@423: $RPM_BUILD_ROOT%{l_prefix}/bin \ michael@423: $RPM_BUILD_ROOT%{l_prefix}/man/man1 michael@423: %{l_shtool} install -c -s -m 755 \ michael@423: top $RPM_BUILD_ROOT%{l_prefix}/bin/ michael@423: %{l_shtool} install -c -m 644 \ michael@423: top.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/ michael@423: michael@423: # determine installation files michael@423: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ michael@423: %{l_files_std} \ michael@423: '%attr(4711,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/top' michael@423: michael@423: %files -f files michael@423: michael@423: %clean michael@423: rm -rf $RPM_BUILD_ROOT michael@423: