ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/apt.spec
(Generate patch)

Comparing COMP/CMSDIST/apt.spec (file contents):
Revision 1.49 by eulisse, Thu Jul 12 10:05:50 2007 UTC vs.
Revision 1.70 by elmer, Fri Nov 2 20:36:51 2007 UTC

# Line 1 | Line 1
1 < ### RPM external apt 0.5.15lorg3.2-CMS3
1 > ### RPM external apt 0.5.15lorg3.2-CMS18
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
6 +
7 + %if "%{?online_release:set}" != "set"
8   Requires: libxml2 beecrypt rpm zlib bz2lib openssl
9 + %else
10 + Requires: libxml2 beecrypt rpm bz2lib
11 + %endif
12 +
13   Patch0: apt-rpm449
14   Patch1: apt-rpm446
15   Patch2: apt
16 <
16 > Patch3: apt-multiarch
17   %if "%(echo %{cmsos} | cut -d_ -f 2 | sed -e 's|.*64.*|64|')" == "64"
18   %define libdir lib64
19   %else
20   %define libdir lib
21   %endif
22  
18
23   %prep
24   %setup -n %n-%{realversion}
25   case $RPM_VERSION in
# Line 32 | Line 36 | esac
36   %patch2 -p1
37   %endif
38  
39 + %patch3 -p1
40 +
41   %build
42   export CFLAGS="-O0 -g"
43   export CXXFLAGS="-O0 -g"
# Line 121 | Line 127 | rpm http://cmsrep.cern.ch cms/cpt/Softwa
127   rpm-src http://cmsrep.cern.ch cms/cpt/Software/download/cms/apt/%{cmsplatf} cms lcg external
128   # This are defined to support experimental repositories. The bootstrap file rewrites and uncomments
129   # them when passed the appropriate commandline option.
130 < ## rpm @SERVER@ @SERVER_PATH@/@REPOSITORY@/apt/%{cmsplatf} @GROUPS@  
131 < ## rpm-src @SERVER@ @SERVER_PATH@/@REPOSITORY@/apt/%{cmsplatf} @GROUPS@
130 > ##rpm http://@SERVER@ @SERVER_PATH@@REPOSITORY@/apt/%{cmsplatf} @GROUPS@  
131 > ##rpm-src http://@SERVER@ @SERVER_PATH@@REPOSITORY@/apt/%{cmsplatf} @GROUPS@
132   EOF_SOURCES_LIST
133  
134   cat << \EOF_RPMPRIORITIES > %{i}/etc/rpmpriorities
# Line 188 | Line 194 | cat %_sourcedir/bootstrap | perl -p -e "
194                                          s!\@INSTROOT\@!%{instroot}!g;
195                                          " > %{i}/bin/bootstrap-%{cmsplatf}.sh
196  
197 < cat %_sourcedir/cms-apt-migration | perl -p -i -e "s!\@CMSPLATF\@!%{cmsplatf}!g;
197 > cat %_sourcedir/cms-apt-migration | perl -p -e "s!\@CMSPLATF\@!%{cmsplatf}!g;
198                                          s!\@GCC_VERSION\@!$GCC_VERSION!g;
199                                          s!\@RPM_VERSION\@!$RPM_VERSION!g;
200                                          s!\@DB4_VERSION\@!$DB4_VERSION!g;
# Line 213 | Line 219 | cat %_sourcedir/cms-apt-migration | perl
219                                          s!\@ELFUTILS_REVISION\@!$ELFUTILS_REVISION!g;
220                                          s!\@APT_VERSION\@!%{v}!g;
221                                          s!\@APT_REVISION\@!%{pkgrevision}!g;
222 <                                        s!\@INSTROOT\@!%{instroot}!g;" %{i}/bin/cms-apt-migration-%{cmsplatf}.sh
222 >                                        s!\@INSTROOT\@!%{instroot}!g;" > %{i}/bin/cms-apt-migration-%{cmsplatf}.sh
223  
224   %post
225   mkdir -p $RPM_INSTALL_PREFIX/%{cmsplatf}/var/lib/apt/lists/partial

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines