Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1584234
 поиск   регистрация   авторизация 
 
Группа :: Разработка/Прочее
Пакет: rpmwrap

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

# vim: set ft=spec: -*- rpm-spec -*-
%def_with M24

%if_with M24
%define _release alt0.M24.1
%else
%define _release alt1
%endif

Name: rpmwrap
Version: 0.20060510
Release: %_release

Summary: Simple rpm/rpmbuld wrapper and macrofile substituter
Group: Development/Other
License: Public domain

Packager: Sir Raorn <raorn at altlinux.ru>

BuildArch: noarch

PreReq: rpm rpm-build

Source: %name-%version.tar.bz2

%description
%name is a simple rpm/rpmbuld wrapper that feeds rpm/rpmbuild with
.rpmmacros-like file depending on current working directory.

%prep
%setup -q

%build
cat <<EOF > rpmwraprc
RPM_PREFIX="%_bindir"
RPM="\$RPM_PREFIX/rpm"
macrofile=".rpmwrapmacros"
allow_prefix=
EOF

%install
%__mkdir_p %buildroot{%_bindir,%_sysconfdir/rpm}
%__install -p -m755 rpmwrap %buildroot%_bindir/%name
%__install -p -m644 rpmwraprc %buildroot%_sysconfdir/rpm/%{name}rc

%__ln_s %name %buildroot%_bindir/%name-rpm
%__ln_s %name %buildroot%_bindir/%name-rpmbuild
%__ln_s %name %buildroot%_bindir/%name-rpmquery

%files
%doc *-sample
%config(noreplace) %_sysconfdir/rpm/%{name}rc
%_bindir/%name
%_bindir/%name-*

%changelog

Полный changelog можно просмотреть здесь

 
design & coding: Vladimir Lettiev aka crux © 2004-2005