]> git.pld-linux.org Git - packages/datamash.git/blame - datamash.spec
up to 1.8
[packages/datamash.git] / datamash.spec
CommitLineData
898ebeee
JP
1#
2# Conditional build:
3%bcond_without tests # don't run tests
4
ad8bac55
AM
5Summary: A statistical, numerical and textual operations tool
6Name: datamash
88cbe775
JP
7Version: 1.8
8Release: 1
ad8bac55 9License: GPL v3+
898ebeee 10Group: Applications
ad8bac55 11Source0: http://ftp.gnu.org/gnu/datamash/%{name}-%{version}.tar.gz
88cbe775 12# Source0-md5: b5f2dcfcefb2d41f88c54619b08727e3
898ebeee
JP
13URL: https://www.gnu.org/software/datamash/
14BuildRequires: gettext-tools
ad8bac55 15BuildRequires: pkgconfig
898ebeee
JP
16%if %{with tests}
17BuildRequires: perl-base
18BuildRequires: perl-modules
19BuildRequires: rpm-build >= 4.6
20%endif
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
ad8bac55
AM
22
23%description
898ebeee
JP
24GNU datamash is a command-line program which performs basic numeric,
25textual and statistical operations on input textual data files.
26
27%package -n bash-completion-datamash
28Summary: Bash completion for datamash command line
29Group: Applications/Shells
30Requires: %{name} = %{version}-%{release}
31Requires: bash-completion >= 1:2.0
32BuildArch: noarch
33
34%description -n bash-completion-datamash
35Bash completion for datamash command line.
ad8bac55
AM
36
37%prep
898ebeee 38%setup -q
ad8bac55
AM
39
40%build
898ebeee
JP
41%configure \
42 --with-bash-completion-dir="%{bash_compdir}"
43
ad8bac55
AM
44%{__make}
45
898ebeee
JP
46%{?with_tests:%{__make} check}
47
ad8bac55
AM
48%install
49rm -rf $RPM_BUILD_ROOT
898ebeee
JP
50
51install -d $RPM_BUILD_ROOT%{bash_compdir}
52
ad8bac55
AM
53%{__make} install \
54 DESTDIR=$RPM_BUILD_ROOT
898ebeee 55
ad8bac55 56%{__rm} -f $RPM_BUILD_ROOT%{_infodir}/dir
ad8bac55 57
898ebeee
JP
58%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/%{name}/examples
59
60%find_lang %{name}
ad8bac55
AM
61
62%clean
63rm -rf $RPM_BUILD_ROOT
64
898ebeee
JP
65%post -p /sbin/postshell
66-/usr/sbin/fix-info-dir -c %{_infodir}
ad8bac55 67
898ebeee
JP
68%postun -p /sbin/postshell
69-/usr/sbin/fix-info-dir -c %{_infodir}
ad8bac55
AM
70
71%files -f %{name}.lang
72%defattr(644,root,root,755)
88cbe775 73%doc AUTHORS ChangeLog NEWS README THANKS examples
ad8bac55 74%attr(755,root,root) %{_bindir}/datamash
88cbe775 75%attr(755,root,root) %{_bindir}/decorate
898ebeee 76%{_infodir}/datamash.info*
ad8bac55 77%{_mandir}/man1/datamash.1*
88cbe775 78%{_mandir}/man1/decorate.1*
898ebeee
JP
79
80%files -n bash-completion-datamash
81%defattr(644,root,root,755)
82%{bash_compdir}/datamash
This page took 0.205131 seconds and 4 git commands to generate.