]> git.pld-linux.org Git - packages/dpkg.git/blobdiff - dpkg.spec
- updated to 1.16.2
[packages/dpkg.git] / dpkg.spec
index fabd83adfa0350b2aaa0a895ae2511442f44eeb8..c6c5ff05707b9e60b81e95b593d89872e31709c5 100644 (file)
--- a/dpkg.spec
+++ b/dpkg.spec
+%include       /usr/lib/rpm/macros.perl
 Summary:       Package maintenance system for Debian Linux
-Summary(pl):   Program do obs³ugi pakietów Debiana
+Summary(pl.UTF-8):     Program do obsługi pakietów Debiana
 Name:          dpkg
-Version:       1.6.15
+Version:       1.16.2
 Release:       1
-License:       GPL
-Group:         Utilities/File
-Group(pl):     Narzêdzia/Pliki
-Source:                ftp://ftp.debian.org/debian/dists/potato/main/source/base/%{name}_%{version}.tar.gz
-Patch0:                %{name}-no-debiandoc.patch
-Patch1:                %{name}-opt.patch
+License:       GPL v2+
+Group:         Applications/File
+Source0:       ftp://ftp.debian.org/debian/pool/main/d/dpkg/%{name}_%{version}.tar.bz2
+# Source0-md5: 629ba7ee2024e6a5c0ff807aa2db02f8
+URL:           http://packages.debian.org/search?keywords=dpkg
+BuildRequires: bzip2-devel
+BuildRequires: gettext-devel >= 0.18
+BuildRequires: libselinux-devel
+BuildRequires: perl-tools-pod
+BuildRequires: pkgconfig
+BuildRequires: rpm-perlprov
+BuildRequires: zlib-devel
+Requires:      perl-base
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-BuildRequires: gettext-devel
-BuildRequires: autoconf
+
+# blacklist false positives
+%define                _noautoreq      'perl(extra)' 'perl(file)' 'perl(in)' 'perl(Tie::ExtraHash)'
 
 %description
-This package contains the programs which handle the installation and
-removal of packages on your system.
+This package contains the programs to handle deb packages known from
+Debian.
+
+%description -l pl.UTF-8
+Ten pakiet zawiera narzędzia do obsługi pakietów deb znanych z
+Debiana.
 
-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.
+%package -n libdpkg-devel
+Summary:       dpkg library and header files
+Summary(pl.UTF-8):     Biblioteka i pliki nagłówkowe dpkg
+Group:         Development/Libraries
 
-In order to unpack and build Debian source packages you will need to
-install the developers' package `dpkg-dev' as well as this one.
+%description -n libdpkg-devel
+dpkg library and header files.
 
-%description -l pl
-Ten pakiet zawiera narzêdzia do obs³ugi pakietów deb znanych z Debiana.
+%description -n libdpkg-devel -l pl.UTF-8
+Biblioteka i pliki nagłówkowe dpkg.
 
 %prep
 %setup -q
-%patch0 -p1
-%patch1 -p1
 
 %build
-gettextize --copy --force
-aclocal -I automake
-autoconf
 %configure \
+       PO4A="true" \
+       --disable-silent-rules \
        --enable-shared \
        --without-dselect \
+       --without-install-info \
+       --without-start-stop-daemon \
+       --with-zlib \
+       --with-bz2 \
+       --with-selinux \
        --with-admindir=/var/lib/%{name}
 
-%{__make} docdir=%{_defaultdocdir}/%{name}-%{version}
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_defaultdocdir}/dpkg
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-gzip -9nf $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}/*
+%{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/alternatives/README
 
+# dpkg for main part, dpkg-dev for perl-based build script
+# don't use --all-name to avoid e.g. dselect inclusion
 %find_lang dpkg
+%find_lang dpkg-dev
+cat dpkg-dev.lang >>dpkg.lang
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files -f dpkg.lang
 %defattr(644,root,root,755)
-%doc doc/database-structure.fig doc/internals.sgml
-%doc $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}/*
-%attr(755,root,root) %{_bindir}/822-date
+%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/methods
 %dir %{_libdir}/dpkg/parsechangelog
-%dir %{_libdir}/dpkg/methods/disk
-%dir %{_libdir}/dpkg/methods/floppy
-%{_libdir}/dpkg/controllib.pl
-%attr(755,root,root) %{_libdir}/dpkg/mksplit
-%dir %{_libdir}/dpkg/methods/*/desc*
-%dir %{_libdir}/dpkg/methods/*/names
-%attr(755,root,root) %dir %{_libdir}/dpkg/methods/*/install
-%attr(755,root,root) %dir %{_libdir}/dpkg/methods/*/setup
-%attr(755,root,root) %dir %{_libdir}/dpkg/methods/*/update
-%attr(755,root,root) %dir %{_libdir}/dpkg/parsechangelog/debian
-%attr(755,root,root) %{_sbindir}/start-stop-daemon
-%attr(755,root,root) %{_sbindir}/dpkg-divert
-%attr(755,root,root) %{_sbindir}/update-alternatives
-%attr(755,root,root) %{_sbindir}/update-rc.d
+%attr(755,root,root) %{_libdir}/dpkg/parsechangelog/debian
+%dir %{_datadir}/dpkg
+%{_datadir}/dpkg/cputable
+%{_datadir}/dpkg/ostable
+%{_datadir}/dpkg/triplettable
+%{_datadir}/dpkg/*.mk
+
+%{perl_vendorlib}/Dpkg.pm
+%{perl_vendorlib}/Dpkg
+
 %dir /var/lib/dpkg
-/var/lib/dpkg/*
-%{_mandir}/man1/822-date.1*
-%{_mandir}/man1/dpkg*
-%{_mandir}/man5/*
-%{_mandir}/man8/dpkg*
-%{_mandir}/man8/start-stop*
-%{_mandir}/man8/update*
-%lang(ja) %{_mandir}/ja/man1/dpkg*
-%lang(ja) %{_mandir}/ja/man5/*
-%lang(ja) %{_mandir}/ja/man8/dpkg*
-%lang(ja) %{_mandir}/ja/man8/start-stop*
-%lang(ja) %{_mandir}/ja/man8/update*
-%lang(sv) %{_mandir}/sv/man5/*
+%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}/man5/deb*.5*
+%{_mandir}/man5/dpkg.cfg.5*
+%{_mandir}/man8/dpkg-*.8*
+%{_mandir}/man8/update-alternatives.8*
+%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(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/man1/dpkg*.1*
+%lang(ja) %{_mandir}/ja/man5/deb*.5*
+%lang(ja) %{_mandir}/ja/man5/dpkg.cfg.5*
+%lang(ja) %{_mandir}/ja/man8/dpkg*.8*
+%lang(ja) %{_mandir}/ja/man8/update-alternatives.8*
+%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
This page took 0.062491 seconds and 4 git commands to generate.