Sisyphus repository
Last update: 22 october 2017 | SRPMs: 17935 | Visits: 10216052
en ru br
ALT Linux repos
S:1.18.7-alt1
5.0: 1.14.7-alt2
4.1: 1.14.7-alt2
4.0: 1.13.11-alt0.1
3.0: 1.6.15-alt6

Group :: System/Configuration/Packaging
RPM: dpkg

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: dpkg
Version: 1.14.7
Release: alt2

Summary: Package maintenance system for Debian Linux

Packager: Vitaly Lipatov <lav at altlinux.ru>

License: GPL
Group: System/Configuration/Packaging
Url: http://www.dpkg.org/

Source: ftp://ftp.debian.org/debian/pool/main/d/%name/%{name}_%version.tar.bz2
Patch: %name-no-debiandoc.patch
Patch1: %name-opt.patch
Patch2: %name-acfix.patch

# hack to avoid find-perl-provides bug

Provides: perl(controllib.pl)

# Automatically added by buildreq on Thu Sep 07 2006

BuildRequires: bzlib-devel gcc-c++ libps-devel linux-libc-headers perl-Encode-JP perl-Locale-gettext perl-Text-CharWidth perl-Text-WrapI18N po4a zlib-devel

%description
This package contains the programs which handle the installation and
removal of packages in Debian Linux distributions.

The primary interface for the dpkg suite is the `dselect' program; a
more low-level and less user-friendly interface is available in the
form of the `dpkg' command.

# this doesn't work

%add_findprov_lib_path %_libdir/%name

%prep
%setup -q
#%patch0 -p1
#%patch1 -p1
#%patch2 -p1

# another hack to avoid find-perl-provides bug

%__subst 's,\(us\)e\( file\),\1\2,g' scripts/dpkg-scansources*
# do not build utils
%__subst 's, utils,,' Makefile.in

%build
%configure \
--enable-shared \
--without-dselect \
--with-admindir=%_localstatedir/%name
%make

%install
%__install -d %buildroot%_docdir/%name
%make_install DESTDIR=%buildroot \
gnulocaledir=%buildroot%_datadir/locale install
#%__gzip -9nf %buildroot%_docdir/%name/*

%find_lang %name --with-man --output=%name.lang deb deb-old install-info update-alternatives update-rc dselect 822-date dpkg-architecture dpkg-checkbuilddeps dpkg-name dpkg-query dpkg-scanpackages dpkg-scansources dpkg-source deb-control dpkg-divert dpkg-statoverride dpkg-split dpkg.cfg dselect.cfg dpkg-gencontrol
%find_lang %name-dev --with-man --output=%name-dev.lang
cat %name-dev.lang >>%name.lang

%files -f %name.lang
#%doc doc/database-structure.fig doc/internals.sgml
%_defaultdocdir/%name
%_bindir/*
%_sbindir/*dpkg*
%_datadir/%name/
%_libdir/%name/
%_localstatedir/%name
%perl_vendor_privlib/*
#%_man1dir/dpkg*
#%_man5dir/deb*
%exclude %_sbindir/install-info
%exclude %_mandir/man?/*info*
%exclude %_mandir/man?/*alternatives*
%exclude %_mandir/man?/*update*

%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