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 # group this according to the requirements of the different packages we build
17 Requires: beecrypt-devel
29 Requires: docbook-utils-pdf
38 Requires: glibc-common
43 Requires: inotify-tools-devel
47 Requires: libpcap-devel
49 Requires: linuxdoc-tools
57 Requires: mysql-server
59 Requires: ncurses-devel
61 Requires: ocaml-ocamldoc
69 Requires: postgresql-devel
70 Requires: postgresql-python
71 Requires: postgresql-server
73 Requires: python-devel
74 Requires: python-pycurl
75 Requires: python-psycopg2
77 Requires: readline-devel
78 Requires: redhat-rpm-config
96 Requires: xmlsec1-openssl
99 %define debug_package %{nil}
102 This package installs a complete PlanetLab development
103 environment. The default installation consists of all the packages
104 necessary to compile MyPLC.
111 rm -rf $RPM_BUILD_ROOT
112 mkdir -p $RPM_BUILD_ROOT/etc
116 touch $RPM_BUILD_ROOT/etc/myplc-devel-native
119 rm -rf $RPM_BUILD_ROOT
122 if [ -n "$SUDO_USER" ] ; then
123 # Allow user to delete the build directory
124 chown -h -R $SUDO_USER .
125 # Some temporary cdroot files like /var/empty/sshd and
126 # /usr/bin/sudo get created with non-readable permissions.
127 find . -not -perm +0600 -exec chmod u+rw {} \;
128 # Allow user to delete the built RPM(s)
129 chown -h -R $SUDO_USER %{_rpmdir}/%{_arch}
139 builduser=$(grep "^build" /etc/passwd | wc -l)
140 if [ $builduser -eq 0 ] ; then
141 groupadd -o -g $gid build;
142 useradd -o -c 'Automated Build' -u $uid -g $gid -n -M -s /bin/bash build;
145 # Allow build user to build certain RPMs as root
146 buildsudo=$(grep "^build.*ALL=(ALL).*NOPASSWD:.*ALL" /etc/sudoers | wc -l)
147 if [ $buildsudo -eq 0 ] ; then
148 echo "build ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
153 # 0 = erase, 1 = upgrade
154 if [ $1 -eq 0 ] ; then
155 echo "NOTE: should remove build user from /etc/sudoers"
159 %defattr(-,root,root,-)
160 /etc/myplc-devel-native
163 * Fri Oct 05 2007 Marc E. Fiuczynski <mef@cs.princeton.edu>