2011-02-18 13:29:16 +01:00
|
|
|
|
#
|
|
|
|
|
# spec file for package hxtools
|
|
|
|
|
#
|
2012-01-09 16:21:38 +01:00
|
|
|
|
# Copyright (c) 2012 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/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
Name: hxtools
|
2012-01-09 16:21:38 +01:00
|
|
|
|
Version: 20120107
|
|
|
|
|
Release: 0
|
2011-07-28 08:46:12 +02:00
|
|
|
|
Url: http://jengelh.medozas.de/projects/hxtools/
|
2011-02-18 13:29:16 +01:00
|
|
|
|
Summary: Collection of day-to-day tools (binaries)
|
2012-03-20 11:27:37 +01:00
|
|
|
|
License: GPL-2.0+
|
|
|
|
|
Group: System/Base
|
2011-02-18 13:29:16 +01:00
|
|
|
|
|
|
|
|
|
Source: %name-%version.tar.xz
|
|
|
|
|
Source2: %name-%version.tar.xz.asc
|
2012-03-20 11:27:37 +01:00
|
|
|
|
Patch1: 7a4b085-capabilities.diff
|
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: libcap-devel >= 2
|
2012-01-09 16:21:38 +01:00
|
|
|
|
# xorg-x11 for "bdftopcf"
|
2012-03-20 11:27:37 +01:00
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
|
BuildRequires: xorg-x11
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?rhel_version} || 0%{?fedora_version}
|
|
|
|
|
BuildRequires: bdftopcf
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: pkgconfig >= 0.21
|
|
|
|
|
BuildRequires: xz
|
|
|
|
|
%if 0%{?suse_version} >= 1130
|
|
|
|
|
BuildRequires: pkgconfig(libHX) >= 3.12
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: libHX-devel >= 3.12
|
|
|
|
|
%endif
|
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
|
|
|
|
|
%if 0%{?suse_version} >= 1100
|
|
|
|
|
Recommends: %name-man = %version
|
|
|
|
|
%else
|
|
|
|
|
Requires: %name-man = %version
|
|
|
|
|
%endif
|
2011-02-18 13:29:07 +01:00
|
|
|
|
|
|
|
|
|
%define build_profile 1
|
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
|
|
|
|
|
* newns(8) — clone current filesystem namespace and start a process
|
|
|
|
|
* 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
|
|
|
|
|
* vfontas(1) — VGA font file assembler
|
|
|
|
|
|
|
|
|
|
%package scripts
|
2011-02-18 13:29:16 +01:00
|
|
|
|
Summary: Collection of day-to-day tools (scripts)
|
2012-03-20 11:27:37 +01:00
|
|
|
|
Group: System/Base
|
|
|
|
|
%if 0%{?suse_version} >= 1120
|
2011-02-18 13:29:16 +01:00
|
|
|
|
BuildArch: noarch
|
2012-03-20 11:27:37 +01:00
|
|
|
|
%endif
|
|
|
|
|
Requires: %name
|
|
|
|
|
%if 0%{?suse_version} >= 1100
|
|
|
|
|
Recommends: %name-man
|
|
|
|
|
%else
|
|
|
|
|
Requires: %name-man
|
|
|
|
|
%endif
|
2012-01-09 16:21:38 +01:00
|
|
|
|
Requires: perl(Data::Dumper), perl(File::Find)
|
|
|
|
|
Requires: perl(File::Find::Rule)
|
|
|
|
|
Requires: perl(Getopt::Long), perl(IPC::Open2), 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
|
|
|
|
|
* flv2avi(1) — repackage Flash video into an AVI container with PCM audio
|
|
|
|
|
* fnt2bdf(1) — convert VGA raw fonts to X11 BDF
|
|
|
|
|
* 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-new-root(1) — start a new root in the git history
|
|
|
|
|
* 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
|
|
|
|
|
* 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
|
|
|
|
|
|
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
|
|
|
|
|
%if 0%{?suse_version} >= 1120
|
2011-02-18 13:29:16 +01:00
|
|
|
|
BuildArch: noarch
|
2012-03-20 11:27:37 +01:00
|
|
|
|
%endif
|
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)
|
2012-03-20 11:27:37 +01:00
|
|
|
|
Group: System/Base
|
|
|
|
|
%if 0%{?suse_version} >= 1120
|
2011-02-18 13:29:16 +01:00
|
|
|
|
BuildArch: noarch
|
2012-03-20 11:27:37 +01:00
|
|
|
|
%endif
|
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
|
2012-03-20 11:27:37 +01:00
|
|
|
|
Group: System/Base
|
2011-02-18 13:29:16 +01:00
|
|
|
|
Requires: %name = %version, %name-scripts = %version
|
|
|
|
|
Requires: %name-data = %version
|
2012-03-20 11:27:37 +01:00
|
|
|
|
%if 0%{?suse_version} >= 1120
|
2011-02-18 13:29:16 +01:00
|
|
|
|
BuildArch: noarch
|
2012-03-20 11:27:37 +01:00
|
|
|
|
%endif
|
2011-02-18 13:29:07 +01:00
|
|
|
|
|
|
|
|
|
%description profile
|
|
|
|
|
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.
|
2011-02-02 02:21:38 +01:00
|
|
|
|
|
|
|
|
|
%prep
|
2012-03-20 11:27:37 +01:00
|
|
|
|
%if 0%{?__xz:1}
|
2011-02-02 02:21:38 +01:00
|
|
|
|
%setup -q
|
2012-03-20 11:27:37 +01:00
|
|
|
|
%else
|
|
|
|
|
tar -xf "%{S:0}" --use=xz;
|
|
|
|
|
%setup -DTq
|
|
|
|
|
%endif
|
|
|
|
|
%patch -P 1 -p1
|
2011-02-02 02:21:38 +01:00
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%configure \
|
|
|
|
|
--datadir=%_datadir/%name \
|
|
|
|
|
--with-keymapdir=%_datadir/kbd/keymaps \
|
|
|
|
|
--with-vgafontdir=%_datadir/kbd/consolefonts \
|
|
|
|
|
--with-x11fontdir=%_datadir/fonts
|
|
|
|
|
make %{?_smp_mflags};
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
o="$PWD";
|
|
|
|
|
b="%buildroot";
|
|
|
|
|
make install DESTDIR="$b";
|
2011-02-18 13:29:07 +01:00
|
|
|
|
|
|
|
|
|
install -dm0755 "$b/%_datadir/mc/syntax";
|
2011-02-02 02:21:38 +01:00
|
|
|
|
install -pm0644 cooledit/*.syntax "$b/%_datadir/mc/syntax/";
|
2011-02-18 13:29:07 +01:00
|
|
|
|
install -dm0755 "$b/%_sysconfdir/openldap/schema";
|
2012-03-20 11:27:37 +01:00
|
|
|
|
ln -s "%_datadir/hxtools/rfc2307bis-utf8.schema" \
|
|
|
|
|
"$b/%_sysconfdir/openldap/schema/";
|
2011-02-18 13:29:07 +01:00
|
|
|
|
|
2011-02-02 02:21:38 +01:00
|
|
|
|
cd "$b";
|
2011-02-18 13:29:07 +01:00
|
|
|
|
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}
|
2011-07-28 08:45:57 +02:00
|
|
|
|
mkdir -p "$b/%_sysconfdir/bashrc.d";
|
|
|
|
|
ln -s "%_datadir/%name/hxtools_bashrc.bash" "$b/%_sysconfdir/bashrc.d/";
|
2011-02-02 02:21:38 +01:00
|
|
|
|
mkdir -p "$b/%_sysconfdir/profile.d";
|
2011-02-18 13:29:07 +01:00
|
|
|
|
ln -s "%_datadir/%name/hxtools_profile.bash" "$b/%_sysconfdir/profile.d/z_hxtools_profile.sh";
|
|
|
|
|
%else
|
|
|
|
|
rm -Rf "$b/%_sysconfdir/profile.d" "$b/%_sysconfdir"/hx*;
|
|
|
|
|
%endif
|
2011-02-02 02:21:38 +01:00
|
|
|
|
|
2012-03-20 11:27:37 +01:00
|
|
|
|
%fdupes %buildroot
|
|
|
|
|
|
2011-02-02 02:21:38 +01:00
|
|
|
|
%files -f binary.lst
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%dir %_libexecdir/%name
|
|
|
|
|
|
2011-02-18 13:29:07 +01:00
|
|
|
|
%files scripts -f scripts.lst
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%dir %_libexecdir/%name
|
|
|
|
|
|
|
|
|
|
%files man
|
|
|
|
|
%defattr(-,root,root)
|
2012-01-09 16:21:38 +01:00
|
|
|
|
%doc %_mandir/man*/*
|
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/fonts/misc
|
|
|
|
|
%_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
|
|
|
|
|
|
|
|
|
%changelog
|