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.26 by eulisse, Thu Jun 21 15:06:31 2007 UTC vs.
Revision 1.35 by eulisse, Mon Jun 25 20:46:24 2007 UTC

# Line 3 | Line 3
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 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"
# 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 62 | Line 73 | Dir "%{instroot}"
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";
# Line 74 | Line 85 | Dir "%{instroot}"
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";
# Line 175 | Line 186 | mkdir -p $RPM_INSTALL_PREFIX/%{cmsplatf}
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 >

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines