2012-09-07 08:53:00 +02:00
|
|
|
#
|
|
|
|
# spec file for package dpkg
|
|
|
|
#
|
2023-05-16 16:23:21 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2012-09-07 08:53:00 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-01-14 16:25:08 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-09-07 08:53:00 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: dpkg
|
2023-07-17 14:59:01 +02:00
|
|
|
Version: 1.21.22
|
2012-09-07 08:53:00 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Debian package management system
|
2018-06-28 13:05:57 +02:00
|
|
|
License: GPL-2.0-or-later
|
2012-09-07 08:53:00 +02:00
|
|
|
Group: System/Packages
|
2022-02-21 12:30:06 +01:00
|
|
|
URL: https://tracker.debian.org/pkg/%{name}
|
|
|
|
Source0: https://ftp.debian.org/debian/pool/main/d/dpkg/%{name}_%{version}.tar.xz
|
2012-09-07 08:53:00 +02:00
|
|
|
Source3: sensible-editor
|
|
|
|
# PATCH-FIX-OPENSUSE replace debian with opensuse. replace macros. update-alternatives temp directories' path and name from dpkg* to rpm*.
|
2015-03-01 12:01:24 +01:00
|
|
|
Patch1: update-alternatives-suse.patch
|
2017-12-11 10:54:46 +01:00
|
|
|
# PATCH-FIX-SUSE: tar of Leap 42.{2,3} does not recognize --sort=name, --clamp-mtime options
|
|
|
|
Patch2: drop-tar-option.patch
|
2020-08-25 16:53:21 +02:00
|
|
|
Patch3: ncurses-fix.patch
|
2023-07-20 13:26:56 +02:00
|
|
|
Patch4: openssl.patch
|
2016-09-07 14:46:37 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2012-09-07 08:53:00 +02:00
|
|
|
BuildRequires: gcc-c++
|
2018-01-16 12:17:17 +01:00
|
|
|
BuildRequires: gpg2
|
2015-04-01 15:01:26 +02:00
|
|
|
BuildRequires: libbz2-devel
|
2012-09-29 15:16:14 +02:00
|
|
|
BuildRequires: libselinux-devel
|
2016-09-07 14:46:37 +02:00
|
|
|
BuildRequires: libtool
|
2012-09-07 08:53:00 +02:00
|
|
|
BuildRequires: ncurses-devel
|
2023-07-20 13:26:56 +02:00
|
|
|
BuildRequires: openssl-devel
|
2023-07-20 13:36:36 +02:00
|
|
|
BuildRequires: perl >= 5.28.1
|
2021-06-07 15:39:12 +02:00
|
|
|
BuildRequires: po4a >= 0.59
|
2015-04-01 15:01:26 +02:00
|
|
|
BuildRequires: update-alternatives
|
2017-11-08 17:27:49 +01:00
|
|
|
BuildRequires: xz-devel
|
2012-09-07 08:53:00 +02:00
|
|
|
BuildRequires: zlib-devel
|
2013-03-27 09:32:15 +01:00
|
|
|
BuildRequires: perl(Date::Parse)
|
|
|
|
BuildRequires: perl(IO::String)
|
2017-12-13 18:31:44 +01:00
|
|
|
BuildRequires: perl(Test::Pod)
|
|
|
|
BuildRequires: perl(Test::Strict)
|
2012-09-07 08:53:00 +02:00
|
|
|
Requires: cpio
|
|
|
|
Requires: make
|
|
|
|
Requires: patch
|
2015-04-01 15:01:26 +02:00
|
|
|
Requires: update-alternatives
|
|
|
|
Requires: perl(Date::Parse)
|
2016-05-31 13:48:28 +02:00
|
|
|
Requires(post): coreutils
|
2015-04-01 15:01:26 +02:00
|
|
|
Recommends: perl(File::FcntlLock)
|
2012-09-07 08:53:00 +02:00
|
|
|
Provides: deb = %{version}
|
|
|
|
Obsoletes: deb < %{version}
|
|
|
|
Provides: dpkg-dev = %{version}
|
|
|
|
Provides: dpkg-doc = %{version}
|
|
|
|
Provides: dselect = %{version}
|
2017-12-13 18:31:44 +01:00
|
|
|
%{perl_requires}
|
2012-09-07 08:53:00 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains tools for working with Debian packages. It makes
|
|
|
|
it possible to create and extract Debian packages. If Alien is
|
|
|
|
installed, the packages can be converted to RPMs.
|
|
|
|
|
|
|
|
This package contains the following Debian packages: dpkg, dselect,
|
|
|
|
dpkg-doc, dpkg-dev.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for dpkg
|
|
|
|
Group: Development/Libraries/C and C++
|
2015-04-01 15:01:26 +02:00
|
|
|
Requires: %{name} = %{version}
|
2017-11-08 17:27:49 +01:00
|
|
|
Requires: libmd-devel
|
2012-09-07 08:53:00 +02:00
|
|
|
Provides: deb-devel = %{version}
|
|
|
|
Obsoletes: deb-devel < %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Libraries and header files for dpkg.
|
|
|
|
|
2015-04-01 15:01:26 +02:00
|
|
|
%lang_package
|
2012-09-07 08:53:00 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch1 -p1
|
2017-12-11 10:54:46 +01:00
|
|
|
%if 0%{?suse_version} == 1315
|
|
|
|
%patch2 -p1
|
|
|
|
%endif
|
2020-08-25 16:53:21 +02:00
|
|
|
%patch3 -p1
|
2023-07-20 13:26:56 +02:00
|
|
|
%patch4 -p1
|
2012-09-07 08:53:00 +02:00
|
|
|
|
|
|
|
%build
|
2019-08-02 09:32:33 +02:00
|
|
|
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
2016-09-07 14:46:37 +02:00
|
|
|
autoreconf -fvi
|
2022-02-21 12:30:06 +01:00
|
|
|
export CFLAGS="%{?build_cflags:%build_cflags}%{?!build_cflags:%optflags}"
|
2015-04-01 15:01:26 +02:00
|
|
|
%configure \
|
|
|
|
--disable-silent-rules \
|
2018-01-16 12:17:17 +01:00
|
|
|
--with-libselinux \
|
2015-04-01 15:01:26 +02:00
|
|
|
--localstatedir=%{_localstatedir}/lib \
|
2023-07-17 14:59:01 +02:00
|
|
|
--with-admindir=%{_localstatedir}/lib/dpkg \
|
|
|
|
--docdir=%{_docdir}/%{name}
|
2012-09-07 08:53:00 +02:00
|
|
|
|
|
|
|
# configure somehow does not detect architecture correctly in OBS (bnc#469337), so
|
|
|
|
# let's do an awful hack and fix it in config.h
|
|
|
|
# XXX: who knows if this works on s390? :)
|
|
|
|
|
|
|
|
%define debarch %{_arch}
|
|
|
|
%ifarch x86_64
|
|
|
|
%define debarch amd64
|
|
|
|
%endif
|
2016-09-07 14:46:37 +02:00
|
|
|
%ifarch %{ix86}
|
2012-09-07 08:53:00 +02:00
|
|
|
%define debarch i386
|
|
|
|
%endif
|
|
|
|
%ifarch ppc powerpc
|
|
|
|
%define debarch powerpc
|
|
|
|
%endif
|
|
|
|
%ifarch ppc64 powerpc64
|
|
|
|
%define debarch ppc64
|
|
|
|
%endif
|
|
|
|
sed -i 's/^#define ARCHITECTURE ""/#define ARCHITECTURE "%{debarch}"/' config.h
|
|
|
|
|
2022-02-21 12:30:06 +01:00
|
|
|
%make_build
|
2012-09-07 08:53:00 +02:00
|
|
|
|
|
|
|
%install
|
2018-01-16 12:17:17 +01:00
|
|
|
%make_install
|
2012-09-07 08:53:00 +02:00
|
|
|
|
|
|
|
# remove update-alternatives stuff (included in separate package)
|
|
|
|
rm -rf %{buildroot}%{_sysconfdir}/alternatives
|
|
|
|
rm -rf %{buildroot}%{_localstatedir}/lib/dpkg/alternatives
|
|
|
|
rm -rf %{buildroot}%{_bindir}/update-alternatives
|
|
|
|
rm -rf %{buildroot}%{_sbindir}/update-alternatives
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man8/update-alternatives.8
|
|
|
|
rm -rf %{buildroot}%{_mandir}/*/man8/update-alternatives.8
|
2018-01-16 12:17:17 +01:00
|
|
|
rm -rf %{buildroot}%{_datadir}/polkit-1/actions/org.dpkg.pkexec.update-alternatives.policy
|
2012-09-07 08:53:00 +02:00
|
|
|
|
|
|
|
# locales
|
2015-04-01 15:01:26 +02:00
|
|
|
%find_lang %{name}
|
|
|
|
%find_lang dselect
|
|
|
|
%find_lang dpkg-dev
|
2012-09-07 08:53:00 +02:00
|
|
|
cat dselect.lang dpkg-dev.lang >> %{name}.lang
|
|
|
|
|
|
|
|
# extras
|
|
|
|
install -m 755 %{SOURCE3} %{buildroot}%{_bindir}
|
|
|
|
|
2013-03-27 09:32:15 +01:00
|
|
|
%check
|
2022-02-21 12:30:06 +01:00
|
|
|
%make_build check
|
2013-03-27 09:32:15 +01:00
|
|
|
|
2012-09-07 08:53:00 +02:00
|
|
|
%post
|
|
|
|
cd %{_localstatedir}/lib/dpkg
|
|
|
|
for f in diversions statoverride status ; do
|
|
|
|
[ ! -f $f ] && touch $f
|
|
|
|
done
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
2017-12-13 18:31:44 +01:00
|
|
|
%{_mandir}/??/man*/*
|
2012-09-07 08:53:00 +02:00
|
|
|
|
|
|
|
%files
|
2019-01-14 16:25:08 +01:00
|
|
|
%license COPYING
|
2023-07-17 14:59:01 +02:00
|
|
|
%{_docdir}/%{name}
|
2016-09-07 14:46:37 +02:00
|
|
|
%{_mandir}/man*/*
|
2021-06-10 12:39:06 +02:00
|
|
|
%exclude %{_mandir}/man*/update-alternatives*
|
2012-09-07 08:53:00 +02:00
|
|
|
%dir %{_sysconfdir}/dpkg
|
|
|
|
%config(noreplace) %{_sysconfdir}/dpkg/*
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_sbindir}/*
|
2018-01-16 12:17:17 +01:00
|
|
|
%{_libexecdir}/dpkg
|
2012-09-07 08:53:00 +02:00
|
|
|
%{_datadir}/dpkg
|
2022-02-21 12:30:06 +01:00
|
|
|
%dir %{_datadir}/zsh
|
|
|
|
%dir %{_datadir}/zsh/vendor-completions
|
|
|
|
%{_datadir}/zsh/vendor-completions/_dpkg-parsechangelog
|
2012-09-07 08:53:00 +02:00
|
|
|
%{_localstatedir}/lib/dpkg
|
|
|
|
%{perl_vendorlib}/Dpkg
|
|
|
|
%{perl_vendorlib}/Dpkg.pm
|
2015-03-01 12:01:24 +01:00
|
|
|
%{perl_vendorlib}/Dselect
|
2012-09-07 08:53:00 +02:00
|
|
|
|
|
|
|
%files devel
|
2021-06-07 15:39:12 +02:00
|
|
|
%{_datadir}/aclocal/*.m4
|
2012-09-07 08:53:00 +02:00
|
|
|
%{_libdir}/libdpkg.a
|
2015-03-01 12:01:24 +01:00
|
|
|
%{_libdir}/libdpkg.la
|
2012-09-07 08:53:00 +02:00
|
|
|
%{_libdir}/pkgconfig/libdpkg.pc
|
|
|
|
%{_includedir}/dpkg
|
|
|
|
|
|
|
|
%changelog
|