Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1473252
 поиск   регистрация   авторизация 
 
Группа :: Система/Настройка/Пакеты
Пакет: aptitude

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

# vim: set ft=spec: -*- rpm-spec -*-
# $Id: aptitude,v 1.11.2.1 2005/01/31 09:09:13 raorn Exp $

%define ver 0.3.1
%define debver 3

Name: aptitude
Version: %{ver}deb%debver
Release: alt0.M24.1

Summary: Terminal-based apt frontend
Summary(ru_RU.KOI8-R): Управление APT с помощью текстового меню
Group: System/Configuration/Packaging
License: GPL
Url: http://www.debian.org/Packages/unstable/admin/%name.html
Packager: Sir Raorn <raorn at altlinux.ru>

Source: ftp://ftp.debian.org/debian/pool/main/a/%name/%{name}_%{ver}.orig.tar.gz

Patch: ftp://ftp.debian.org/debian/pool/main/a/%name/%{name}_%{ver}-%debver.diff.gz
Patch1: %name-0.3.1-alt-cnc-rpm.patch
Patch2: %name-0.2.13-alt-default-group-policy.patch
Patch3: %name-0.2.15.8-alt-fixes.patch
Patch4: %name-0.3.1-alt-updates-component.patch

Requires: %{get_dep libapt}

BuildPreReq: libapt-devel >= 0.5.15cnc5-alt1

# Automatically added by buildreq on Sun Jan 30 2005

BuildRequires: automake_1.4 docbook-dtds docbook-style-xsl gcc-c++ libapt-devel libncurses-devel libpopt-devel librpm-devel libsigc++2.0-devel libstdc++-devel libtinfo-devel pkgconfig xml-common xsltproc

%set_autoconf_version 2.5
%set_automake_version 1.4

%description
aptitude is a terminal-based apt frontend with a number of useful
features, including: a mutt-like syntax for matching packages in a
flexible manner, dselect-like persistence of user actions, the
ability to retrieve and display the Debian changelog of most
packages, and extreme flexibility and customization.

aptitude is also Y2K-compliant, non-fattening, naturally cleansing,
and housebroken.

%package doc
Summary: English manual for aptitude, a terminal-based apt frontend
Group: Books/Computer books
Conflicts: %name < %version-%release
Conflicts: %name > %version-%release

%description doc
aptitude is a terminal-based apt frontend.  This package contains the
English version of the aptitude user's manual in HTML format.

%prep
%setup -q -n %name-%ver
%patch -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

# Debian suxx...

%__subst 's,/usr/share/xml/docbook/stylesheet/nwalsh/,http://docbook.sourceforge.net/release/xsl/current/,' doc/*.xsl
%__subst 's,ln -s /usr/share/xml/docbook/stylesheet/nwalsh/images/,cp -p /usr/share/xml/docbook/xsl-stylesheets/images/,' doc/*/Makefile.am

%build
%add_optflags -fno-exceptions
%__aclocal
%__autoheader
%__automake
%__autoconf

%configure \
 --disable-werror \
 --disable-docs
%make_build
%make_build -C doc/en

%install
%__mkdir_p %buildroot%_localstatedir/%name
%make_install DESTDIR=%buildroot install
%__rm -rf %buildroot%_mandir

%make_install DESTDIR=%buildroot -C doc/en install-man

%find_lang %name

%files -f %name.lang
%doc AUTHORS ChangeLog FAQ INSTALL NEWS README* TODO %name-hackers-guide.txt src/generic/README.hier
%_bindir/*
%_datadir/%name
%_man8dir/%name.8*
%_localstatedir/*

%files doc
%doc doc/en/output-html/*

%changelog

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

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