Sisyphus repository
Last update: 17 september 2021 | SRPMs: 17378 | Visits: 21889700
en ru br
ALT Linux repos
S:0.02-alt2

Group :: File tools
RPM: argwrapper

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# TODO generate version

Name: argwrapper
Version: 0.02
Release: alt2

Summary: Run a binary with environment and arguments sewed into wrapper name
License: GPLv3
Group: File tools

Url: http://git.altlinux.org/people/george/packages/argwrapper.git
Source: %name-%version.tar

BuildRequires: txt2man glibc-devel-static

%description
When called without parameters, argwrapper assumes it's a wrapper call.
It parses its zero argument (argv[0], usually binary file name) and
splits it into series of environment variables assignments, wrapped
program name and command line arguments.

When called with some command line parameters, argwrapper assumes
it's a filename generator call. It selects a character for argument
separator, a replacement characters for '/' path separator and other
optional chars, if any. It's guaranteed that none of the characters
selected is appeared within original command line. Then '/' and optional
chars are replaced with corresponded replacements and all the arguments
are concatenated with argument separator.

%prep
%setup

%build
%make release

%install
install -D %name %buildroot%_bindir/%name
install -D %name.1 %buildroot%_man1dir/%name.1

%check
make check

%files
%_bindir/%name
%_man1dir/%name.*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin