]> git.pld-linux.org Git - packages/dpkg.git/blob - dpkg.spec
perl -pi -e "s/^gettextize --copy --force/\%%\{__gettextize\}/"
[packages/dpkg.git] / dpkg.spec
1 Summary:        Package maintenance system for Debian Linux
2 Summary(pl):    Program do obs³ugi pakietów Debiana
3 Name:           dpkg
4 Version:        1.6.15
5 Release:        3
6 License:        GPL
7 Group:          Applications/File
8 Source0:        ftp://ftp.debian.org/debian/dists/potato/main/source/base/%{name}_%{version}.tar.gz
9 Source1:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-pl-man-pages.tar.bz2
10 Patch0:         %{name}-no-debiandoc.patch
11 Patch1:         %{name}-opt.patch
12 Patch2:         %{name}-acfix.patch
13 Patch3:         %{name}-no_man_section.patch
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  gettext-devel
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 This package contains the programs which handle the installation and
21 removal of packages on your system.
22
23 The primary interface for the dpkg suite is the `dselect' program; a
24 more low-level and less user-friendly interface is available in the
25 form of the `dpkg' command.
26
27 In order to unpack and build Debian source packages you will need to
28 install the developers' package `dpkg-dev' as well as this one.
29
30 %description -l pl
31 Ten pakiet zawiera narzêdzia do obs³ugi pakietów deb znanych z
32 Debiana.
33
34 %prep
35 %setup -q
36 %patch0 -p1
37 %patch1 -p1
38 %patch2 -p1
39 %patch3 -p0
40
41 %build
42 %{__gettextize}
43 aclocal
44 %{__autoconf}
45 %configure \
46         --enable-shared \
47         --without-dselect \
48         --with-admindir=/var/lib/%{name}
49
50 %{__make} docdir=%{_defaultdocdir}/%{name}-%{version}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT%{_defaultdocdir}/dpkg
55
56 %{__make} install \
57         DESTDIR=$RPM_BUILD_ROOT
58
59 gzip -9nf $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}/*
60
61 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
62
63 %find_lang dpkg
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %files -f dpkg.lang
69 %defattr(644,root,root,755)
70 %doc doc/database-structure.fig doc/internals.sgml
71 %doc $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}/*
72 %attr(755,root,root) %{_bindir}/822-date
73 %attr(755,root,root) %{_bindir}/dpkg*
74 %dir %{_libdir}/dpkg
75 %dir %{_libdir}/dpkg/methods
76 %dir %{_libdir}/dpkg/parsechangelog
77 %dir %{_libdir}/dpkg/methods/disk
78 %dir %{_libdir}/dpkg/methods/floppy
79 %{_libdir}/dpkg/controllib.pl
80 %attr(755,root,root) %{_libdir}/dpkg/mksplit
81 %dir %{_libdir}/dpkg/methods/*/desc*
82 %dir %{_libdir}/dpkg/methods/*/names
83 %attr(755,root,root) %dir %{_libdir}/dpkg/methods/*/install
84 %attr(755,root,root) %dir %{_libdir}/dpkg/methods/*/setup
85 %attr(755,root,root) %dir %{_libdir}/dpkg/methods/*/update
86 %attr(755,root,root) %dir %{_libdir}/dpkg/parsechangelog/debian
87 %attr(755,root,root) %{_sbindir}/start-stop-daemon
88 %attr(755,root,root) %{_sbindir}/dpkg-divert
89 %attr(755,root,root) %{_sbindir}/update-alternatives
90 %attr(755,root,root) %{_sbindir}/update-rc.d
91 %dir /var/lib/dpkg
92 /var/lib/dpkg/*
93 %{_mandir}/man1/822-date.1*
94 %{_mandir}/man1/dpkg*
95 %{_mandir}/man5/*
96 %{_mandir}/man8/dpkg*
97 %{_mandir}/man8/start-stop*
98 %{_mandir}/man8/update*
99 %lang(ja) %{_mandir}/ja/man1/dpkg*
100 %lang(ja) %{_mandir}/ja/man5/*
101 %lang(ja) %{_mandir}/ja/man8/dpkg*
102 %lang(ja) %{_mandir}/ja/man8/start-stop*
103 %lang(ja) %{_mandir}/ja/man8/update*
104 %lang(pl) %{_mandir}/pl/man1/dpkg*
105 %lang(pl) %{_mandir}/pl/man8/dpkg*
106 %lang(sv) %{_mandir}/sv/man5/*
This page took 0.089836 seconds and 3 git commands to generate.