Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 36612545
en ru br
ALT Linux repos
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 

## define _requires_exceptions perl(\\|perl(file)
%def_without extbuild

Name: dpkg
Version: 1.21.22
Release: alt2

Summary: Package maintenance system for Debian Linux

License: GPLv2+
Group: System/Configuration/Packaging

Patch: dpkg-ALT-e2k-cputable.patch

# boostrap notes:

# 1) build dep loop via perl-Dpkg (just add noarch package);
# 2) dpkg stub is really needed (for abitable, cputable, ostable,
#    triplettable and --print-architecture); DIY or ask mike at

%{?!_with_bootstrap:BuildRequires: po4a}

BuildRequires: perl-podlators perl-Storable perl-TimeDate perl-File-FcntlLock perl-parent perl-Time-Piece

BuildRequires: zlib-devel liblzma-devel libmd-devel libzstd-devel

Requires: perl-Digest-SHA

This is dpkg, Debian's package maintenance system.

%package -n perl-Dpkg
Summary: Package maintenance system for Debian Linux
Group: Development/Perl
BuildArch: noarch

%description -n perl-Dpkg
This module provides dpkg functionalities.

%set_perl_req_method relaxed
%patch -p2

%configure \
   --disable-update-alternatives \
   --disable-start-stop-daemon \
   --disable-dselect \
   --with-admindir=/var/lib/%name \



rm -f %buildroot%_man7dir/deb-version.*

# cleanup

%if_without extbuild
rm -rf %buildroot%_mandir/??/
rm -rf %buildroot%_includedir/dpkg/*
rm -rf %buildroot%_libdir/libdpkg.a
rm -rf %buildroot/usr/share/aclocal/
rm -rf %buildroot%_libdir/pkgconfig/libdpkg.pc

# remove unpacked files

rm -v %buildroot/usr/lib/dpkg/dpkg-db-backup
rm -v %buildroot/usr/sbin/dpkg-fsys-usrunmess
rm -rf %buildroot/usr/share/doc/dpkg/
#rm -v %buildroot%_man8dir/dpkg-fsys-usrunmess.8.*
rm -v %buildroot/usr/share/zsh/vendor-completions/_dpkg-parsechangelog

%find_lang %name
%find_lang dpkg-dev
cat dpkg-dev.lang >> %name.lang

%files -f dpkg.lang
%attr(0755,root,root) %_bindir/dpkg*
%dir %_datadir/%name
%dir %_datadir/%name/sh
%dir /var/lib/%name/
%dir %_sysconfdir/%name
%if_with extbuild
%lang(pl) %_mandir/pl/man?/*
%lang(de) %_mandir/de/man?/*
%lang(ja) %_mandir/ja/man?/*
%lang(sv) %_mandir/sv/man?/*
%lang(fr) %_mandir/fr/man?/*
%lang(hu) %_mandir/hu/man?/*
%lang(es) %_mandir/es/man?/*
%lang(it) %_mandir/it/man?/*

%files -n perl-Dpkg


Full changelog you can see here

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