2011-02-18 13:29:16 +01:00
|
|
|
|
#
|
|
|
|
|
# spec file for package hxtools
|
|
|
|
|
#
|
2019-04-28 20:59:16 +02:00
|
|
|
|
# Copyright (c) 2019 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-02-18 13:29:16 +01:00
|
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
2012-05-14 16:14:33 +02:00
|
|
|
|
|
2011-02-18 13:29:16 +01:00
|
|
|
|
Name: hxtools
|
2020-01-26 15:46:43 +01:00
|
|
|
|
Version: 20200126
|
2014-02-13 15:01:24 +01:00
|
|
|
|
Release: 0
|
2011-02-18 13:29:16 +01:00
|
|
|
|
Summary: Collection of day-to-day tools (binaries)
|
2014-02-13 15:01:24 +01:00
|
|
|
|
License: GPL-2.0+ and WTFPL
|
2013-06-06 12:07:39 +02:00
|
|
|
|
Group: Productivity/Other
|
|
|
|
|
Url: http://inai.de/projects/hxtools/
|
2011-02-18 13:29:16 +01:00
|
|
|
|
|
2014-11-11 12:05:02 +01:00
|
|
|
|
Source: http://jftp.inai.de/hxtools/%name-%version.tar.xz
|
2013-06-06 12:07:39 +02:00
|
|
|
|
Source2: http://jftp.inai.de/hxtools/%name-%version.tar.asc
|
2012-12-14 09:17:37 +01:00
|
|
|
|
Source3: %name.keyring
|
2014-07-03 14:41:35 +02:00
|
|
|
|
BuildRequires: bdftopcf
|
2012-03-20 11:27:37 +01:00
|
|
|
|
BuildRequires: fdupes
|
2017-01-09 23:01:06 +01:00
|
|
|
|
BuildRequires: gcc-c++
|
2012-03-20 11:27:37 +01:00
|
|
|
|
BuildRequires: libcap-devel >= 2
|
2014-11-11 12:05:02 +01:00
|
|
|
|
BuildRequires: xz
|
2012-03-20 11:27:37 +01:00
|
|
|
|
BuildRequires: pkgconfig >= 0.21
|
2014-03-25 19:42:23 +01:00
|
|
|
|
BuildRequires: pkgconfig(libHX) >= 3.17
|
2012-05-14 16:14:33 +02:00
|
|
|
|
BuildRequires: pkgconfig(libpci) >= 3
|
|
|
|
|
BuildRequires: pkgconfig(mount) >= 2.20
|
|
|
|
|
BuildRequires: pkgconfig(xcb) >= 1
|
2011-07-28 08:46:12 +02:00
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-03-20 11:27:37 +01:00
|
|
|
|
Requires: %name-scripts = %version
|
|
|
|
|
Recommends: %name-man = %version
|
2014-11-11 12:05:02 +01:00
|
|
|
|
Recommends: hardlink
|
2012-08-04 09:15:05 +02:00
|
|
|
|
Requires: fd0ssh
|
|
|
|
|
Requires: ofl
|
|
|
|
|
Requires: sysinfo = %version
|
2011-02-18 13:29:07 +01:00
|
|
|
|
|
|
|
|
|
%define build_profile 1
|
2012-08-04 09:15:05 +02:00
|
|
|
|
%define hldir %_libexecdir/%name
|
2011-02-02 02:21:38 +01:00
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
A collection of various tools. Some of the important ones:
|
|
|
|
|
|
2011-02-18 13:29:07 +01:00
|
|
|
|
* declone(1) — break hardlinks
|
|
|
|
|
* fd0ssh(1) — pipe for password-over-stdin support to ssh
|
|
|
|
|
* ofl(1) — open file lister (replaces fuser and lsof -m)
|
|
|
|
|
* tailhex(1) — hex dumper with tail-following support
|
|
|
|
|
* utmp_register(1) — make entries in the utmp/wtmp database
|
2020-01-26 15:46:43 +01:00
|
|
|
|
* vfontas(1) — Bitmap font transformation utility
|
2011-02-18 13:29:07 +01:00
|
|
|
|
|
|
|
|
|
%package scripts
|
2011-02-18 13:29:16 +01:00
|
|
|
|
Summary: Collection of day-to-day tools (scripts)
|
2013-06-06 12:07:39 +02:00
|
|
|
|
Group: Productivity/Other
|
2011-02-18 13:29:16 +01:00
|
|
|
|
BuildArch: noarch
|
2012-03-20 11:27:37 +01:00
|
|
|
|
Requires: %name
|
|
|
|
|
Recommends: %name-man
|
2012-05-14 16:14:33 +02:00
|
|
|
|
Requires: perl(Data::Dumper)
|
|
|
|
|
Requires: perl(File::Find)
|
2012-01-09 16:21:38 +01:00
|
|
|
|
Requires: perl(File::Find::Rule)
|
2012-05-14 16:14:33 +02:00
|
|
|
|
Requires: perl(Getopt::Long)
|
|
|
|
|
Requires: perl(IPC::Open2)
|
|
|
|
|
Requires: perl(Text::CSV_XS)
|
2011-02-18 13:29:07 +01:00
|
|
|
|
|
|
|
|
|
%description scripts
|
|
|
|
|
Architecture-independent programs from hxtools.
|
|
|
|
|
|
2011-02-02 02:21:38 +01:00
|
|
|
|
* checkbrack(1) — check parenthesis and bracket count
|
|
|
|
|
* cwdiff(1) — run wdiff with color
|
|
|
|
|
* diff2php(1) — transform patch to self-serving PHP file
|
|
|
|
|
* doxygen-kerneldoc-filter(1) — filter for Doxygen to support kerneldoc
|
|
|
|
|
* filenameconv(1) — convert file name encoding
|
|
|
|
|
* git-author-stat(1) — show commit author statistics of a git repository
|
|
|
|
|
* git-export-patch(1) — produce perfect patch from git comits for mail submission
|
|
|
|
|
* git-forest(1) — display the commit history forest
|
|
|
|
|
* git-revert-stats(1) — show reverting statistics of a git repository
|
|
|
|
|
* git-track(1) — set up branch for tracking a remote
|
|
|
|
|
* man2html(1) — convert nroff manpages to HTML
|
2017-01-09 23:01:06 +01:00
|
|
|
|
* pegrep(1) — perl-regexp-based multi-line grep
|
|
|
|
|
* pesubst(1) — perl-regexp-based stream substitution (replaces sed for substitutions)
|
2011-02-02 02:21:38 +01:00
|
|
|
|
* recursive_lower(1) — recursively lowercase all filenames
|
|
|
|
|
* spec-beautifier(1) — program to clean up RPM .spec files
|
|
|
|
|
* vcsaview(8) — display a screen dump in VCSA format
|
|
|
|
|
* wktimer(1) — work timer
|
|
|
|
|
|
2011-02-18 13:29:07 +01:00
|
|
|
|
%package man
|
2011-02-18 13:29:16 +01:00
|
|
|
|
Summary: Manual pages for the hxtools suite
|
2012-03-20 11:27:37 +01:00
|
|
|
|
Group: Documentation/Man
|
2011-02-18 13:29:16 +01:00
|
|
|
|
BuildArch: noarch
|
2011-02-18 13:29:07 +01:00
|
|
|
|
|
|
|
|
|
%description man
|
|
|
|
|
This package contains the manual pages for the binaries and scripts
|
|
|
|
|
from hxtools.
|
|
|
|
|
|
2011-02-02 02:21:38 +01:00
|
|
|
|
%package data
|
2011-02-18 13:29:16 +01:00
|
|
|
|
Summary: Collection of day-to-day tools (data)
|
2013-06-06 12:07:39 +02:00
|
|
|
|
Group: Productivity/Other
|
2011-02-18 13:29:16 +01:00
|
|
|
|
BuildArch: noarch
|
2011-02-02 02:21:38 +01:00
|
|
|
|
|
|
|
|
|
%description data
|
2011-02-18 13:29:07 +01:00
|
|
|
|
Architecture-independent data from hxtools.
|
|
|
|
|
|
|
|
|
|
* VAIO U3 keymap
|
|
|
|
|
* additional fonts for console and xterm
|
|
|
|
|
* additional syntax highlighting definitions for mcedit
|
|
|
|
|
|
|
|
|
|
%package profile
|
2011-02-18 13:29:16 +01:00
|
|
|
|
Summary: The hxtools shell environment
|
2013-06-06 12:07:39 +02:00
|
|
|
|
Group: Productivity/Other
|
2012-05-14 16:14:33 +02:00
|
|
|
|
Requires: %name = %version
|
2011-02-18 13:29:16 +01:00
|
|
|
|
Requires: %name-data = %version
|
2012-05-14 16:14:33 +02:00
|
|
|
|
Requires: %name-scripts = %version
|
2011-02-18 13:29:16 +01:00
|
|
|
|
BuildArch: noarch
|
2011-02-18 13:29:07 +01:00
|
|
|
|
|
|
|
|
|
%description profile
|
|
|
|
|
Bash environment settings from hxtools. Particularly, this provides
|
2017-01-09 23:01:06 +01:00
|
|
|
|
the SUSE 6.x ls color scheme, and a reduced PS1 that shows only the
|
|
|
|
|
rightmost parts of a path.
|
2011-02-02 02:21:38 +01:00
|
|
|
|
|
2012-08-04 09:15:05 +02:00
|
|
|
|
%package -n sysinfo
|
|
|
|
|
Summary: System diagnosis tools from hxtools
|
|
|
|
|
Group: System/Base
|
|
|
|
|
|
|
|
|
|
%description -n sysinfo
|
|
|
|
|
This subpackage contains programs from the hxtools suite that
|
|
|
|
|
give info about available system components.
|
|
|
|
|
|
|
|
|
|
* clock_info(1) – show available system clocks for clock_gettime(2)
|
|
|
|
|
* pmap_dirty(1) — display amount of RAM a process uses hard
|
|
|
|
|
* sysinfo(1) — print IRC-style system information banner
|
|
|
|
|
|
|
|
|
|
%package -n fd0ssh
|
|
|
|
|
Summary: Helper program for using a pipe for SSH authentication
|
|
|
|
|
Group: System/Base
|
|
|
|
|
|
|
|
|
|
%description -n fd0ssh
|
|
|
|
|
fd0ssh a helper program used by non-interactive programs, for example
|
|
|
|
|
pam_mount, that want to pipe a password to ssh.
|
|
|
|
|
|
|
|
|
|
%package -n ofl
|
|
|
|
|
Summary: Open File Lister from hxtools
|
|
|
|
|
Group: System/Base
|
|
|
|
|
|
|
|
|
|
%description -n ofl
|
|
|
|
|
ofl lists processes (and can send signals to them) that have
|
|
|
|
|
directories or files in specific locations in use. It differs from
|
|
|
|
|
lsof/fuser in that it can scan recursively and won't bluntly look at
|
|
|
|
|
an entire mount.
|
|
|
|
|
|
2011-02-02 02:21:38 +01:00
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
%build
|
2012-11-21 17:01:02 +01:00
|
|
|
|
%configure
|
2018-03-01 15:27:20 +01:00
|
|
|
|
make %{?_smp_mflags}
|
2011-02-02 02:21:38 +01:00
|
|
|
|
|
|
|
|
|
%install
|
2018-03-01 15:27:20 +01:00
|
|
|
|
%make_install
|
|
|
|
|
b="%buildroot"
|
2014-02-13 15:01:24 +01:00
|
|
|
|
mv "$b/%_bindir/rot13" "$b/%_libexecdir/%name/"
|
2018-03-01 15:27:20 +01:00
|
|
|
|
install -dm0755 "$b/%_datadir/mc/syntax"
|
|
|
|
|
install -pm0644 cooledit/*.syntax "$b/%_datadir/mc/syntax/"
|
|
|
|
|
install -dm0755 "$b/%_sysconfdir/openldap/schema"
|
2012-03-20 11:27:37 +01:00
|
|
|
|
ln -s "%_datadir/hxtools/rfc2307bis-utf8.schema" \
|
2018-03-01 15:27:20 +01:00
|
|
|
|
"$b/%_sysconfdir/openldap/schema/"
|
2011-02-18 13:29:07 +01:00
|
|
|
|
|
|
|
|
|
%if 0%{?build_profile}
|
2018-03-01 15:27:20 +01:00
|
|
|
|
mkdir -p "$b/%_sysconfdir/bashrc.d"
|
|
|
|
|
ln -s "%_datadir/%name/hxtools_bashrc.bash" "$b/%_sysconfdir/bashrc.d/"
|
|
|
|
|
mkdir -p "$b/%_sysconfdir/profile.d"
|
|
|
|
|
ln -s "%_datadir/%name/hxtools_profile.bash" "$b/%_sysconfdir/profile.d/z_hxtools_profile.sh"
|
2011-02-18 13:29:07 +01:00
|
|
|
|
%else
|
2018-03-01 15:27:20 +01:00
|
|
|
|
rm -Rf "$b/%_sysconfdir/profile.d" "$b/%_sysconfdir"/hx*
|
2011-02-18 13:29:07 +01:00
|
|
|
|
%endif
|
2011-02-02 02:21:38 +01:00
|
|
|
|
|
2013-06-06 12:07:39 +02:00
|
|
|
|
%fdupes %buildroot/%_prefix
|
2012-03-20 11:27:37 +01:00
|
|
|
|
|
2012-08-04 09:15:05 +02:00
|
|
|
|
%files
|
2011-02-02 02:21:38 +01:00
|
|
|
|
%defattr(-,root,root)
|
2014-02-13 15:01:24 +01:00
|
|
|
|
%doc LICENSE*
|
|
|
|
|
%_bindir/bin2c
|
2020-01-26 15:46:43 +01:00
|
|
|
|
%_bindir/bsvplay
|
2012-08-04 09:15:05 +02:00
|
|
|
|
%_bindir/declone
|
2017-01-09 23:01:06 +01:00
|
|
|
|
%_bindir/gxxdm
|
2013-06-06 12:07:39 +02:00
|
|
|
|
%_bindir/hcdplay
|
2020-01-26 15:46:43 +01:00
|
|
|
|
%_bindir/pcmdiff
|
|
|
|
|
%_bindir/proc_iomem_count
|
|
|
|
|
%_bindir/proc_stat_parse
|
|
|
|
|
%_bindir/qplay
|
2012-08-04 09:15:05 +02:00
|
|
|
|
%_bindir/tailhex
|
2020-01-26 15:46:43 +01:00
|
|
|
|
%_bindir/vfontas
|
2012-08-04 09:15:05 +02:00
|
|
|
|
%_bindir/xcp
|
|
|
|
|
%dir %hldir
|
|
|
|
|
%hldir/cctypeinfo
|
2014-02-13 15:01:24 +01:00
|
|
|
|
%hldir/peicon
|
2012-08-04 09:15:05 +02:00
|
|
|
|
%hldir/psthreads
|
2014-02-13 15:01:24 +01:00
|
|
|
|
%hldir/rot13
|
2012-08-04 09:15:05 +02:00
|
|
|
|
%hldir/utmp_register
|
|
|
|
|
|
|
|
|
|
%files scripts
|
2011-02-18 13:29:07 +01:00
|
|
|
|
%defattr(-,root,root)
|
2017-01-09 23:01:06 +01:00
|
|
|
|
%_bindir/aumeta
|
2012-08-04 09:15:05 +02:00
|
|
|
|
%_bindir/checkbrack
|
|
|
|
|
%_bindir/cwdiff
|
2020-01-26 15:46:43 +01:00
|
|
|
|
%_bindir/extract_*
|
2012-08-04 09:15:05 +02:00
|
|
|
|
%_bindir/fxterm
|
|
|
|
|
%_bindir/git-*
|
|
|
|
|
%_bindir/gpsh
|
|
|
|
|
%_bindir/man2html
|
2017-01-09 23:01:06 +01:00
|
|
|
|
%_bindir/mkvappend
|
2020-01-26 15:46:43 +01:00
|
|
|
|
%_bindir/mod2opus
|
2017-01-09 23:01:06 +01:00
|
|
|
|
%_bindir/pegrep
|
2012-08-04 09:15:05 +02:00
|
|
|
|
%_bindir/pesubst
|
2017-01-09 23:01:06 +01:00
|
|
|
|
%_bindir/qpdecode
|
2012-08-04 09:15:05 +02:00
|
|
|
|
%_bindir/qtar
|
|
|
|
|
%_bindir/spec-beautifier
|
|
|
|
|
%_bindir/ssa2srt
|
|
|
|
|
%_bindir/su1
|
|
|
|
|
%_bindir/wktimer
|
|
|
|
|
%dir %hldir
|
|
|
|
|
%hldir/diff2php
|
|
|
|
|
%hldir/doxygen-kerneldoc-filter
|
2017-01-09 23:01:06 +01:00
|
|
|
|
%hldir/ldif-duplicate-attrs
|
|
|
|
|
%hldir/ldif-leading-spaces
|
2012-08-04 09:15:05 +02:00
|
|
|
|
%hldir/logontime
|
|
|
|
|
%hldir/mailsplit
|
|
|
|
|
%hldir/recursive_lower
|
2014-11-11 12:05:02 +01:00
|
|
|
|
%hldir/rezip
|
2012-08-04 09:15:05 +02:00
|
|
|
|
%hldir/sourcefuncsize
|
|
|
|
|
%hldir/vcsaview
|
2011-02-18 13:29:07 +01:00
|
|
|
|
|
|
|
|
|
%files man
|
|
|
|
|
%defattr(-,root,root)
|
2012-01-09 16:21:38 +01:00
|
|
|
|
%doc %_mandir/man*/*
|
2012-08-04 09:15:05 +02:00
|
|
|
|
%exclude %_mandir/man*/fd0ssh.1*
|
|
|
|
|
%exclude %_mandir/man*/ofl.1*
|
2011-02-18 13:29:07 +01:00
|
|
|
|
|
|
|
|
|
%files data
|
2011-02-02 02:21:38 +01:00
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%dir %_sysconfdir/openldap
|
|
|
|
|
%dir %_sysconfdir/openldap/schema
|
|
|
|
|
%config %_sysconfdir/openldap/schema/*
|
|
|
|
|
%_datadir/%name
|
|
|
|
|
%_datadir/kbd
|
|
|
|
|
%_datadir/mc
|
2011-02-18 13:29:07 +01:00
|
|
|
|
|
|
|
|
|
%if 0%{?build_profile}
|
2011-07-28 08:46:12 +02:00
|
|
|
|
|
2011-02-18 13:29:07 +01:00
|
|
|
|
%files profile
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%config %_sysconfdir/hxloginpref.conf
|
2011-07-28 08:45:57 +02:00
|
|
|
|
%dir %_sysconfdir/bashrc.d
|
|
|
|
|
%config %_sysconfdir/bashrc.d/*
|
2011-02-18 13:29:07 +01:00
|
|
|
|
%config %_sysconfdir/profile.d/*
|
|
|
|
|
%endif
|
2011-02-02 02:21:38 +01:00
|
|
|
|
|
2012-08-04 09:15:05 +02:00
|
|
|
|
%files -n fd0ssh
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%dir %hldir
|
|
|
|
|
%hldir/fd0ssh
|
|
|
|
|
%_mandir/man1/fd0ssh.1*
|
|
|
|
|
|
|
|
|
|
%files -n ofl
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%_bindir/ofl
|
|
|
|
|
%_mandir/man1/ofl.1*
|
|
|
|
|
|
|
|
|
|
%files -n sysinfo
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%_bindir/pmap_dirty
|
|
|
|
|
%_bindir/sysinfo
|
|
|
|
|
%dir %hldir
|
2020-01-26 15:46:43 +01:00
|
|
|
|
%hldir/clock_info
|
2017-04-30 12:31:38 +02:00
|
|
|
|
%hldir/hxnetload
|
2012-08-04 09:15:05 +02:00
|
|
|
|
%hldir/paddrspacesize
|
|
|
|
|
%hldir/proc_stat_signal_decode
|
|
|
|
|
|
2011-02-02 02:21:38 +01:00
|
|
|
|
%changelog
|