deebs d8a4059
Name:           moreutils
deebs c571921
Version:        0.30
deebs c571921
Release:        1%{?dist}
deebs d8a4059
Summary:        Additional unix utilities
deebs d8a4059
Group:          Applications/System
deebs d8a4059
License:        GPLv2
deebs d8a4059
URL:            http://kitenet.net/~joey/code/moreutils/
deebs d8a4059
Source0:        http://ftp.debian.org/debian/pool/main/m/%{name}/%{name}_%{version}.tar.gz
deebs d8a4059
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
deebs 8d4036c
BuildRequires:  docbook2X docbook-dtds libxml2
deebs d8a4059
Requires:       perl-TimeDate perl-Time-Duration
deebs d8a4059
# These perl modules add functionality to the ts command, as they are added in eval'd code they are not
deebs d8a4059
# picked up automatically by rpm.
deebs d8a4059
deebs d8a4059
%description
deebs d8a4059
 This is a growing collection of the unix tools that nobody thought
deebs d8a4059
 to write thirty years ago.
deebs d8a4059
deebs d8a4059
 So far, it includes the following utilities:
deebs d8a4059
  - isutf8: check if a file or standard input is utf-8
deebs d8a4059
  - sponge: soak up standard input and write to a file
deebs d8a4059
  - ts: timestamp standard input
deebs d8a4059
  - vidir: edit a directory in your text editor
deebs d8a4059
  - vipe: insert a text editor into a pipe
deebs d8a4059
  - combine: combine the lines in two files using boolean operations
deebs d8a4059
  - ifdata: get network interface info without parsing ifconfig output
deebs d8a4059
  - pee: tee standard input to pipes
deebs d8a4059
  - zrun: automatically uncompress arguments to command
deebs d8a4059
  - mispipe: pipe two commands, returning the exit status of the first
deebs d8a4059
  - lckdo: execute a program with a lock held
deebs c571921
  - ifne: run a program if the standard input is not empty
