Skip to content

Commit

Permalink
add SRPMS, .rpmmacros and epel-5-x86_64-hphp mock config
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudy Grigar committed Nov 19, 2010
1 parent df7c6bb commit 9340673
Show file tree
Hide file tree
Showing 11 changed files with 79 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .rpmmacros
@@ -0,0 +1,15 @@
%_topdir %(echo $HOME)/rpmbuild
%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\
&& RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\
if [ "$RPM_BUILD_NCPUS" -gt 16 ]; then echo "-j16"; \\\
elif [ "$RPM_BUILD_NCPUS" -gt 3 ]; then echo "-j$RPM_BUILD_NCPUS"; \\\
else echo "-j3"; fi)
%__arch_install_post /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot

#Payload compression with gzip:
%_source_payload w9.gzdio
%_binary_payload w9.gzdio

#Use md5 for file hash algorithm:
%_source_filedigest_algorithm 1
%_binary_filedigest_algorithm 1
Binary file added SRPMS/boost-1.44.0-1.el5.src.rpm
Binary file not shown.
Binary file added SRPMS/curl-7.20.0-1.el5.src.rpm
Binary file not shown.
Binary file added SRPMS/curl-7.20.1-5.el5.src.rpm
Binary file not shown.
Binary file added SRPMS/hiphop-php-1.0-1.el5.src.rpm
Binary file not shown.
Binary file added SRPMS/hphp-release-1.0-1.el5.src.rpm
Binary file not shown.
Binary file added SRPMS/icu-4.2.1-8.el5.src.rpm
Binary file not shown.
Binary file added SRPMS/libcurl-7.15.5-1.el5.src.rpm
Binary file not shown.
Binary file added SRPMS/libevent-1.4.13-2.el5.src.rpm
Binary file not shown.
Binary file added SRPMS/libmemcached-0.43-2.el5.src.rpm
Binary file not shown.
64 changes: 64 additions & 0 deletions epel-5-x86_64-hphp
@@ -0,0 +1,64 @@
config_opts['root'] = 'epel-5-x86_64'
config_opts['target_arch'] = 'x86_64'
config_opts['chroot_setup_cmd'] = 'install buildsys-build'
#config_opts['dist'] = 'el5' # only useful for --resultdir variable subst
config_opts['dist'] = 'hphp' # only useful for --resultdir variable subst

config_opts['yum.conf'] = """
[main]
cachedir=/var/cache/yum
debuglevel=1
logfile=/var/log/yum.log
reposdir=/dev/null
retries=20
obsoletes=1
gpgcheck=0
assumeyes=1
syslog_ident=mock
syslog_device=
# grub/syslinux on x86_64 need glibc-devel.i386 which pulls in glibc.i386, need to exclude all
# .i?86 packages except these.
exclude=[1-9A-Za-fh-z]*.i?86 g[0-9A-Za-km-z]*.i?86 gl[0-9A-Za-hj-z]*.i?86 gli[0-9A-Zac-z]*.i?86 glib[0-9A-Za-bd-z]*.i?86
# repos

[core]
name=base
mirrorlist=http://mirrorlist.centos.org/?release=5&arch=x86_64&repo=os

[update]
name=updates
mirrorlist=http://mirrorlist.centos.org/?release=5&arch=x86_64&repo=updates

[groups]
name=groups
baseurl=http://buildsys.fedoraproject.org/buildgroups/rhel5/x86_64/

[extras]
name=epel
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=x86_64

[testing]
name=epel-testing
enabled=0
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=testing-epel5&arch=x86_64

[local]
name=local
baseurl=http://kojipkgs.fedoraproject.org/repos/dist-5E-epel-build/latest/x86_64/
cost=2000
enabled=0

[hphp]
name=hphp
baseurl=http://pkg.tag1consulting.com/hphp/x86_64/
enabled=1
gpgcheck=0

[ius]
name=ius
baseurl=http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/$basearch
enabled=1
gpgcheck=0

"""

0 comments on commit 9340673

Please sign in to comment.