X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=dpkg.spec;h=cee0a0f41abd7ad1756c58f3926cc8aa4a46f0bf;hb=12b70840e6bab3ae4b44ff386259cf037cd3b1af;hp=18bfbd648c0261f7bf2c27ffece55ebdd896d28f;hpb=99403999a78e7176aae9b0f106235ba3aa1967e8;p=packages%2Fdpkg.git diff --git a/dpkg.spec b/dpkg.spec index 18bfbd6..cee0a0f 100644 --- a/dpkg.spec +++ b/dpkg.spec @@ -1,24 +1,35 @@ +# +# Conditional build: +%bcond_with alternatives # build alternatives package + Summary: Package maintenance system for Debian Linux Summary(pl.UTF-8): Program do obsługi pakietów Debiana Name: dpkg -Version: 1.15.8.8 +Version: 1.18.10 Release: 1 License: GPL v2+ Group: Applications/File -Source0: ftp://ftp.debian.org/debian/pool/main/d/dpkg/%{name}_%{version}.tar.bz2 -# Source0-md5: 39600c01d03c997bc12898ff85424377 +Source0: ftp://ftp.debian.org/debian/pool/main/d/dpkg/%{name}_%{version}.tar.xz +# Source0-md5: ccff17730c0964428fc186ded2f2f401 +Patch0: %{name}-md5.patch URL: http://packages.debian.org/search?keywords=dpkg -BuildRequires: autoconf -BuildRequires: automake BuildRequires: bzip2-devel -BuildRequires: gettext-devel +BuildRequires: gettext-tools >= 0.19 BuildRequires: libselinux-devel -BuildRequires: libtool BuildRequires: perl-tools-pod +BuildRequires: pkgconfig +BuildRequires: rpm-perlprov +BuildRequires: rpmbuild(macros) >= 1.654 +BuildRequires: tar >= 1:1.22 +BuildRequires: xz +BuildRequires: xz-devel BuildRequires: zlib-devel Requires: perl-base BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +# blacklist false positives +%define _noautoreq_perl extra file in Tie::ExtraHash + %description This package contains the programs to handle deb packages known from Debian. @@ -31,6 +42,9 @@ Debiana. Summary: dpkg library and header files Summary(pl.UTF-8): Biblioteka i pliki nagłówkowe dpkg Group: Development/Libraries +Requires: bzip2-devel +Requires: xz-devel +Requires: zlib-devel %description -n libdpkg-devel dpkg library and header files. @@ -38,31 +52,53 @@ dpkg library and header files. %description -n libdpkg-devel -l pl.UTF-8 Biblioteka i pliki nagłówkowe dpkg. +%package alternatives +Summary: Maintain symbolic links determining default commands +Summary(pl.UTF-8): Utrzymywanie dowiązań symbolicznych określających domyślne polecenia +Group: Applications/System +Requires: %{name} = %{version}-%{release} + +%description alternatives +alternatives creates, removes, maintains and displays information +about the symbolic links comprising the alternatives system. The +alternatives system is a reimplementation of the Debian alternatives +system. + +%description alternatives -l pl.UTF-8 +alternatives tworzy, usuwa, utrzymuje i wyświetla informacje o +dowiązaniach symbolicznych obejmujących system alternatyw. System +alternatyw to reimplementacja systemu alternatyw ("alternatives") z +Debiana. + %prep %setup -q +%patch0 -p1 %build +# "ac_cv_header_md5_h=no" to disable error on md5.h from libmd5 +# (dpkg expects this header from FreeBSD-compatible libmd, having different API) %configure \ + ac_cv_header_md5_h=no \ + PO4A="true" \ + --disable-dselect \ + %{!?with_alternatives:--disable-update-alternatives} \ --disable-silent-rules \ - --enable-shared \ - --without-dselect \ - --without-install-info \ - --without-start-stop-daemon \ - --with-zlib \ - --with-bz2 \ - --with-selinux \ + --disable-start-stop-daemon \ --with-admindir=/var/lib/%{name} -# SELINUX_LIBS=-lselinux %{__make} %install rm -rf $RPM_BUILD_ROOT - %{__make} install \ DESTDIR=$RPM_BUILD_ROOT +%if %{with alternatives} %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/alternatives/README +%endif + +# obsoleted by pkg-config +%{__rm} $RPM_BUILD_ROOT%{_libdir}/libdpkg.la # dpkg for main part, dpkg-dev for perl-based build script # don't use --all-name to avoid e.g. dselect inclusion @@ -77,64 +113,74 @@ rm -rf $RPM_BUILD_ROOT %defattr(644,root,root,755) %doc AUTHORS ChangeLog README THANKS TODO %attr(755,root,root) %{_bindir}/dpkg* -%attr(755,root,root) %{_bindir}/update-alternatives -%dir %{_sysconfdir}/alternatives %dir %{_sysconfdir}/dpkg %dir %{_sysconfdir}/dpkg/dpkg.cfg.d -%dir %{_libdir}/dpkg -%dir %{_libdir}/dpkg/parsechangelog -%attr(755,root,root) %{_libdir}/dpkg/parsechangelog/debian %dir %{_datadir}/dpkg +%{_datadir}/dpkg/abitable %{_datadir}/dpkg/cputable %{_datadir}/dpkg/ostable %{_datadir}/dpkg/triplettable +%{_datadir}/dpkg/*.mk %{perl_vendorlib}/Dpkg.pm %{perl_vendorlib}/Dpkg %dir /var/lib/dpkg -%dir /var/lib/dpkg/alternatives %dir /var/lib/dpkg/info %dir /var/lib/dpkg/parts %dir /var/lib/dpkg/updates %{_mandir}/man1/dpkg*.1* +%{_mandir}/man3/Dpkg.3* %{_mandir}/man3/Dpkg::*.3* %{_mandir}/man5/deb*.5* %{_mandir}/man5/dpkg.cfg.5* -%{_mandir}/man8/dpkg-*.8* -%{_mandir}/man8/update-alternatives.8* +%{_mandir}/man5/dsc.5* %lang(de) %{_mandir}/de/man1/dpkg*.1* %lang(de) %{_mandir}/de/man5/deb*.5* %lang(de) %{_mandir}/de/man5/dpkg.cfg.5* -%lang(de) %{_mandir}/de/man8/dpkg-*.8* -%lang(de) %{_mandir}/de/man8/update-alternatives.8* +%lang(de) %{_mandir}/de/man5/dsc.5* %lang(es) %{_mandir}/es/man1/dpkg*.1* %lang(es) %{_mandir}/es/man5/deb*.5* %lang(es) %{_mandir}/es/man5/dpkg.cfg.5* -%lang(es) %{_mandir}/es/man8/dpkg-*.8* -%lang(es) %{_mandir}/es/man8/update-alternatives.8* %lang(fr) %{_mandir}/fr/man1/dpkg*.1* %lang(fr) %{_mandir}/fr/man5/deb*.5* %lang(fr) %{_mandir}/fr/man5/dpkg.cfg.5* -%lang(fr) %{_mandir}/fr/man8/dpkg-*.8* -%lang(fr) %{_mandir}/fr/man8/update-alternatives.8* -%lang(hu) %{_mandir}/hu/man5/dpkg.cfg.5* -%lang(ja) %{_mandir}/ja/man5/deb-old.5* +%lang(it) %{_mandir}/it/man1/dpkg*.1* +%lang(it) %{_mandir}/it/man5/deb*.5* +%lang(it) %{_mandir}/it/man5/dpkg.cfg.5* +%lang(ja) %{_mandir}/ja/man1/dpkg*.1* +%lang(ja) %{_mandir}/ja/man5/deb*.5* +%lang(ja) %{_mandir}/ja/man5/dpkg.cfg.5* +%lang(nl) %{_mandir}/nl/man1/dpkg*.1* +%lang(nl) %{_mandir}/nl/man5/deb*.5* +%lang(nl) %{_mandir}/nl/man5/dpkg.cfg.5* %lang(pl) %{_mandir}/pl/man1/dpkg*.1* %lang(pl) %{_mandir}/pl/man5/deb*.5* %lang(pl) %{_mandir}/pl/man5/dpkg.cfg.5* -%lang(pl) %{_mandir}/pl/man8/dpkg-*.8* -%lang(pl) %{_mandir}/pl/man8/update-alternatives.8* %lang(sv) %{_mandir}/sv/man1/dpkg*.1* %lang(sv) %{_mandir}/sv/man5/deb*.5* %lang(sv) %{_mandir}/sv/man5/dpkg.cfg.5* -%lang(sv) %{_mandir}/sv/man8/dpkg-*.8* -%lang(sv) %{_mandir}/sv/man8/update-alternatives.8* %files -n libdpkg-devel %defattr(644,root,root,755) %{_libdir}/libdpkg.a %{_includedir}/dpkg %{_pkgconfigdir}/libdpkg.pc + +%if %{with alternatives} +%files alternatives +%defattr(644,root,root,755) +%dir %{_sysconfdir}/alternatives +%attr(755,root,root) %{_bindir}/update-alternatives +%{_mandir}/man1/update-alternatives.1* +%lang(de) %{_mandir}/de/man1/update-alternatives.1* +%lang(es) %{_mandir}/es/man1/update-alternatives.1* +%lang(fr) %{_mandir}/fr/man1/update-alternatives.1* +%lang(it) %{_mandir}/it/man1/update-alternatives.1* +%lang(ja) %{_mandir}/ja/man1/update-alternatives.1* +%lang(pl) %{_mandir}/pl/man1/update-alternatives.1* +%lang(sv) %{_mandir}/sv/man1/update-alternatives.1* +%dir /var/lib/dpkg/alternatives +%endif