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.29 by eulisse, Fri Jun 22 06:32:48 2007 UTC vs.
Revision 1.43 by eulisse, Thu Jul 5 08:49:42 2007 UTC

# Line 1 | Line 1
1 < ### RPM external apt 0.5.15lorg3.2-wt1
1 > ### RPM external apt 0.5.15lorg3.2-CMS3
2   ## INITENV SET APT_CONFIG %{i}/etc/apt.conf
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
# Line 13 | Line 14 | Requires: libxml2 beecrypt rpm zlib bz2l
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 CPPFLAGS="-I$BEECRYPT_ROOT/include -I$RPM_ROOT/include -I$RPM_ROOT/include/rpm"
27 < export LDFLAGS="-L$BEECRYPT_ROOT/%{libdir} -L$RPM_ROOT/%{libdir}"
26 > export CFLAGS="-O0 -g"
27 > export CXXFLAGS="-O0 -g"
28 > export CPPFLAGS="-I$BZ2LIB_ROOT/include -I$BEECRYPT_ROOT/include -I$RPM_ROOT/include -I$RPM_ROOT/include/rpm"
29 > export LDFLAGS="-L$BZ2LIB_ROOT/lib -L$BEECRYPT_ROOT/%{libdir} -L$RPM_ROOT/%{libdir}"
30   export LIBDIR="$LIBS"
31   export LIBXML2_CFLAGS="-I$LIBXML2_ROOT/include/libxml2 -I$BEECRYPT_ROOT/include -I$RPM_ROOT/include"
32   export LIBXML2_LIBS="-lxml2 -L$LIBXML2_ROOT/lib -L$BEECRYPT_ROOT/%{libdir} -L$RPM_ROOT/%{libdir}"
# Line 25 | Line 35 | export LIBXML2_LIBS="-lxml2 -L$LIBXML2_R
35                              --disable-nls \
36                              --disable-dependency-tracking \
37                              --without-libintl-prefix \
38 +                            --disable-docs \
39                              --disable-rpath
40   make %makeprocesses
41  
# Line 86 | Line 97 | Debug::pkgProblemResolver="1";
97   RPM
98   {
99      PM "external";
100 <    Options { "--define";"_rpmlock_path %{instroot}/%{cmsplatf}/var/lib/rpm/lock";"--dbpath";"%{instroot}/var/lib/rpm";"--nodeps";};
101 <    Install-Options { "--define";"_rpmlock_path %{instroot}/%{cmsplatf}/var/lib/rpm/lock";"--nodeps";"--force";"--dbpath";"%{instroot}/%{cmsplatf}/var/lib/rpm";"--prefix";"%{instroot}";};
100 >    Options { };
101 >    Install-Options { "--force";"--prefix";"%{instroot}";"--ignoreos";"--ignorearch";};
102      RootDir "%{instroot}";
103      Architecture "%{cmsplatf}";
104   };
105   EOF_APT_CONF
106  
107   cat << \EOF_SOURCES_LIST > %{i}/etc/sources.list
108 < rpm http://cmsrep.cern.ch cms/cpt/Software/download/cms.eulisse/apt/%{cmsplatf} cms lcg external
109 < rpm-src http://cmsrep.cern.ch cms/cpt/Software/download/cms.eulisse/apt/%{cmsplatf} cms lcg external
108 > rpm http://cmsrep.cern.ch cms/cpt/Software/download/cms/apt/%{cmsplatf} cms lcg external
109 > rpm-src http://cmsrep.cern.ch cms/cpt/Software/download/cms/apt/%{cmsplatf} cms lcg external
110   # This are defined to support experimental repositories. The bootstrap file rewrites and uncomments
111   # them when passed the appropriate commandline option.
112   ## rpm @SERVER@ @SERVER_PATH@/@REPOSITORY@/apt/%{cmsplatf} @GROUPS@  
# Line 181 | Line 192 | mkdir -p $RPM_INSTALL_PREFIX/%{cmsplatf}
192   %{relocateConfig}bin/apt-get-wrapper
193   %{relocateConfig}bin/rpm-wrapper
194   %{relocateConfig}etc/apt.conf
195 +
196 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines