]> git.pld-linux.org Git - packages/pv.git/blobdiff - pv.spec
up to 1.5.7
[packages/pv.git] / pv.spec
diff --git a/pv.spec b/pv.spec
index 0d87e786cac7ac7e9f3ffaaf80b5733bc856a44c..e9254fbd2c91768ed56235cfecf91003af320a18 100644 (file)
--- a/pv.spec
+++ b/pv.spec
@@ -1,15 +1,20 @@
+#
+# 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
+Summary(pl.UTF-8):     Pipe Viewer - monitorowanie przepływu danych przez potok
 Name:          pv
-Version:       0.9.2
+Version:       1.5.7
 Release:       1
-License:       GPL
+License:       Artistic v2.0
 Group:         Applications
-Source0:       http://dl.sourceforge.net/pipeviewer/%{name}-%{version}.tar.gz
-# Source0-md5: a8e31f4e38088b905f5d4f13c670315c
+Source0:       http://www.ivarch.com/programs/sources/%{name}-%{version}.tar.bz2
+# Source0-md5: e8597a929e836ada22a8814b1c1651d0
 URL:           http://www.ivarch.com/programs/pv.shtml
-BuildRequires: autoconf
 BuildRequires: gettext-devel
+# the unit tests call usleep(1)
+BuildRequires: rc-scripts
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -29,18 +34,18 @@ mniej więcej czasu to będzie trwało.
 %prep
 %setup -q
 
+mv README README.iso8859
+iconv -f ISO-8859-1 -t UTF-8 README.iso8859  > README
+mv doc/NEWS doc/NEWS.iso8859
+iconv -f ISO-8859-1 -t UTF-8 doc/NEWS.iso8859 > doc/NEWS
+
 %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
 
@@ -49,15 +54,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 doc/NEWS doc/TODO
+%attr(755,root,root) %{_bindir}/pv
+%{_mandir}/man1/pv.1*
This page took 0.075782 seconds and 4 git commands to generate.