rpms/pv/EL-4 pv.spec,NONE,1.1 Makefile,1.1,1.2
Jakub Hrozek (jhrozek)
fedora-extras-commits at redhat.com
Wed Aug 1 10:36:37 UTC 2007
Author: jhrozek
Update of /cvs/extras/rpms/pv/EL-4
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv3759
Modified Files:
Makefile
Added Files:
pv.spec
Log Message:
Initial import into the EL-4 branch
--- NEW FILE pv.spec ---
Summary: A tool for monitoring the progress of data through a pipeline
Name: pv
Version: 0.9.9
Release: 1%{?dist}
License: Artistic
Group: Development/Tools
Source: http://pipeviewer.googlecode.com/files/%{name}-%{version}.tar.gz
URL: http://www.ivarch.com/programs/pv.shtml
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: gettext
%description
PV ("Pipe Viewer") is a tool for monitoring the progress of data through a
pipeline. It can be inserted into any normal pipeline between two processes
to give a visual indication of how quickly data is passing through, how long
it has taken, how near to completion it is, and an estimate of how long it
will be until completion.
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p ${RPM_BUILD_ROOT}%{_bindir} # /usr/bin
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1 # /usr/share/man/man1
make DESTDIR=$RPM_BUILD_ROOT install
%find_lang %{name}
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(-, root, root)
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.gz
%doc README doc/NEWS doc/TODO doc/COPYING
%changelog
* Sun Jun 24 2007 Jakub Hrozek <jhrozek at redhat.com> - 0.9.9-1
- Initial packaging loosely based on SRPM from project's home page by
Andrew Wood <andrew.wood at ivarch.com>
Index: Makefile
===================================================================
RCS file: /cvs/extras/rpms/pv/EL-4/Makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Makefile 31 Jul 2007 15:14:58 -0000 1.1
+++ Makefile 1 Aug 2007 10:36:05 -0000 1.2
@@ -1,21 +1,15 @@
-# Makefile for source rpm: pv
-# $Id$
-NAME := pv
-SPECFILE = $(firstword $(wildcard *.spec))
+# Top level Makefile for module pv
+all : CVS/Root common-update
+ @cvs update
-define find-makefile-common
-for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
-endef
+common-update : common
+ @cd common && cvs update
-MAKEFILE_COMMON := $(shell $(find-makefile-common))
+common : CVS/Root
+ @cvs checkout common
-ifeq ($(MAKEFILE_COMMON),)
-# attept a checkout
-define checkout-makefile-common
-test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
-endef
+CVS/Root :
+ @echo "ERROR: This does not look like a CVS checkout" && exit 1
-MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
-endif
-
-include $(MAKEFILE_COMMON)
+clean :
+ @find . -type f -name *~ -exec rm -fv {} \;
More information about the fedora-extras-commits
mailing list