0c7fac9
%global _hardened_build 1
0c7fac9
fc00442
Name:           hxtools
a45810c
Version:        20150304
5f9755d
Release:        6%{?dist}
fc00442
Summary:        A collection of several tools
fc00442
# fd0ssh: LGPLv2 or LGPLv3
Christopher Meng 31ed0b4
# git-forest: GPLv2+
fc00442
# ofl: Public Domain, but LGPVv2 or LPGLv3 because of linking with libHX
5003bca
# peicon: GPLv2+
Christopher Meng 31ed0b4
License:        GPLv2+ or LGPLv2 or LGPLv3
37f471e
URL:            http://inai.de/projects/hxtools/
c0570f0
# Signature is usually from the key with the fingerpint
c0570f0
# B56B 8B9D 9915 AA87 96ED  C013 DFFF 2CDB 19FC 338D
c0570f0
# Verify it like this:
445533b
# xzdec hxtools-%{version}.tar.xz | gpg --verify hxtools-%{version}.tar.asc -
37f471e
Source0:        http://inai.de/files/hxtools/hxtools-%{version}.tar.xz
01273be
Source1:        http://inai.de/files/hxtools/hxtools-%{version}.tar.asc
0c7fac9
Source2:        gpgkey-B56B8B9D9915AA8796EDC013DFFF2CDB19FC338D.gpg
Igor Gnatenko 314d495
BuildRequires:  gcc
fc00442
BuildRequires:  libHX-devel
fc00442
# for sys/capability.h in printcaps.c
fc00442
BuildRequires:  libcap-devel
37f471e
# for libmount.h in suser/sysinfo.c
37f471e
BuildRequires:  libmount-devel
37f471e
# for pci/pci.h in suser/sysinfo.c
37f471e
BuildRequires:  pciutils-devel
37f471e
# for xcb/xcb.h in suser/sysinfo.c
37f471e
BuildRequires:  libxcb-devel
0c7fac9
# For source verification with gpgv
13f9400
BuildRequires:  gpg perl-generators xz
3aeaba4
Provides:       fd0ssh
3aeaba4
Provides:       git-forest
3aeaba4
Provides:       ofl
5003bca
Provides:       peicon
fc00442
0c7fac9
fc00442
%description
fc00442
hxtools contains several tools for different tasks written by Jan Engelhardt.
fc00442
3aeaba4
Currently only these tools are included in Fedora:
fc00442
3aeaba4
* fd0ssh - Pipe for password-over-stdin support to ssh
3aeaba4
* git-forest - A text-based git tree visualizer
3aeaba4
* ofl - Open file lister (replaces fuser and lsof -m)
a92b8ec
* peicon - PE files icons extractor
fc00442
fc00442
%prep
0c7fac9
xzcat %{SOURCE0} | gpgv --quiet --keyring %{SOURCE2} %{SOURCE1} -
fc00442
%setup -q
fc00442
fc00442
%build
f8ce2ee
%configure --disable-silent-rules
c86af72
%make_build
fc00442
fc00442
%install
3aeaba4
%make_install
fc00442
fc00442
# remove unwanted files
fc00442
# Using %%exclude in %%files pollutes the debuginfo package :-/
fc00442
# This seems to be only build if some dependency is present
a92b8ec
rm "%{buildroot}%{_bindir}/bin2c"
3aeaba4
rm "%{buildroot}%{_bindir}/checkbrack"
3aeaba4
rm "%{buildroot}%{_bindir}/clock_info"
10c854e
rm "%{buildroot}%{_bindir}/clt2bdf"
3aeaba4
rm "%{buildroot}%{_bindir}/cwdiff"
3aeaba4
rm "%{buildroot}%{_bindir}/declone"
3aeaba4
rm "%{buildroot}%{_bindir}/fxterm"
3aeaba4
rm "%{buildroot}%{_bindir}/git-author-stat"
3aeaba4
rm "%{buildroot}%{_bindir}/git-export-patch"
3aeaba4
rm "%{buildroot}%{_bindir}/git-track"
3aeaba4
rm "%{buildroot}%{_bindir}/googtts"
3aeaba4
rm "%{buildroot}%{_bindir}/gpsh"
a92b8ec
rm "%{buildroot}%{_bindir}/hcdplay"
a92b8ec
rm "%{buildroot}%{_sysconfdir}/hxloginpref.conf"
3aeaba4
rm "%{buildroot}%{_bindir}/man2html"
3aeaba4
rm "%{buildroot}%{_bindir}/omixer"
3aeaba4
rm "%{buildroot}%{_bindir}/oplay"
3aeaba4
rm "%{buildroot}%{_bindir}/orec"
c60b87a
rm "%{buildroot}%{_bindir}/move_moov"
3aeaba4
rm "%{buildroot}%{_bindir}/pesubst"
3aeaba4
rm "%{buildroot}%{_bindir}/pmap_dirty"
3aeaba4
rm "%{buildroot}%{_bindir}/qtar"
a92b8ec
rm "%{buildroot}%{_bindir}/rot13"
3aeaba4
rm "%{buildroot}%{_bindir}/spec-beautifier"
3aeaba4
rm "%{buildroot}%{_bindir}/ssa2srt"
3aeaba4
rm "%{buildroot}%{_bindir}/su1"
3aeaba4
rm "%{buildroot}%{_bindir}/sysinfo"
3aeaba4
rm "%{buildroot}%{_bindir}/tailhex"
3aeaba4
rm "%{buildroot}%{_bindir}/wktimer"
3aeaba4
rm "%{buildroot}%{_bindir}/xcp"
3aeaba4
rm "%{buildroot}%{_libexecdir}/hxtools/bsvplay"
3aeaba4
rm "%{buildroot}%{_libexecdir}/hxtools/cctypeinfo"
10c854e
rm "%{buildroot}%{_libexecdir}/hxtools/clt2pbm"
3aeaba4
rm "%{buildroot}%{_libexecdir}/hxtools/diff2php"
3aeaba4
rm "%{buildroot}%{_libexecdir}/hxtools/doxygen-kerneldoc-filter"
3aeaba4
rm "%{buildroot}%{_libexecdir}/hxtools/extract_d3pkg"
3aeaba4
rm "%{buildroot}%{_libexecdir}/hxtools/extract_dxhog"
3aeaba4
rm "%{buildroot}%{_libexecdir}/hxtools/extract_f3pod"
3aeaba4
rm "%{buildroot}%{_libexecdir}/hxtools/extract_qupak"
3aeaba4
rm "%{buildroot}%{_libexecdir}/hxtools/fnt2bdf"
3aeaba4
rm "%{buildroot}%{_libexecdir}/hxtools/git-blame-stats"
3aeaba4
rm "%{buildroot}%{_libexecdir}/hxtools/git-new-root"
3aeaba4
rm "%{buildroot}%{_libexecdir}/hxtools/git-revert-stats"
3aeaba4
rm "%{buildroot}%{_libexecdir}/hxtools/logontime"
3aeaba4
rm "%{buildroot}%{_libexecdir}/hxtools/mailsplit"
3aeaba4
rm "%{buildroot}%{_libexecdir}/hxtools/mod2ogg"
3aeaba4
rm "%{buildroot}%{_libexecdir}/hxtools/netload"
3aeaba4
rm "%{buildroot}%{_libexecdir}/hxtools/paddrspacesize"
3aeaba4
rm "%{buildroot}%{_libexecdir}/hxtools/pcmdiff"
3aeaba4
rm "%{buildroot}%{_libexecdir}/hxtools/printcaps"
3aeaba4
rm "%{buildroot}%{_libexecdir}/hxtools/proc_iomem_count"
3aeaba4
rm "%{buildroot}%{_libexecdir}/hxtools/proc_stat_signal_decode"
3aeaba4
rm "%{buildroot}%{_libexecdir}/hxtools/psthreads"
3aeaba4
rm "%{buildroot}%{_libexecdir}/hxtools/qplay"
3aeaba4
rm "%{buildroot}%{_libexecdir}/hxtools/recursive_lower"
c60b87a
rm "%{buildroot}%{_libexecdir}/hxtools/rezip"
3aeaba4
rm "%{buildroot}%{_libexecdir}/hxtools/shared.pm"
3aeaba4
rm "%{buildroot}%{_libexecdir}/hxtools/sourcefuncsize"
3aeaba4
rm "%{buildroot}%{_libexecdir}/hxtools/stxdb"
3aeaba4
rm "%{buildroot}%{_libexecdir}/hxtools/utmp_register"
3aeaba4
rm "%{buildroot}%{_libexecdir}/hxtools/vcsaview"
3aeaba4
rm "%{buildroot}%{_libexecdir}/hxtools/vfontas"
3aeaba4
rm "%{buildroot}%{_libexecdir}/hxtools/proc_stat_parse"
3aeaba4
rm "%{buildroot}%{_datadir}/hxtools/gitconfig"
3aeaba4
rm "%{buildroot}%{_datadir}/hxtools/hxloginpref.conf"
3aeaba4
rm "%{buildroot}%{_datadir}/kbd/consolefonts/ega437_8x14.fnt"
3aeaba4
rm "%{buildroot}%{_datadir}/kbd/consolefonts/ega437_8x16.fnt"
3aeaba4
rm "%{buildroot}%{_datadir}/kbd/consolefonts/ega437_8x8.fnt"
3aeaba4
rm "%{buildroot}%{_datadir}/kbd/consolefonts/gotik-textura.fnt"
3aeaba4
rm "%{buildroot}%{_datadir}/kbd/keymaps/i386/qwerty/us_jng.map"
3aeaba4
rm "%{buildroot}%{_datadir}/kbd/keymaps/i386/qwerty/us_jng_vaiou3.map"
3aeaba4
rm "%{buildroot}%{_datadir}/kbd/keymaps/i386/qwertz/de_jng.map"
3aeaba4
rm "%{buildroot}%{_datadir}/kbd/unimaps/cp437AB.uni"
3aeaba4
rm "%{buildroot}%{_datadir}/kbd/consolefonts/ital.fnt"
3aeaba4
rm "%{buildroot}%{_datadir}/fonts/misc/mux.pcf.gz"
3aeaba4
rm "%{buildroot}%{_datadir}/fonts/misc/rhx.pcf.gz"
3aeaba4
rm "%{buildroot}%{_datadir}/fonts/misc/tosh.pcf.gz"
3aeaba4
rm "%{buildroot}%{_datadir}/kbd/consolefonts/A1.fnt"
3aeaba4
rm "%{buildroot}%{_datadir}/kbd/consolefonts/B1.fnt"
3aeaba4
rm "%{buildroot}%{_datadir}/kbd/consolefonts/ati.fnt"
3aeaba4
rm "%{buildroot}%{_datadir}/kbd/consolefonts/mux.fnt"
3aeaba4
rm "%{buildroot}%{_datadir}/kbd/consolefonts/neuropol.fnt"
3aeaba4
rm "%{buildroot}%{_datadir}/kbd/consolefonts/nvidia.fnt"
3aeaba4
rm "%{buildroot}%{_datadir}/kbd/consolefonts/rhx.fnt"
3aeaba4
rm "%{buildroot}%{_datadir}/kbd/consolefonts/tosh.fnt"
3aeaba4
rm "%{buildroot}%{_datadir}/hxtools/hxtools_bashrc.bash"
3aeaba4
rm "%{buildroot}%{_datadir}/hxtools/hxtools_dircolors"
3aeaba4
rm "%{buildroot}%{_datadir}/hxtools/hxtools_profile.bash"
3aeaba4
rm "%{buildroot}%{_datadir}/hxtools/rfc2307bis-utf8.schema"
3aeaba4
rm "%{buildroot}%{_mandir}/man1/bsvplay.1"*
a92b8ec
rm "%{buildroot}%{_mandir}/man1/bin2c.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/cctypeinfo.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/checkbrack.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/clock_info.1"*
01273be
rm "%{buildroot}%{_mandir}/man1/clt2bdf.1"*
01273be
rm "%{buildroot}%{_mandir}/man1/clt2pbm.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/cwdiff.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/declone.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/diff2php.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/extract_d3pkg.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/extract_dxhog.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/extract_f3pod.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/extract_qupak.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/fnt2bdf.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/fxterm.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/git-author-stat.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/git-export-patch.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/git-revert-stats.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/git-track.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/hcdplay.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/mailsplit.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/man2html.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/mod2ogg.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/omixer.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/oplay.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/orec.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/pcmdiff.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/pesubst.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/psthreads.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/qplay.1"*
a92b8ec
rm "%{buildroot}%{_mandir}/man1/qtar.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/recursive_lower.1"*
a92b8ec
rm "%{buildroot}%{_mandir}/man1/rot13.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/sourcefuncsize.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/spec-beautifier.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/ssa2srt.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/stxdb.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/sysinfo.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/tailhex.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/vfontas.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/wktimer.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man1/xcp.1"*
3aeaba4
rm "%{buildroot}%{_mandir}/man7/hxtools.7"*
3aeaba4
rm "%{buildroot}%{_mandir}/man8/logontime.8"*
3aeaba4
rm "%{buildroot}%{_mandir}/man8/netload.8"*
3aeaba4
rm "%{buildroot}%{_mandir}/man8/printcaps.8"*
3aeaba4
rm "%{buildroot}%{_mandir}/man8/utmp_register.8"*
3aeaba4
rm "%{buildroot}%{_mandir}/man8/vcsaview.8"*
3aeaba4
rm "%{buildroot}%{_mandir}/man8/xfs_irecover.8"*
fc00442
fc00442
%files
5003bca
%license LICENSE.GPL2 LICENSE.GPL3 LICENSE.WTFPL
5003bca
%doc LICENSES.txt
Christopher Meng 31ed0b4
%{_bindir}/git-forest
f8ce2ee
%{_bindir}/ofl
fc00442
%{_libexecdir}/hxtools/fd0ssh
a92b8ec
%{_libexecdir}/hxtools/peicon
fc00442
%{_mandir}/man1/fd0ssh.1*
Christopher Meng 31ed0b4
%{_mandir}/man1/git-forest.1*
fc00442
%{_mandir}/man1/ofl.1*
a92b8ec
%{_mandir}/man1/peicon.1*
fc00442
fc00442
%changelog
5f9755d
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20150304-6
5f9755d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5f9755d
c37ab65
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20150304-5
c37ab65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
c37ab65
a36bf35
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20150304-4
a36bf35
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a36bf35
c56edd1
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20150304-3
c56edd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c56edd1
56533f9
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 20150304-2
56533f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
56533f9
a45810c
* Sat Jul 25 2015 Christopher Meng <rpm@cicku.me> - 20150304-1
a45810c
- Update to 20150304
a45810c
8e9ac75
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20150221-2
8e9ac75
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
8e9ac75
65151be
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 20150221-1
65151be
- Update to new release
5003bca
- Use %%license
5003bca
- Update removed tools
5003bca
- Properly mention peicon
65151be
0c7fac9
* Sun Nov 09 2014 Till Maas <opensource@till.name> - 20140703-4
0c7fac9
- Harden build
0c7fac9
- Add automatic GPG key verification
0c7fac9
01273be
* Mon Aug 18 2014 Till Maas <opensource@till.name> - 20140703-3
01273be
- Add missing GPG signature
01273be
- Fix man page removal
01273be
a010c7c
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20140703-2
a010c7c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
a010c7c
445533b
* Mon Jul 21 2014 Christopher Meng <rpm@cicku.me> - 20140703-1
445533b
- Update to 20140703
445533b
3aeaba4
* Thu Jun 19 2014 Christopher Meng <rpm@cicku.me> - 20140325-1
3aeaba4
- Update to 20140325
a92b8ec
- Add peicon.
f8ce2ee
- Fix conflicting types include on AArch64.
3aeaba4
8256350
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20130605-3
8256350
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
8256350
c63abb2
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20130605-2
c63abb2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
c63abb2
Christopher Meng 31ed0b4
* Wed Jul 03 2013 Christopher Meng <rpm@cicku.me> - 20130605-1
3aeaba4
- Update to 20130605
Christopher Meng 31ed0b4
- Add git-forest
Christopher Meng 31ed0b4
fccf8d7
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20120514-3
fccf8d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
fccf8d7
5e9e8e2
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20120514-2
5e9e8e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5e9e8e2
37f471e
* Wed Jun 06 2012 Till Maas <opensource@till.name> - 20120514-1
37f471e
- Update to new release
37f471e
- Update URL and Source0/1
37f471e
- Update BuildRequires
37f471e
37f471e
* Wed Mar 21 2012 Till Maas <opensource@till.name> - 20120107-1
37f471e
- Update to new release
37f471e
- Remove upstreamed patch
37f471e
fc00442
* Thu Nov 24 2011 Till Maas <opensource@till.name> - 20110721-2
fc00442
- Update BR: use automake instead of autoconf
fc00442
- Use %% for rpm macros in comments
fc00442
fc00442
* Fri Jul 22 2011 Till Maas <opensource@till.name> - 20110721-1
fc00442
- Update to new release
fc00442
- Add patch to make newns build (missing _GNU_SOURCE)
fc00442
fc00442
* Thu May 19 2011 Till Maas <opensource@till.name> - 20110509-1
fc00442
- Update to new release
fc00442
- cleanup spec
fc00442
- add BR: autoconf
fc00442
- add BR: libcaps-devel
fc00442
fc00442
* Wed Mar 09 2011 Till Maas <opensource@till.name> - 20110308-2
fc00442
- Include license files
fc00442
fc00442
* Wed Mar 09 2011 Till Maas <opensource@till.name> - 20110308-1
fc00442
- Update to new release
fc00442
fc00442
* Mon Dec 27 2010 Till Maas <opensource@till.name> - 20101227-1
fc00442
- Initial spec with only the programs needed by pam_mount