Accepting request 129784 from devel:libraries:c_c++
- Update to new upstream release 20120802 * sysinfo: do count tmpfs files as memory used - Split some tools into separate package so that they are installable independently (benefit to e.g. pam_mount) OBS-URL: https://build.opensuse.org/request/show/129784 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hxtools?expand=0&rev=15
This commit is contained in:
committed by
Git OBS Bridge
parent
41cd33dc63
commit
ec485dac3f
121
hxtools.spec
121
hxtools.spec
@@ -17,11 +17,11 @@
|
||||
|
||||
|
||||
Name: hxtools
|
||||
Version: 20120514
|
||||
Version: 20120802
|
||||
Release: 0
|
||||
Url: http://inai.de/projects/hxtools/
|
||||
Summary: Collection of day-to-day tools (binaries)
|
||||
License: GPL-2.0+
|
||||
License: GPL-2.0+ ; WTFPL-2.0+
|
||||
Group: System/Base
|
||||
|
||||
Source: %name-%version.tar.xz
|
||||
@@ -55,8 +55,12 @@ Recommends: %name-man = %version
|
||||
%else
|
||||
Requires: %name-man = %version
|
||||
%endif
|
||||
Requires: fd0ssh
|
||||
Requires: ofl
|
||||
Requires: sysinfo = %version
|
||||
|
||||
%define build_profile 1
|
||||
%define hldir %_libexecdir/%name
|
||||
|
||||
%description
|
||||
A collection of various tools. Some of the important ones:
|
||||
@@ -107,10 +111,8 @@ Architecture-independent programs from hxtools.
|
||||
* git-track(1) — set up branch for tracking a remote
|
||||
* man2html(1) — convert nroff manpages to HTML
|
||||
* pesubst(1) — perl-regexp stream substitution (replaces sed for sub‐ stitutions)
|
||||
* pmap_dirty(1) — display amount of RAM a process uses hard
|
||||
* recursive_lower(1) — recursively lowercase all filenames
|
||||
* spec-beautifier(1) — program to clean up RPM .spec files
|
||||
* sysinfo(1) — print IRC-style system information banner
|
||||
* vcsaview(8) — display a screen dump in VCSA format
|
||||
* wktimer(1) — work timer
|
||||
|
||||
@@ -154,6 +156,36 @@ Bash environment settings from hxtools. Particularly, this provides
|
||||
the SUSE 6.x ls color scheme, and an uncluttered PS1 that shows
|
||||
only important parts of a path.
|
||||
|
||||
%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.
|
||||
|
||||
%prep
|
||||
%if 0%{?__xz:1}
|
||||
%setup -q
|
||||
@@ -181,12 +213,6 @@ install -dm0755 "$b/%_sysconfdir/openldap/schema";
|
||||
ln -s "%_datadir/hxtools/rfc2307bis-utf8.schema" \
|
||||
"$b/%_sysconfdir/openldap/schema/";
|
||||
|
||||
cd "$b";
|
||||
find ./%_bindir ./%_libexecdir ! -type d -exec grep -l ELF {} + | \
|
||||
perl -pe 's{^\./+}{/}' >"$o/binary.lst";
|
||||
find ./%_bindir ./%_libexecdir ! -type d -exec grep -L ELF {} + | \
|
||||
perl -pe 's{^\./+}{/}' >"$o/scripts.lst";
|
||||
|
||||
%if 0%{?build_profile}
|
||||
mkdir -p "$b/%_sysconfdir/bashrc.d";
|
||||
ln -s "%_datadir/%name/hxtools_bashrc.bash" "$b/%_sysconfdir/bashrc.d/";
|
||||
@@ -198,17 +224,63 @@ rm -Rf "$b/%_sysconfdir/profile.d" "$b/%_sysconfdir"/hx*;
|
||||
|
||||
%fdupes %buildroot
|
||||
|
||||
%files -f binary.lst
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%dir %_libexecdir/%name
|
||||
%_bindir/declone
|
||||
%_bindir/newns
|
||||
%_bindir/omixer
|
||||
%_bindir/oplay
|
||||
%_bindir/orec
|
||||
%_bindir/tailhex
|
||||
%_bindir/xcp
|
||||
%dir %hldir
|
||||
%hldir/bsvplay
|
||||
%hldir/cctypeinfo
|
||||
%hldir/pcmdiff
|
||||
%hldir/printcaps
|
||||
%hldir/proc_iomem_count
|
||||
%hldir/proc_stat_parse
|
||||
%hldir/psthreads
|
||||
%hldir/qplay
|
||||
%hldir/utmp_register
|
||||
%hldir/vfontas
|
||||
|
||||
%files scripts -f scripts.lst
|
||||
%files scripts
|
||||
%defattr(-,root,root)
|
||||
%dir %_libexecdir/%name
|
||||
%_bindir/checkbrack
|
||||
%_bindir/cwdiff
|
||||
%_bindir/fduphl
|
||||
%_bindir/fxterm
|
||||
%_bindir/git-*
|
||||
%_bindir/googtts
|
||||
%_bindir/gpsh
|
||||
%_bindir/man2html
|
||||
%_bindir/pesubst
|
||||
%_bindir/qtar
|
||||
%_bindir/spec-beautifier
|
||||
%_bindir/ssa2srt
|
||||
%_bindir/su1
|
||||
%_bindir/wktimer
|
||||
%dir %hldir
|
||||
%hldir/diff2php
|
||||
%hldir/doxygen-kerneldoc-filter
|
||||
%hldir/extract_*
|
||||
%hldir/*2*
|
||||
%hldir/git-*
|
||||
%hldir/logontime
|
||||
%hldir/mailsplit
|
||||
%hldir/png2wx*
|
||||
%hldir/recursive_lower
|
||||
%hldir/shared.pm
|
||||
%hldir/sourcefuncsize
|
||||
%hldir/stxdb
|
||||
%hldir/vcsaview
|
||||
|
||||
%files man
|
||||
%defattr(-,root,root)
|
||||
%doc %_mandir/man*/*
|
||||
%exclude %_mandir/man*/fd0ssh.1*
|
||||
%exclude %_mandir/man*/ofl.1*
|
||||
|
||||
%files data
|
||||
%defattr(-,root,root)
|
||||
@@ -230,4 +302,25 @@ rm -Rf "$b/%_sysconfdir/profile.d" "$b/%_sysconfdir"/hx*;
|
||||
%config %_sysconfdir/profile.d/*
|
||||
%endif
|
||||
|
||||
%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/clock_info
|
||||
%_bindir/pmap_dirty
|
||||
%_bindir/sysinfo
|
||||
%dir %hldir
|
||||
%hldir/netload
|
||||
%hldir/paddrspacesize
|
||||
%hldir/proc_stat_signal_decode
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user