2 Packager: PlanetLab Central <support@planet-lab.org>
3 Distribution: PlanetLab 4.0
4 URL: http://svn.planet-lab.org/svn/MyPLC
6 Summary: PlanetLab Central (PLC) Development Environment
7 Name: myplc-devel-native
9 Release: 1%{?pldistro:.%{pldistro}}%{?date:.%{date}}
11 Group: Development/Tools
12 Source0: %{name}-%{version}.tar.gz
13 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
16 Requires: beecrypt-devel
28 Requires: docbook-utils-pdf
35 Requires: glibc-common
44 Requires: libpcap-devel
46 Requires: linuxdoc-tools
55 Requires: mysql-server
57 Requires: ncurses-devel
65 Requires: postgresql-devel
66 Requires: postgresql-python
67 Requires: postgresql-server
69 Requires: python-devel
71 Requires: readline-devel
72 Requires: redhat-rpm-config
89 Requires: xmlsec1-openssl
92 %define debug_package %{nil}
95 This package installs a complete PlanetLab development
96 environment. The default installation consists of all the packages
97 necessary to compile MyPLC.
103 rm -rf $RPM_BUILD_ROOT
104 mkdir -p $RPM_BUILD_ROOT/etc
107 touch $RPM_BUILD_ROOT/etc/myplc-devel-native
110 rm -rf $RPM_BUILD_ROOT
113 if [ -n "$SUDO_USER" ] ; then
114 # Allow user to delete the build directory
115 chown -h -R $SUDO_USER .
116 # Some temporary cdroot files like /var/empty/sshd and
117 # /usr/bin/sudo get created with non-readable permissions.
118 find . -not -perm +0600 -exec chmod u+rw {} \;
119 # Allow user to delete the built RPM(s)
120 chown -h -R $SUDO_USER %{_rpmdir}/%{_arch}
130 builduser=$(grep "^build" /etc/passwd | wc -l)
131 if [ $builduser -eq 0 ] ; then
132 groupadd -o -g $gid build;
133 useradd -o -c 'Automated Build' -u $uid -g $gid -n -M -s /bin/bash build;
136 # Allow build user to build certain RPMs as root
137 buildsudo=$(grep "^build.*ALL=(ALL).*NOPASSWD:.*ALL" /etc/sudoers | wc -l)
138 if [ $buildsudo -eq 0 ] ; then
139 echo "build ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
144 # 0 = erase, 1 = upgrade
145 if [ $1 -eq 0 ] ; then
149 %defattr(-,root,root,-)
150 /etc/myplc-devel-native
153 * Fri Oct 05 2007 Marc E. Fiuczynski <mef@cs.princeton.edu>