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.41 by eulisse, Tue Jul 3 00:26:43 2007 UTC vs.
Revision 1.62 by eulisse, Mon Jul 23 19:52:15 2007 UTC

# Line 3 | Line 3
3  
4   Source:  http://apt-rpm.org/releases/%n-%realversion.tar.bz2
5   Source1: bootstrap
6 + Source2: cms-apt-migration
7   Requires: libxml2 beecrypt rpm zlib bz2lib openssl
8   Patch0: apt-rpm449
9   Patch1: apt-rpm446
10 + Patch2: apt
11 + Patch3: apt-multiarch
12   %if "%(echo %{cmsos} | cut -d_ -f 2 | sed -e 's|.*64.*|64|')" == "64"
13   %define libdir lib64
14   %else
15   %define libdir lib
16   %endif
17  
18 +
19   %prep
20   %setup -n %n-%{realversion}
21   case $RPM_VERSION in
# Line 22 | Line 26 | case $RPM_VERSION in
26   %patch1 -p0
27          ;;
28   esac
29 +
30 + # scandir has a different prototype between macosx and linux.
31 + %if "%(uname)" == "Darwin"
32 + %patch2 -p1
33 + %endif
34 +
35 + %patch3 -p1
36 +
37   %build
38   export CFLAGS="-O0 -g"
39   export CXXFLAGS="-O0 -g"
# Line 50 | Line 62 | mkdir -p %{i}/etc/profile.d
62   echo "source $RPM_ROOT/etc/profile.d/init.csh"; \
63   echo "source $LIBXML2_ROOT/etc/profile.d/init.csh" ) > %{i}/etc/profile.d/dependencies-setup.csh
64  
65 +
66   mkdir -p %{i}/etc/apt
67   cat << \EOF_APT_CONF > %{i}/etc/apt.conf
68   Dir "%{instroot}"
# Line 97 | Line 110 | Debug::pkgProblemResolver="1";
110   RPM
111   {
112      PM "external";
113 <    Options { "--nodeps";};
114 <    Install-Options { "--nodeps";"--force";"--prefix";"%{instroot}";};
113 >    Options { };
114 >    Install-Options { "--force";"--prefix";"%{instroot}";"--ignoreos";"--ignorearch";};
115      RootDir "%{instroot}";
116      Architecture "%{cmsplatf}";
117   };
118   EOF_APT_CONF
119  
120 +
121   cat << \EOF_SOURCES_LIST > %{i}/etc/sources.list
122   rpm http://cmsrep.cern.ch cms/cpt/Software/download/cms/apt/%{cmsplatf} cms lcg external
123   rpm-src http://cmsrep.cern.ch cms/cpt/Software/download/cms/apt/%{cmsplatf} cms lcg external
124   # This are defined to support experimental repositories. The bootstrap file rewrites and uncomments
125   # them when passed the appropriate commandline option.
126 < ## rpm @SERVER@ @SERVER_PATH@/@REPOSITORY@/apt/%{cmsplatf} @GROUPS@  
127 < ## rpm-src @SERVER@ @SERVER_PATH@/@REPOSITORY@/apt/%{cmsplatf} @GROUPS@
126 > ##rpm http://@SERVER@ @SERVER_PATH@@REPOSITORY@/apt/%{cmsplatf} @GROUPS@  
127 > ##rpm-src http://@SERVER@ @SERVER_PATH@@REPOSITORY@/apt/%{cmsplatf} @GROUPS@
128   EOF_SOURCES_LIST
129  
130   cat << \EOF_RPMPRIORITIES > %{i}/etc/rpmpriorities
# Line 176 | Line 190 | cat %_sourcedir/bootstrap | perl -p -e "
190                                          s!\@INSTROOT\@!%{instroot}!g;
191                                          " > %{i}/bin/bootstrap-%{cmsplatf}.sh
192  
193 + cat %_sourcedir/cms-apt-migration | perl -p -e "s!\@CMSPLATF\@!%{cmsplatf}!g;
194 +                                        s!\@GCC_VERSION\@!$GCC_VERSION!g;
195 +                                        s!\@RPM_VERSION\@!$RPM_VERSION!g;
196 +                                        s!\@DB4_VERSION\@!$DB4_VERSION!g;
197 +                                        s!\@LIBXML2_VERSION\@!$LIBXML2_VERSION!g;
198 +                                        s!\@OPENSSL_VERSION\@!$OPENSSL_VERSION!g;
199 +                                        s!\@BEECRYPT_VERSION\@!$BEECRYPT_VERSION!g;
200 +                                        s!\@BZ2LIB_VERSION\@!$BZ2LIB_VERSION!g;
201 +                                        s!\@ZLIB_VERSION\@!$ZLIB_VERSION!g;
202 +                                        s!\@EXPAT_VERSION\@!$EXPAT_VERSION!g;
203 +                                        s!\@ELFUTILS_VERSION\@!$ELFUTILS_VERSION!g;
204 +                                        s!\@NEON_VERSION\@!$NEON_VERSION!g;
205 +                                        s!\@GCC_REVISION\@!$GCC_REVISION!g;
206 +                                        s!\@BEECRYPT_REVISION\@!$BEECRYPT_REVISION!g;
207 +                                        s!\@RPM_REVISION\@!$RPM_REVISION!g;
208 +                                        s!\@OPENSSL_REVISION\@!$OPENSSL_REVISION!g;
209 +                                        s!\@DB4_REVISION\@!$DB4_REVISION!g;
210 +                                        s!\@LIBXML2_REVISION\@!$LIBXML2_REVISION!g;
211 +                                        s!\@BZ2LIB_REVISION\@!$BZ2LIB_REVISION!g;
212 +                                        s!\@ZLIB_REVISION\@!$ZLIB_REVISION!g;
213 +                                        s!\@EXPAT_REVISION\@!$EXPAT_REVISION!g;
214 +                                        s!\@NEON_REVISION\@!$NEON_REVISION!g;
215 +                                        s!\@ELFUTILS_REVISION\@!$ELFUTILS_REVISION!g;
216 +                                        s!\@APT_VERSION\@!%{v}!g;
217 +                                        s!\@APT_REVISION\@!%{pkgrevision}!g;
218 +                                        s!\@INSTROOT\@!%{instroot}!g;" > %{i}/bin/cms-apt-migration-%{cmsplatf}.sh
219 +
220   %post
221   mkdir -p $RPM_INSTALL_PREFIX/%{cmsplatf}/var/lib/apt/lists/partial
222   mkdir -p $RPM_INSTALL_PREFIX/%{cmsplatf}/var/lib/rpm
# Line 192 | Line 233 | mkdir -p $RPM_INSTALL_PREFIX/%{cmsplatf}
233   %{relocateConfig}bin/apt-get-wrapper
234   %{relocateConfig}bin/rpm-wrapper
235   %{relocateConfig}etc/apt.conf
195
196

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines