1 |
|
### RPM external apt 0.5.15lorg3.2-CMS3 |
2 |
|
## INITENV SET APT_CONFIG %{i}/etc/apt.conf |
3 |
– |
|
3 |
|
Source: http://apt-rpm.org/releases/%n-%realversion.tar.bz2 |
4 |
|
Source1: bootstrap |
5 |
|
Source2: cms-apt-migration |
7 |
|
Patch0: apt-rpm449 |
8 |
|
Patch1: apt-rpm446 |
9 |
|
Patch2: apt |
10 |
< |
|
10 |
> |
Patch3: apt-multiarch |
11 |
|
%if "%(echo %{cmsos} | cut -d_ -f 2 | sed -e 's|.*64.*|64|')" == "64" |
12 |
|
%define libdir lib64 |
13 |
|
%else |
14 |
|
%define libdir lib |
15 |
|
%endif |
16 |
|
|
18 |
– |
|
17 |
|
%prep |
18 |
|
%setup -n %n-%{realversion} |
19 |
|
case $RPM_VERSION in |
30 |
|
%patch2 -p1 |
31 |
|
%endif |
32 |
|
|
33 |
+ |
%patch3 -p1 |
34 |
+ |
|
35 |
|
%build |
36 |
|
export CFLAGS="-O0 -g" |
37 |
|
export CXXFLAGS="-O0 -g" |
121 |
|
rpm-src http://cmsrep.cern.ch cms/cpt/Software/download/cms/apt/%{cmsplatf} cms lcg external |
122 |
|
# This are defined to support experimental repositories. The bootstrap file rewrites and uncomments |
123 |
|
# them when passed the appropriate commandline option. |
124 |
< |
## rpm @SERVER@ @SERVER_PATH@/@REPOSITORY@/apt/%{cmsplatf} @GROUPS@ |
125 |
< |
## rpm-src @SERVER@ @SERVER_PATH@/@REPOSITORY@/apt/%{cmsplatf} @GROUPS@ |
124 |
> |
##rpm http://@SERVER@ @SERVER_PATH@@REPOSITORY@/apt/%{cmsplatf} @GROUPS@ |
125 |
> |
##rpm-src http://@SERVER@ @SERVER_PATH@@REPOSITORY@/apt/%{cmsplatf} @GROUPS@ |
126 |
|
EOF_SOURCES_LIST |
127 |
|
|
128 |
|
cat << \EOF_RPMPRIORITIES > %{i}/etc/rpmpriorities |
188 |
|
s!\@INSTROOT\@!%{instroot}!g; |
189 |
|
" > %{i}/bin/bootstrap-%{cmsplatf}.sh |
190 |
|
|
191 |
< |
cat %_sourcedir/cms-apt-migration | perl -p -i -e "s!\@CMSPLATF\@!%{cmsplatf}!g; |
191 |
> |
cat %_sourcedir/cms-apt-migration | perl -p -e "s!\@CMSPLATF\@!%{cmsplatf}!g; |
192 |
|
s!\@GCC_VERSION\@!$GCC_VERSION!g; |
193 |
|
s!\@RPM_VERSION\@!$RPM_VERSION!g; |
194 |
|
s!\@DB4_VERSION\@!$DB4_VERSION!g; |
213 |
|
s!\@ELFUTILS_REVISION\@!$ELFUTILS_REVISION!g; |
214 |
|
s!\@APT_VERSION\@!%{v}!g; |
215 |
|
s!\@APT_REVISION\@!%{pkgrevision}!g; |
216 |
< |
s!\@INSTROOT\@!%{instroot}!g;" %{i}/bin/cms-apt-migration-%{cmsplatf}.sh |
216 |
> |
s!\@INSTROOT\@!%{instroot}!g;" > %{i}/bin/cms-apt-migration-%{cmsplatf}.sh |
217 |
|
|
218 |
|
%post |
219 |
|
mkdir -p $RPM_INSTALL_PREFIX/%{cmsplatf}/var/lib/apt/lists/partial |