Репозиторий Sisyphus
Последнее обновление: 9 августа 2020 | Пакетов: 17677 | Посещений: 19028979
en ru br
Репозитории ALT

Группа :: Система/Настройка/Пакеты
Пакет: apf

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

Name: apf
Version: 0.3
Release: alt2
Summary: Search for a package containing given file
Group: System/Configuration/Packaging
License: WTFPL
Source: %name-%version.tar.gz
Requires: perl rsync
Provides: apt-file
Obsoletes: apt-file
BuildArch: noarch

# Most build environments safely override this

BuildRoot: %{_tmppath}/%{name}-%{version}-root

%description
%name is a command line tool to search for a package containing
given file or to list the contents of a package available from
repository

%package update
Summary: cron job for daily updates
Group: System/Configuration/Packaging
Requires: %name

%description update
%summary

%prep
%setup

%install
rm -rf %buildroot
umask 022
mkdir -p %buildroot%_bindir \
%buildroot%_man1dir \
%buildroot%_cachedir/%name \
%buildroot%_sysconfdir/%name \
%buildroot%_sysconfdir/cron.daily \
;
install -m 644 %name.1 %buildroot%_man1dir/
install -m 644 %name.conf %buildroot%_sysconfdir/%name/
install -m 755 %name.update %buildroot%_sysconfdir/cron.daily/
install -m 755 %name %buildroot%_bindir/
sed -i -re 's,\./,%_sysconfdir/%name/,g' %buildroot%_bindir/%name
sed -i -re 's,"\.","%_cachedir/%name",g' \
%buildroot%_sysconfdir/%name/%name.conf

%clean
# Not necessary, but just in case of manual build
rm -rf %buildroot

%files
%defattr(-,root,root)
%_bindir/%name
%_man1dir/%name.*
%dir %_cachedir/%name
%dir %_sysconfdir/%name
%config(noreplace) %_sysconfdir/%name/%{name}.conf

%files update
%_sysconfdir/cron.daily/%name.update

%changelog

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

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin