|
deebs |
1036ebd |
Name: moreutils
|
|
deebs |
1036ebd |
Version: 0.24
|
|
deebs |
1036ebd |
Release: 2%{?dist}
|
|
deebs |
1036ebd |
Summary: Additional unix utilities
|
|
deebs |
1036ebd |
Group: Applications/System
|
|
deebs |
1036ebd |
License: GPLv2
|
|
deebs |
1036ebd |
URL: http://kitenet.net/~joey/code/moreutils/
|
|
deebs |
1036ebd |
Source0: http://ftp.debian.org/debian/pool/main/m/%{name}/%{name}_%{version}.tar.gz
|
|
deebs |
1036ebd |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
deebs |
1036ebd |
BuildRequires: docbook2X docbook-dtds
|
|
deebs |
1036ebd |
Requires: perl-TimeDate perl-Time-Duration
|
|
deebs |
1036ebd |
# These perl modules add functionality to the ts command, as they are added in eval'd code they are not
|
|
deebs |
1036ebd |
# picked up automatically by rpm.
|
|
deebs |
1036ebd |
|
|
deebs |
1036ebd |
%description
|
|
deebs |
1036ebd |
This is a growing collection of the unix tools that nobody thought
|
|
deebs |
1036ebd |
to write thirty years ago.
|
|
deebs |
1036ebd |
|
|
deebs |
1036ebd |
So far, it includes the following utilities:
|
|
deebs |
1036ebd |
- isutf8: check if a file or standard input is utf-8
|
|
deebs |
1036ebd |
- sponge: soak up standard input and write to a file
|
|
deebs |
1036ebd |
- ts: timestamp standard input
|
|
deebs |
1036ebd |
- vidir: edit a directory in your text editor
|
|
deebs |
1036ebd |
- vipe: insert a text editor into a pipe
|
|
deebs |
1036ebd |
- combine: combine the lines in two files using boolean operations
|
|
deebs |
1036ebd |
- ifdata: get network interface info without parsing ifconfig output
|
|
deebs |
1036ebd |
- pee: tee standard input to pipes
|
|
deebs |
1036ebd |
- zrun: automatically uncompress arguments to command
|
|
deebs |
1036ebd |
- mispipe: pipe two commands, returning the exit status of the first
|
|
deebs |
1036ebd |
- lckdo: execute a program with a lock held
|
|
deebs |
1036ebd |
|
|
deebs |
1036ebd |
%prep
|
|
deebs |
1036ebd |
%setup -qn %{name}
|
|
deebs |
1036ebd |
# the required dtd's are not where this package expects them to be, let's fix that
|
|
deebs |
1036ebd |
sed -r -i "s/\/usr\/share\/xml\/docbook\/schema\/dtd\/4.4\/docbookx\.dtd/\/usr\/share\/sgml\/docbook\/xml-dtd-4.4-1.0-30.1\/docbookx.dtd/" *.docbook
|
|
deebs |
1036ebd |
# the docbook2x-man command is different in fedora, let's fix that too
|
|
deebs |
1036ebd |
sed -r -i "s/docbook2x-man/db2x_docbook2man/" Makefile
|
|
deebs |
1036ebd |
# a slightly different syntax is required here for the man pages to be built successfully
|
|
deebs |
1036ebd |
sed -r -i "s/ rep=\"repeat\"//" *.docbook
|
|
deebs |
1036ebd |
|
|
deebs |
1036ebd |
|
|
deebs |
1036ebd |
%build
|
|
deebs |
1036ebd |
make %{?_smp_mflags} CFLAGS="%{optflags} -DSUPPORT_LH7 -DMKSTEMP"
|
|
deebs |
1036ebd |
|
|
deebs |
1036ebd |
|
|
deebs |
1036ebd |
%install
|
|
deebs |
1036ebd |
rm -rf %{buildroot}
|
|
deebs |
1036ebd |
mkdir -p %{buildroot}%{_bindir}
|
|
deebs |
1036ebd |
install -m0755 isutf8 %{buildroot}%{_bindir}
|
|
deebs |
1036ebd |
install -m0755 sponge %{buildroot}%{_bindir}
|
|
deebs |
1036ebd |
install -m0755 ts %{buildroot}%{_bindir}
|
|
deebs |
1036ebd |
install -m0755 vidir %{buildroot}%{_bindir}
|
|
deebs |
1036ebd |
install -m0755 vipe %{buildroot}%{_bindir}
|
|
deebs |
1036ebd |
install -m0755 combine %{buildroot}%{_bindir}
|
|
deebs |
1036ebd |
install -m0755 ifdata %{buildroot}%{_bindir}
|
|
deebs |
1036ebd |
install -m0755 pee %{buildroot}%{_bindir}
|
|
deebs |
1036ebd |
install -m0755 zrun %{buildroot}%{_bindir}
|
|
deebs |
1036ebd |
install -m0755 mispipe %{buildroot}%{_bindir}
|
|
deebs |
1036ebd |
install -m0755 lckdo %{buildroot}%{_bindir}
|
|
deebs |
1036ebd |
mkdir -p %{buildroot}%{_mandir}/man1
|
|
deebs |
1036ebd |
install -m644 sponge.1 %{buildroot}%{_mandir}/man1/
|
|
deebs |
1036ebd |
install -m644 vidir.1 %{buildroot}%{_mandir}/man1/
|
|
deebs |
1036ebd |
install -m644 vipe.1 %{buildroot}%{_mandir}/man1/
|
|
deebs |
1036ebd |
install -m644 isutf8.1 %{buildroot}%{_mandir}/man1/
|
|
deebs |
1036ebd |
install -m644 ts.1 %{buildroot}%{_mandir}/man1/
|
|
deebs |
1036ebd |
install -m644 combine.1 %{buildroot}%{_mandir}/man1/
|
|
deebs |
1036ebd |
install -m644 ifdata.1 %{buildroot}%{_mandir}/man1/
|
|
deebs |
1036ebd |
install -m644 pee.1 %{buildroot}%{_mandir}/man1/
|
|
deebs |
1036ebd |
install -m644 zrun.1 %{buildroot}%{_mandir}/man1/
|
|
deebs |
1036ebd |
install -m644 mispipe.1 %{buildroot}%{_mandir}/man1/
|
|
deebs |
1036ebd |
install -m644 lckdo.1 %{buildroot}%{_mandir}/man1/
|
|
deebs |
1036ebd |
|
|
deebs |
1036ebd |
%clean
|
|
deebs |
1036ebd |
rm -rf %{buildroot}
|
|
deebs |
1036ebd |
|
|
deebs |
1036ebd |
|
|
deebs |
1036ebd |
%files
|
|
deebs |
1036ebd |
%defattr(-,root,root)
|
|
deebs |
1036ebd |
%doc README COPYING
|
|
deebs |
1036ebd |
%{_mandir}/man1/*
|
|
deebs |
1036ebd |
%{_bindir}/*
|
|
deebs |
1036ebd |
|
|
deebs |
1036ebd |
|
|
deebs |
1036ebd |
%changelog
|
|
deebs |
1036ebd |
* Wed Sep 19 2007 Marc Bradshaw <fedora@marcbradshaw.co.uk> 0.24-2%{?dist}
|
|
deebs |
1036ebd |
- Added optional perl modules to requirements
|
|
deebs |
1036ebd |
|
|
deebs |
1036ebd |
* Tue Sep 18 2007 Marc Bradshaw <fedora@marcbradshaw.co.uk> 0.24-1%{?dist}
|
|
deebs |
1036ebd |
- Version update
|
|
deebs |
1036ebd |
- Fixed specfile issues
|
|
deebs |
1036ebd |
|
|
deebs |
1036ebd |
* Mon Aug 13 2007 Marc Bradshaw <fedora@marcbradshaw.co.uk> 0.20-3%{?dist}
|
|
deebs |
1036ebd |
- Updated license field re new guidelines
|
|
deebs |
1036ebd |
|
|
deebs |
1036ebd |
* Mon Jun 18 2007 Marc Bradshaw <fedora@marcbradshaw.co.uk> 0.20-2%{?dist}
|
|
deebs |
1036ebd |
- optflags fix and extra doc files
|
|
deebs |
1036ebd |
|
|
deebs |
1036ebd |
* Thu May 24 2007 Marc Bradshaw <fedora@marcbradshaw.co.uk> 0.20-1%{?dist}
|
|
deebs |
1036ebd |
- Initial fedora release
|