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.45 by eulisse, Fri Jul 6 16:42:43 2007 UTC vs.
Revision 1.51 by eulisse, Thu Jul 12 13:56:05 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
# Line 14 | Line 15 | Patch2: apt
15   %define libdir lib
16   %endif
17  
18 +
19   %prep
20   %setup -n %n-%{realversion}
21   case $RPM_VERSION in
# Line 24 | 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   %build
36   export CFLAGS="-O0 -g"
# Line 54 | Line 60 | mkdir -p %{i}/etc/profile.d
60   echo "source $RPM_ROOT/etc/profile.d/init.csh"; \
61   echo "source $LIBXML2_ROOT/etc/profile.d/init.csh" ) > %{i}/etc/profile.d/dependencies-setup.csh
62  
63 +
64   mkdir -p %{i}/etc/apt
65   cat << \EOF_APT_CONF > %{i}/etc/apt.conf
66   Dir "%{instroot}"
# Line 181 | Line 188 | cat %_sourcedir/bootstrap | perl -p -e "
188                                          s!\@INSTROOT\@!%{instroot}!g;
189                                          " > %{i}/bin/bootstrap-%{cmsplatf}.sh
190  
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;
195 +                                        s!\@LIBXML2_VERSION\@!$LIBXML2_VERSION!g;
196 +                                        s!\@OPENSSL_VERSION\@!$OPENSSL_VERSION!g;
197 +                                        s!\@BEECRYPT_VERSION\@!$BEECRYPT_VERSION!g;
198 +                                        s!\@BZ2LIB_VERSION\@!$BZ2LIB_VERSION!g;
199 +                                        s!\@ZLIB_VERSION\@!$ZLIB_VERSION!g;
200 +                                        s!\@EXPAT_VERSION\@!$EXPAT_VERSION!g;
201 +                                        s!\@ELFUTILS_VERSION\@!$ELFUTILS_VERSION!g;
202 +                                        s!\@NEON_VERSION\@!$NEON_VERSION!g;
203 +                                        s!\@GCC_REVISION\@!$GCC_REVISION!g;
204 +                                        s!\@BEECRYPT_REVISION\@!$BEECRYPT_REVISION!g;
205 +                                        s!\@RPM_REVISION\@!$RPM_REVISION!g;
206 +                                        s!\@OPENSSL_REVISION\@!$OPENSSL_REVISION!g;
207 +                                        s!\@DB4_REVISION\@!$DB4_REVISION!g;
208 +                                        s!\@LIBXML2_REVISION\@!$LIBXML2_REVISION!g;
209 +                                        s!\@BZ2LIB_REVISION\@!$BZ2LIB_REVISION!g;
210 +                                        s!\@ZLIB_REVISION\@!$ZLIB_REVISION!g;
211 +                                        s!\@EXPAT_REVISION\@!$EXPAT_REVISION!g;
212 +                                        s!\@NEON_REVISION\@!$NEON_REVISION!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
217 +
218 +
219   %post
220   mkdir -p $RPM_INSTALL_PREFIX/%{cmsplatf}/var/lib/apt/lists/partial
221   mkdir -p $RPM_INSTALL_PREFIX/%{cmsplatf}/var/lib/rpm
# Line 197 | Line 232 | mkdir -p $RPM_INSTALL_PREFIX/%{cmsplatf}
232   %{relocateConfig}bin/apt-get-wrapper
233   %{relocateConfig}bin/rpm-wrapper
234   %{relocateConfig}etc/apt.conf
200
201

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines