Group :: Text tools
RPM: rs
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Name: rs
Version: 11.0
Release: alt1
Source: rs-11.0.tar
Url: http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.bin/%name
Packager: Fr. Br. George <george at altlinux.ru>
Summary: Reshape a data array
License: BSD
Group: Text tools
# svn checkout svn://svn.freebsd.org/base/head/usr.bin/rs
%description
The rs utility reads the standard input, interpreting each line as a row
of blank-separated entries in an array, transforms the array according
to the options, and writes it on the standard output. With no arguments
it transforms stream input into a columnar format convenient for
terminal viewing.
%prep
%setup
# getline double definition
sed -i 's/getline/get_line/g' %name.c
%build
cc -D'__FBSDID(x)=' -O2 %name.c -o %name
%install
mkdir -p %buildroot%_bindir %buildroot%_man1dir
install -s -m755 %name %buildroot%_bindir/
install %name.1 %buildroot%_man1dir/
%files
%_bindir/%name
%_man1dir/%name.*
%changelog
…
Full changelog you can see here
Version: 11.0
Release: alt1
Source: rs-11.0.tar
Url: http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.bin/%name
Packager: Fr. Br. George <george at altlinux.ru>
Summary: Reshape a data array
License: BSD
Group: Text tools
# svn checkout svn://svn.freebsd.org/base/head/usr.bin/rs
%description
The rs utility reads the standard input, interpreting each line as a row
of blank-separated entries in an array, transforms the array according
to the options, and writes it on the standard output. With no arguments
it transforms stream input into a columnar format convenient for
terminal viewing.
%prep
%setup
# getline double definition
sed -i 's/getline/get_line/g' %name.c
%build
cc -D'__FBSDID(x)=' -O2 %name.c -o %name
%install
mkdir -p %buildroot%_bindir %buildroot%_man1dir
install -s -m755 %name %buildroot%_bindir/
install %name.1 %buildroot%_man1dir/
%files
%_bindir/%name
%_man1dir/%name.*
%changelog
…
Full changelog you can see here