deebs d8a4059
deebs d8a4059
%prep
deebs d8a4059
%setup -qn %{name}
deebs d8a4059
# the required dtd's are not where this package expects them to be, let's fix that
deebs 8d4036c
DTDFILE=`xmlcatalog /usr/share/sgml/docbook/xmlcatalog "-//OASIS//DTD DocBook XML V4.4//EN"`
deebs 8d4036c
sed -r -i "s|/usr/share/xml/docbook/schema/dtd/4.4/docbookx.dtd|$DTDFILE|" *.docbook
deebs d8a4059
# the docbook2x-man command is different in fedora, let's fix that too
deebs 8d4036c
sed -r -i "s|docbook2x-man|db2x_docbook2man|" Makefile
deebs d8a4059
# a slightly different syntax is required here for the man pages to be built successfully
deebs 8d4036c
sed -r -i "s| rep=\"repeat\"||" *.docbook
deebs d8a4059
deebs d8a4059
deebs d8a4059
%build
deebs d8a4059
make %{?_smp_mflags} CFLAGS="%{optflags} -DSUPPORT_LH7 -DMKSTEMP"
deebs d8a4059
deebs d8a4059
deebs d8a4059
%install
deebs d8a4059
rm -rf %{buildroot}
deebs d8a4059
mkdir -p %{buildroot}%{_bindir}
deebs d8a4059
install -m0755 isutf8 %{buildroot}%{_bindir}
deebs d8a4059
install -m0755 sponge %{buildroot}%{_bindir}
deebs d8a4059
install -m0755 ts %{buildroot}%{_bindir}
deebs d8a4059
install -m0755 vidir %{buildroot}%{_bindir}
deebs d8a4059
install -m0755 vipe %{buildroot}%{_bindir}
deebs d8a4059
install -m0755 combine %{buildroot}%{_bindir}
deebs d8a4059
install -m0755 ifdata %{buildroot}%{_bindir}
deebs d8a4059
install -m0755 pee %{buildroot}%{_bindir}
deebs d8a4059
install -m0755 zrun %{buildroot}%{_bindir}
deebs d8a4059
install -m0755 mispipe %{buildroot}%{_bindir}
deebs d8a4059
install -m0755 lckdo %{buildroot}%{_bindir}
deebs c571921
install -m0755 ifne %{buildroot}%{_bindir}
deebs d8a4059
mkdir -p %{buildroot}%{_mandir}/man1
deebs d8a4059
install -m644 sponge.1 %{buildroot}%{_mandir}/man1/
deebs d8a4059
install -m644 vidir.1 %{buildroot}%{_mandir}/man1/
deebs d8a4059
install -m644 vipe.1 %{buildroot}%{_mandir}/man1/
deebs d8a4059
install -m644 isutf8.1 %{buildroot}%{_mandir}/man1/
deebs d8a4059
install -m644 ts.1 %{buildroot}%{_mandir}/man1/
deebs d8a4059
install -m644 combine.1 %{buildroot}%{_mandir}/man1/
deebs d8a4059
install -m644 ifdata.1 %{buildroot}%{_mandir}/man1/
deebs d8a4059
install -m644 pee.1 %{buildroot}%{_mandir}/man1/
deebs d8a4059
install -m644 zrun.1 %{buildroot}%{_mandir}/man1/
deebs d8a4059
install -m644 mispipe.1 %{buildroot}%{_mandir}/man1/
deebs d8a4059
install -m644 lckdo.1 %{buildroot}%{_mandir}/man1/
deebs c571921
install -m644 ifne.1 %{buildroot}%{_mandir}/man1/
deebs d8a4059
deebs d8a4059
%clean
deebs d8a4059
rm -rf %{buildroot}
deebs d8a4059
deebs d8a4059
deebs d8a4059
%files
deebs d8a4059
%defattr(-,root,root)
deebs d8a4059
%doc README COPYING
deebs d8a4059
%{_mandir}/man1/*
deebs d8a4059
%{_bindir}/*
deebs d8a4059
deebs d8a4059
deebs d8a4059
%changelog
deebs c571921
* Tue May 20 2008 Marc Bradshaw <fedora@marcbradshaw.co.uk> 0.30-1%{?dist}
deebs c571921
- new upstream version 0.29 released with these changes
deebs c571921
- * Add ifne, contributed by Javier Merino.
deebs c571921
- * sponge, ifne: Ensure that suspending/resuming doesn't result in partial writes of the data, by using fwrite() rather than write().
deebs c571921
- * sponge: Handle large data sizes by using a temp file rather than by consuming arbitrary amounts of memory. Patch by Brock Noland.
deebs c571921
- * ts: Allow both -r and a format to be specified, to parse dates and output in a specified format.
deebs c571921
- * ts: Fix bug in timezone regexp.
deebs c571921
- New upstream version 0.30 released with these changes
deebs c571921
- * debhelper v7; rules file minimisation
deebs c571921
- * Use DESTDIR instead of PREFIX.
deebs c571921
- * Add a DOCBOOK2XMAN setting. (Greg KH)
deebs c571921
- * ifne: Add -n which makes it run the command if stdin is empty.
deebs c571921
- * ifne: If no command is specified, print usage information.
deebs c571921
deebs cfc1bea
* Wed Feb 13 2008 Marc Bradshaw <fedora@marcbradshaw.co.uk> 0.28-3%{?dist}
deebs cfc1bea
- fixed typo in changelog
deebs cfc1bea
deebs cfc1bea
* Wed Feb 13 2008 Marc Bradshaw <fedora@marcbradshaw.co.uk> 0.28-2%{?dist}
deebs cfc1bea
- fixed typo in changelog
deebs cfc1bea
deebs cfc1bea
* Wed Feb 13 2008 Marc Bradshaw <fedora@marcbradshaw.co.uk> 0.28-1%{?dist}
deebs 0fc7d11
- New upstream version released with these changes
deebs 0fc7d11
- vidir: Applied patch from Stefan Fritsch
deebs 0fc7d11
- * Check for control characters (especially newlines) in filenames and error out, since this can greatly confuse the editor or vidir.
deebs 0fc7d11
- * If the source of a rename does not exist (and thus the rename will fail anyway), vidir should not move an existing target file to a tmpfile.
deebs 0fc7d11
- * If a directory is renamed, vidir should take that into account when renaming files in this directory.
deebs 0fc7d11
- * If a directory name is passed as name/ to vidir, vidir should not add second slash after the name.
deebs 0fc7d11
- vidir: Add support for unlinking directories.
deebs 0fc7d11
- Add example to man page about recursive modification of directories.
deebs 0fc7d11
deebs 0fc7d11
- isutf8: Correct inverted exit code when passed a file to check.
deebs 0fc7d11
deebs 8d4036c
* Wed Dec 12 2007 Marc Bradshaw <fedora@marcbradshaw.co.uk> 0.26-1%{?dist}
deebs 8d4036c
- Docboox dtd path will now be found using xmlcatalog.
deebs 8d4036c
- New upstream version released with these changes
deebs 8d4036c
- isutf8: Correct inverted exit code when passed a file to check.
deebs 8d4036c
deebs d0fd723
* Wed Nov 14 2007 Marc Bradshaw <fedora@marcbradshaw.co.uk> 0.25-1%{?dist}
deebs d0fd723
- New upstream version
deebs d0fd723
deebs d8a4059
* Wed Sep 19 2007 Marc Bradshaw <fedora@marcbradshaw.co.uk> 0.24-2%{?dist}
deebs d8a4059
- Added optional perl modules to requirements
deebs d8a4059
deebs d8a4059
* Tue Sep 18 2007 Marc Bradshaw <fedora@marcbradshaw.co.uk> 0.24-1%{?dist}
deebs d8a4059
- Version update
deebs d8a4059
- Fixed specfile issues
deebs d8a4059
deebs d8a4059
* Mon Aug 13 2007 Marc Bradshaw <fedora@marcbradshaw.co.uk> 0.20-3%{?dist}
deebs d8a4059
- Updated license field re new guidelines
deebs d8a4059
deebs d8a4059
* Mon Jun 18 2007 Marc Bradshaw <fedora@marcbradshaw.co.uk> 0.20-2%{?dist}
deebs d8a4059
- optflags fix and extra doc files
deebs d8a4059
deebs d8a4059
* Thu May 24 2007 Marc Bradshaw <fedora@marcbradshaw.co.uk> 0.20-1%{?dist}
deebs d8a4059
- Initial fedora release