]>
Commit | Line | Data |
---|---|---|
4f40d504 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with alternatives # build alternatives package | |
4 | ||
aea5b33f | 5 | Summary: Package maintenance system for Debian Linux |
b81e7419 | 6 | Summary(pl.UTF-8): Program do obsługi pakietów Debiana |
aea5b33f | 7 | Name: dpkg |
b5ec5adf | 8 | Version: 1.21.7 |
efe61112 | 9 | Release: 1 |
99403999 | 10 | License: GPL v2+ |
71d0ff61 | 11 | Group: Applications/File |
9f070fe3 | 12 | Source0: http://ftp.debian.org/debian/pool/main/d/dpkg/%{name}_%{version}.tar.xz |
b5ec5adf | 13 | # Source0-md5: 2c6686bd991810ce8a87469a7f20b415 |
42d55ea9 | 14 | Patch0: %{name}-md5.patch |
99403999 | 15 | URL: http://packages.debian.org/search?keywords=dpkg |
dcaefd63 | 16 | BuildRequires: bzip2-devel |
efe61112 | 17 | BuildRequires: gettext-tools >= 0.19 |
dcaefd63 | 18 | BuildRequires: libselinux-devel |
dc9ed1c4 | 19 | BuildRequires: perl-tools-pod |
1c3e1c0e | 20 | BuildRequires: pkgconfig |
1c3e1c0e | 21 | BuildRequires: rpm-perlprov |
c172ea00 | 22 | BuildRequires: rpmbuild(macros) >= 1.754 |
3477ad18 JB |
23 | BuildRequires: tar >= 1:1.22 |
24 | BuildRequires: xz | |
25 | BuildRequires: xz-devel | |
589726b5 | 26 | BuildRequires: zlib-devel |
80622688 | 27 | Requires: perl-base |
607070d7 | 28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
aea5b33f | 29 | |
392fa822 | 30 | # blacklist false positives |
c4540769 | 31 | %define _noautoreq_perl extra file in Tie::ExtraHash |
392fa822 | 32 | |
aea5b33f | 33 | %description |
99403999 JB |
34 | This package contains the programs to handle deb packages known from |
35 | Debian. | |
aea5b33f | 36 | |
f8701fb4 JR |
37 | %description -l pl.UTF-8 |
38 | Ten pakiet zawiera narzędzia do obsługi pakietów deb znanych z | |
71d0ff61 | 39 | Debiana. |
289d26c0 | 40 | |
99403999 JB |
41 | %package -n libdpkg-devel |
42 | Summary: dpkg library and header files | |
43 | Summary(pl.UTF-8): Biblioteka i pliki nagłówkowe dpkg | |
44 | Group: Development/Libraries | |
184a11e8 JB |
45 | Requires: bzip2-devel |
46 | Requires: xz-devel | |
47 | Requires: zlib-devel | |
99403999 JB |
48 | |
49 | %description -n libdpkg-devel | |
50 | dpkg library and header files. | |
51 | ||
52 | %description -n libdpkg-devel -l pl.UTF-8 | |
53 | Biblioteka i pliki nagłówkowe dpkg. | |
54 | ||
1750f640 ER |
55 | %package alternatives |
56 | Summary: Maintain symbolic links determining default commands | |
57 | Summary(pl.UTF-8): Utrzymywanie dowiązań symbolicznych określających domyślne polecenia | |
58 | Group: Applications/System | |
59 | Requires: %{name} = %{version}-%{release} | |
60 | ||
61 | %description alternatives | |
62 | alternatives creates, removes, maintains and displays information | |
63 | about the symbolic links comprising the alternatives system. The | |
64 | alternatives system is a reimplementation of the Debian alternatives | |
65 | system. | |
66 | ||
67 | %description alternatives -l pl.UTF-8 | |
68 | alternatives tworzy, usuwa, utrzymuje i wyświetla informacje o | |
69 | dowiązaniach symbolicznych obejmujących system alternatyw. System | |
70 | alternatyw to reimplementacja systemu alternatyw ("alternatives") z | |
71 | Debiana. | |
72 | ||
b5ec5adf MK |
73 | %package -n zsh-completion-dpkg |
74 | Summary: ZSH completion for dpkg command | |
75 | Summary(pl.UTF-8): Dopełnianianie parametrów w ZSH dla polecenia dpkg | |
76 | Group: Applications/Shells | |
77 | Requires: %{name} = %{version}-%{release} | |
78 | Requires: zsh | |
79 | BuildArch: noarch | |
80 | ||
81 | %description -n zsh-completion-dpkg | |
82 | ZSH completion for dpkg command. | |
83 | ||
84 | %description -n zsh-completion-dpkg -l pl.UTF-8 | |
85 | Dopełnianianie parametrów w ZSH dla polecenia dpkg. | |
86 | ||
aea5b33f JR |
87 | %prep |
88 | %setup -q | |
42d55ea9 | 89 | %patch0 -p1 |
aea5b33f JR |
90 | |
91 | %build | |
663dd486 JB |
92 | # "ac_cv_header_md5_h=no" to disable error on md5.h from libmd5 |
93 | # (dpkg expects this header from FreeBSD-compatible libmd, having different API) | |
71d0ff61 | 94 | %configure \ |
663dd486 | 95 | ac_cv_header_md5_h=no \ |
e2582a24 | 96 | PO4A="true" \ |
b5ec5adf | 97 | --disable-devel-docs \ |
3477ad18 | 98 | --disable-dselect \ |
4f40d504 | 99 | %{!?with_alternatives:--disable-update-alternatives} \ |
17034733 | 100 | --with-zshcompletionsdir=%{zsh_compdir} \ |
99403999 | 101 | --disable-silent-rules \ |
3477ad18 | 102 | --disable-start-stop-daemon \ |
99403999 | 103 | --with-admindir=/var/lib/%{name} |
aea5b33f | 104 | |
dcaefd63 | 105 | %{__make} |
aea5b33f JR |
106 | |
107 | %install | |
108 | rm -rf $RPM_BUILD_ROOT | |
aea5b33f JR |
109 | %{__make} install \ |
110 | DESTDIR=$RPM_BUILD_ROOT | |
111 | ||
4f40d504 | 112 | %if %{with alternatives} |
99403999 | 113 | %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/alternatives/README |
4f40d504 | 114 | %endif |
47be6b2f | 115 | |
b5ec5adf MK |
116 | # packaged as doc |
117 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/doc/dpkg | |
118 | ||
ddae01a5 JB |
119 | # obsoleted by pkg-config |
120 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libdpkg.la | |
121 | ||
99403999 JB |
122 | # dpkg for main part, dpkg-dev for perl-based build script |
123 | # don't use --all-name to avoid e.g. dselect inclusion | |
aea5b33f | 124 | %find_lang dpkg |
99403999 JB |
125 | %find_lang dpkg-dev |
126 | cat dpkg-dev.lang >>dpkg.lang | |
aea5b33f JR |
127 | |
128 | %clean | |
129 | rm -rf $RPM_BUILD_ROOT | |
130 | ||
131 | %files -f dpkg.lang | |
132 | %defattr(644,root,root,755) | |
99403999 | 133 | %doc AUTHORS ChangeLog README THANKS TODO |
aea5b33f | 134 | %attr(755,root,root) %{_bindir}/dpkg* |
b5ec5adf | 135 | %attr(755,root,root) %{_sbindir}/dpkg-fsys-usrunmess |
47be6b2f | 136 | %dir %{_sysconfdir}/dpkg |
99403999 | 137 | %dir %{_sysconfdir}/dpkg/dpkg.cfg.d |
47be6b2f | 138 | |
47be6b2f | 139 | %dir %{_datadir}/dpkg |
fa52672c | 140 | %{_datadir}/dpkg/abitable |
47be6b2f ER |
141 | %{_datadir}/dpkg/cputable |
142 | %{_datadir}/dpkg/ostable | |
b5ec5adf | 143 | %{_datadir}/dpkg/tupletable |
3e75a3a3 | 144 | %{_datadir}/dpkg/*.mk |
b5ec5adf MK |
145 | %{_datadir}/dpkg/*.specs |
146 | ||
147 | %dir %{_datadir}/dpkg/sh | |
148 | %{_datadir}/dpkg/sh/dpkg-error.sh | |
149 | ||
150 | %dir %{_libexecdir}/dpkg | |
151 | %attr(755,root,root) %{_libexecdir}/dpkg/dpkg-db-backup | |
99403999 JB |
152 | |
153 | %{perl_vendorlib}/Dpkg.pm | |
d52c6c83 | 154 | %{perl_vendorlib}/Dpkg |
47be6b2f | 155 | |
aea5b33f | 156 | %dir /var/lib/dpkg |
99403999 JB |
157 | %dir /var/lib/dpkg/info |
158 | %dir /var/lib/dpkg/parts | |
159 | %dir /var/lib/dpkg/updates | |
160 | ||
161 | %{_mandir}/man1/dpkg*.1* | |
b8a00aaf | 162 | %{_mandir}/man3/Dpkg.3* |
99403999 JB |
163 | %{_mandir}/man3/Dpkg::*.3* |
164 | %{_mandir}/man5/deb*.5* | |
165 | %{_mandir}/man5/dpkg.cfg.5* | |
efe61112 | 166 | %{_mandir}/man5/dsc.5* |
b5ec5adf MK |
167 | %{_mandir}/man7/deb-version.7* |
168 | %{_mandir}/man8/dpkg-fsys-usrunmess.8.* | |
99403999 JB |
169 | %lang(de) %{_mandir}/de/man1/dpkg*.1* |
170 | %lang(de) %{_mandir}/de/man5/deb*.5* | |
171 | %lang(de) %{_mandir}/de/man5/dpkg.cfg.5* | |
efe61112 | 172 | %lang(de) %{_mandir}/de/man5/dsc.5* |
b5ec5adf MK |
173 | %lang(de) %{_mandir}/de/man7/deb-version.7* |
174 | %lang(de) %{_mandir}/de/man8/dpkg-fsys-usrunmess.8.* | |
99403999 JB |
175 | %lang(es) %{_mandir}/es/man1/dpkg*.1* |
176 | %lang(es) %{_mandir}/es/man5/deb*.5* | |
177 | %lang(es) %{_mandir}/es/man5/dpkg.cfg.5* | |
99403999 JB |
178 | %lang(fr) %{_mandir}/fr/man1/dpkg*.1* |
179 | %lang(fr) %{_mandir}/fr/man5/deb*.5* | |
180 | %lang(fr) %{_mandir}/fr/man5/dpkg.cfg.5* | |
b5ec5adf MK |
181 | %lang(fr) %{_mandir}/fr/man5/dsc.5* |
182 | %lang(fr) %{_mandir}/fr/man7/deb-version.7* | |
183 | %lang(hu) %{_mandir}/hu/man5/dpkg.cfg.5* | |
42d55ea9 JB |
184 | %lang(it) %{_mandir}/it/man1/dpkg*.1* |
185 | %lang(it) %{_mandir}/it/man5/deb*.5* | |
186 | %lang(it) %{_mandir}/it/man5/dpkg.cfg.5* | |
3e75a3a3 JB |
187 | %lang(ja) %{_mandir}/ja/man1/dpkg*.1* |
188 | %lang(ja) %{_mandir}/ja/man5/deb*.5* | |
189 | %lang(ja) %{_mandir}/ja/man5/dpkg.cfg.5* | |
efe61112 JB |
190 | %lang(nl) %{_mandir}/nl/man1/dpkg*.1* |
191 | %lang(nl) %{_mandir}/nl/man5/deb*.5* | |
192 | %lang(nl) %{_mandir}/nl/man5/dpkg.cfg.5* | |
b5ec5adf MK |
193 | %lang(nl) %{_mandir}/nl/man5/dsc.5* |
194 | %lang(nl) %{_mandir}/nl/man7/deb-version.7* | |
195 | %lang(nl) %{_mandir}/nl/man8/dpkg-fsys-usrunmess.8.* | |
99403999 JB |
196 | %lang(pl) %{_mandir}/pl/man1/dpkg*.1* |
197 | %lang(pl) %{_mandir}/pl/man5/deb*.5* | |
198 | %lang(pl) %{_mandir}/pl/man5/dpkg.cfg.5* | |
b5ec5adf MK |
199 | %lang(pt) %{_mandir}/pt/man1/dpkg*.1* |
200 | %lang(pt) %{_mandir}/pt/man5/deb*.5* | |
201 | %lang(pt) %{_mandir}/pt/man5/dpkg.cfg.5* | |
202 | %lang(pt) %{_mandir}/pt/man5/dsc.5* | |
203 | %lang(pt) %{_mandir}/pt/man7/deb-version.7* | |
204 | %lang(pt) %{_mandir}/pt/man8/dpkg-fsys-usrunmess.8.* | |
99403999 JB |
205 | %lang(sv) %{_mandir}/sv/man1/dpkg*.1* |
206 | %lang(sv) %{_mandir}/sv/man5/deb*.5* | |
207 | %lang(sv) %{_mandir}/sv/man5/dpkg.cfg.5* | |
b5ec5adf MK |
208 | %lang(sv) %{_mandir}/sv/man5/dsc.5* |
209 | %lang(sv) %{_mandir}/sv/man7/deb-version.7* | |
210 | %lang(sv) %{_mandir}/sv/man8/dpkg-fsys-usrunmess.8.* | |
99403999 JB |
211 | |
212 | %files -n libdpkg-devel | |
213 | %defattr(644,root,root,755) | |
b5ec5adf | 214 | %doc doc/README.* doc/*.txt |
99403999 JB |
215 | %{_libdir}/libdpkg.a |
216 | %{_includedir}/dpkg | |
b5ec5adf | 217 | %{_aclocaldir}/dpkg*.m4 |
99403999 | 218 | %{_pkgconfigdir}/libdpkg.pc |
1750f640 | 219 | |
4f40d504 | 220 | %if %{with alternatives} |
1750f640 ER |
221 | %files alternatives |
222 | %defattr(644,root,root,755) | |
223 | %dir %{_sysconfdir}/alternatives | |
224 | %attr(755,root,root) %{_bindir}/update-alternatives | |
225 | %{_mandir}/man1/update-alternatives.1* | |
226 | %lang(de) %{_mandir}/de/man1/update-alternatives.1* | |
227 | %lang(es) %{_mandir}/es/man1/update-alternatives.1* | |
228 | %lang(fr) %{_mandir}/fr/man1/update-alternatives.1* | |
229 | %lang(it) %{_mandir}/it/man1/update-alternatives.1* | |
230 | %lang(ja) %{_mandir}/ja/man1/update-alternatives.1* | |
231 | %lang(pl) %{_mandir}/pl/man1/update-alternatives.1* | |
232 | %lang(sv) %{_mandir}/sv/man1/update-alternatives.1* | |
4f40d504 ER |
233 | %dir /var/lib/dpkg/alternatives |
234 | %endif | |
b5ec5adf MK |
235 | |
236 | %files -n zsh-completion-dpkg | |
237 | %defattr(644,root,root,755) | |
17034733 | 238 | %{zsh_compdir}/_dpkg-parsechangelog |