3 |
|
|
4 |
|
Source: http://apt-rpm.org/releases/%n-%realversion.tar.bz2 |
5 |
|
Source1: bootstrap |
6 |
– |
Patch0: apt-rpm449 |
6 |
|
Requires: libxml2 beecrypt rpm zlib bz2lib openssl |
7 |
+ |
Patch0: apt-rpm449 |
8 |
+ |
Patch1: apt-rpm446 |
9 |
|
%if "%(echo %{cmsos} | cut -d_ -f 2 | sed -e 's|.*64.*|64|')" == "64" |
10 |
|
%define libdir lib64 |
11 |
|
%else |
14 |
|
|
15 |
|
%prep |
16 |
|
%setup -n %n-%{realversion} |
17 |
+ |
case $RPM_VERSION in |
18 |
+ |
4.4.9*) |
19 |
|
%patch0 -p0 |
20 |
+ |
;; |
21 |
+ |
4.4.6*) |
22 |
+ |
%patch1 -p0 |
23 |
+ |
;; |
24 |
+ |
esac |
25 |
|
%build |
26 |
+ |
export CFLAGS="-O0 -g" |
27 |
+ |
export CXXFLAGS="-O0 -g" |
28 |
|
export CPPFLAGS="-I$BEECRYPT_ROOT/include -I$RPM_ROOT/include -I$RPM_ROOT/include/rpm" |
29 |
|
export LDFLAGS="-L$BEECRYPT_ROOT/%{libdir} -L$RPM_ROOT/%{libdir}" |
30 |
|
export LIBDIR="$LIBS" |
35 |
|
--disable-nls \ |
36 |
|
--disable-dependency-tracking \ |
37 |
|
--without-libintl-prefix \ |
38 |
+ |
--disable-docs \ |
39 |
|
--disable-rpath |
40 |
|
make %makeprocesses |
41 |
|
|
73 |
|
|
74 |
|
// Locations of binaries |
75 |
|
Bin { |
76 |
< |
methods "%{i}/%{libdir}/apt/methods/"; |
76 |
> |
methods "%{i}/lib/apt/methods/"; |
77 |
|
gzip "/bin/gzip"; |
78 |
|
dpkg "/usr/bin/dpkg"; |
79 |
|
dpkg-source "/usr/bin/dpkg-source"; |
85 |
|
|
86 |
|
|
87 |
|
// Config files |
88 |
< |
Etc "%{cmsplatf}/external/apt/%{realversion}/etc/" { |
88 |
> |
Etc "%{cmsplatf}/external/apt/%{v}/etc/" { |
89 |
|
sourcelist "sources.list"; |
90 |
|
main "apt.conf"; |
91 |
|
preferences "preferences"; |
186 |
|
mkdir -p $RPM_INSTALL_PREFIX/%{cmsplatf}/var/lib/dpkg/status |
187 |
|
mkdir -p $RPM_INSTALL_PREFIX/bin |
188 |
|
mkdir -p $RPM_INSTALL_PREFIX/%{cmsplatf}/var/lib/cache/%{cmsplatf} |
178 |
– |
|
189 |
|
%{relocateConfig}etc/profile.d/dependencies-setup.sh |
190 |
|
%{relocateConfig}etc/profile.d/dependencies-setup.csh |
191 |
|
%{relocateConfig}bin/apt-cache-wrapper |
192 |
|
%{relocateConfig}bin/apt-get-wrapper |
193 |
|
%{relocateConfig}bin/rpm-wrapper |
194 |
< |
%{reloacteConfig}etc/apt/apt.conf |
195 |
< |
%files |
186 |
< |
%{i} |
194 |
> |
%{relocateConfig}etc/apt.conf |
195 |
> |
|