2011-02-02 02:21:44 +01:00
|
|
|
|
#
|
|
|
|
|
# spec file for package hxtools
|
|
|
|
|
#
|
|
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
|
#
|
|
|
|
|
# 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.
|
2011-02-02 02:21:38 +01:00
|
|
|
|
|
2011-02-02 02:21:44 +01:00
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
2011-02-02 02:21:38 +01:00
|
|
|
|
|
2011-02-02 02:21:44 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: hxtools
|
|
|
|
|
Version: 20101227
|
|
|
|
|
Release: 1
|
|
|
|
|
Group: System/Base
|
|
|
|
|
Url: http://jengelh.medozas.de/projects/hxtools/
|
|
|
|
|
Summary: Collection of day-to-day tools
|
|
|
|
|
|
|
|
|
|
Source: %name-%version.tar.xz
|
|
|
|
|
Source2: %name-%version.tar.xz.asc
|
|
|
|
|
License: GPL,PD
|
2011-02-02 02:21:38 +01:00
|
|
|
|
# freetype2, xorg-x11 for "bdftopcf"
|
2011-02-02 02:21:44 +01:00
|
|
|
|
BuildRequires: freetype2 libHX-devel >= 3.4 libcap-devel
|
|
|
|
|
BuildRequires: pkg-config xorg-x11 xz
|
|
|
|
|
BuildRequires: -hxtools-data
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
Recommends: hxtools-data = %version
|
2011-02-02 02:21:38 +01:00
|
|
|
|
|
|
|
|
|
%if "%{?vendor_uuid}" != ""
|
2011-02-02 02:21:44 +01:00
|
|
|
|
Provides: %name(vendor:%vendor_uuid) = %version-%release
|
2011-02-02 02:21:38 +01:00
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
A collection of various tools. Some of the important ones:
|
|
|
|
|
|
|
|
|
|
* checkbrack(1) — check parenthesis and bracket count
|
|
|
|
|
* cwdiff(1) — run wdiff with color
|
|
|
|
|
* declone(1) — break hardlinks
|
|
|
|
|
* diff2php(1) — transform patch to self-serving PHP file
|
|
|
|
|
* doxygen-kerneldoc-filter(1) — filter for Doxygen to support kerneldoc
|
|
|
|
|
* fd0ssh(1) — pipe for password-over-stdin support to ssh
|
|
|
|
|
* 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-lemon(1) — don't just pick cherries, but take it all (cherry- pick a commit range)
|
|
|
|
|
* 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
|
|
|
|
|
* newns(8) — clone current filesystem namespace and start a process
|
|
|
|
|
* ofl(1) — open file lister (replaces fuser and lsof -m)
|
|
|
|
|
* 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
|
|
|
|
|
* tailhex(1) — hex dumper with tail-following support
|
|
|
|
|
* utmp_register(1) — make entries in the utmp/wtmp database
|
|
|
|
|
* vcsaview(8) — display a screen dump in VCSA format
|
|
|
|
|
* vfontas(1) — VGA font file assembler
|
|
|
|
|
* wktimer(1) — work timer
|
|
|
|
|
|
|
|
|
|
%package data
|
2011-02-02 02:21:44 +01:00
|
|
|
|
License: GPL,PD
|
|
|
|
|
Group: System/Base
|
|
|
|
|
Summary: Collection day-to-day tools (data)
|
|
|
|
|
Requires: hxtools = %version
|
|
|
|
|
Obsoletes: hxtools-noarch
|
|
|
|
|
BuildArch: noarch
|
2011-02-02 02:21:38 +01:00
|
|
|
|
|
|
|
|
|
%description data
|
|
|
|
|
Architecture-indepent data for hxtools.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
%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";
|
|
|
|
|
rm -Rf "$b";
|
|
|
|
|
mkdir "$b";
|
|
|
|
|
make install DESTDIR="$b";
|
|
|
|
|
install -dm0755 "$b/%_sysconfdir/openldap/schema" "$b/%_datadir/mc/syntax";
|
|
|
|
|
install -pm0644 cooledit/*.syntax "$b/%_datadir/mc/syntax/";
|
|
|
|
|
install -pm0644 data/rfc2307bis-utf8.schema "$b/%_sysconfdir/openldap/schema/";
|
|
|
|
|
cd "$b";
|
|
|
|
|
find * -type f ! -wholename "usr/share/man*" -print0 | \
|
|
|
|
|
xargs -0 grep -l ELF | perl -ne 'print"/$_"' >"$o/binary.lst";
|
|
|
|
|
find * -type f ! -wholename "usr/share/man*" -print0 | \
|
|
|
|
|
xargs -0 grep -L ELF | perl -ne 'print"/$_"' >"$o/data.lst";
|
|
|
|
|
chmod a+x "$b/%_sysconfdir"/hx*.bash;
|
|
|
|
|
ln "$b/%_sysconfdir/hxtools_dircolors" "$b/%_sysconfdir/DIR_COLORS";
|
|
|
|
|
mkdir -p "$b/%_sysconfdir/profile.d";
|
|
|
|
|
ln -s "../hxtools_profile.bash" "$b/%_sysconfdir/profile.d/z_hxtools_profile.sh";
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -Rf "%buildroot";
|
|
|
|
|
|
|
|
|
|
%files -f binary.lst
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%dir %_libexecdir/%name
|
|
|
|
|
|
|
|
|
|
%files data -f data.lst
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%config %_sysconfdir/hx*
|
|
|
|
|
%config %_sysconfdir/DIR_COLORS
|
|
|
|
|
%config %_sysconfdir/profile.d/*
|
|
|
|
|
%dir %_sysconfdir/openldap
|
|
|
|
|
%dir %_sysconfdir/openldap/schema
|
|
|
|
|
%config %_sysconfdir/openldap/schema/*
|
|
|
|
|
%dir %_libexecdir/%name
|
|
|
|
|
%_datadir/%name
|
|
|
|
|
%_datadir/kbd
|
|
|
|
|
%_datadir/fonts/misc
|
|
|
|
|
%_datadir/mc
|
|
|
|
|
%doc %_mandir/*/*
|
|
|
|
|
|
|
|
|
|
%changelog
|