SHA256
1
0
forked from pool/hxtools
Files
hxtools/hxtools.spec

119 lines
3.9 KiB
RPMSpec
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Name: hxtools
Version: 20101227
Release: 0
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
# freetype2, xorg-x11 for "bdftopcf"
BuildRequires: libHX-devel >= 3.4, freetype2, libcap-devel
BuildRequires: xorg-x11, pkg-config, xz
BuildRequires: -hxtools-data
BuildRoot: %_tmppath/%name-%version-build
Recommends: hxtools-data = %version
%if "%{?vendor_uuid}" != ""
Provides: %name(vendor:%vendor_uuid) = %version-%release
%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
Group: System/Base
Summary: Collection day-to-day tools (data)
Requires: hxtools = %version
Obsoletes: hxtools-noarch
BuildArch: noarch
%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