]> git.pld-linux.org Git - packages/pv.git/blobdiff - pv.spec
up to 1.7.0
[packages/pv.git] / pv.spec
diff --git a/pv.spec b/pv.spec
index 59fcee26179caf6165e538f0b5e7dff1fa0a0616..e579360e27f3812de362796f4168ec2945e19ee6 100644 (file)
--- a/pv.spec
+++ b/pv.spec
@@ -1,14 +1,20 @@
-Summary:       Pipe Viewer
-Summary(pl):   Pipe Viewer - monitorowanie przep³ywu danych przez potok
+#
+# Conditional build:
+%bcond_without tests           # build without tests
+
+Summary:       Pipe Viewer - tool for monitoring the progress of data through a pipeline
+Summary(pl.UTF-8):     Pipe Viewer - monitorowanie przepływu danych przez potok
 Name:          pv
-Version:       0.9.0
+Version:       1.7.0
 Release:       1
-License:       GPL
+License:       Artistic v2.0
 Group:         Applications
-Source0:       http://dl.sourceforge.net/pipeviewer/%{name}-%{version}.tar.gz
-# Source0-md5: 2703a930bea7c866e3cabe42245fd7c2
+Source0:       http://www.ivarch.com/programs/sources/%{name}-%{version}.tar.bz2
+# Source0-md5: a5a12b9387db6a95014d9dcd7ac364c2
 URL:           http://www.ivarch.com/programs/pv.shtml
-BuildRequires: autoconf
+BuildRequires: gettext-tools
+# the unit tests call usleep(1)
+BuildRequires: rc-scripts
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -18,28 +24,23 @@ 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.
 
-%description -l pl
-Pipe Viewer jest tekstowym narzêdziem do monitorowania przep³ywu
-danych przez potok. Mo¿e byæ wstawiony w dowolny potok pomiêdzy dwa
-procesy w celu wizualizacji prêdko¶ci z jak± dane przep³ywaj± pomiêdzy
-nimi, ile czasu im to zajmuje, ile jeszcze zosta³o do ukoñczenia i ile
-mniej wiêcej czasu to bêdzie trwa³o.
+%description -l pl.UTF-8
+Pipe Viewer jest tekstowym narzędziem do monitorowania przepływu
+danych przez potok. Może być wstawiony w dowolny potok pomiędzy dwa
+procesy w celu wizualizacji prędkości z jaką dane przepływają pomiędzy
+nimi, ile czasu im to zajmuje, ile jeszcze zostało do ukończenia i ile
+mniej więcej czasu to będzie trwało.
 
 %prep
 %setup -q
 
 %build
-cd autoconf
-%{__autoconf}
-cd ..
-install autoconf/configure .
 %configure
 %{__make}
+%{?with_test:%{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_infodir}}
-
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
@@ -48,15 +49,8 @@ install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_infodir}}
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
-
-%postun
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
-
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc README doc/manual.html doc/NEWS doc/TODO
-%attr(755,root,root) %{_bindir}/*
-%{_infodir}/*.info*
-%{_mandir}/man1/*
+%doc README.md doc/NEWS.md doc/TODO.md
+%attr(755,root,root) %{_bindir}/pv
+%{_mandir}/man1/pv.1*
This page took 0.112331 seconds and 4 git commands to generate.