Commit 861ee72b authored by Sebastien Robin's avatar Sebastien Robin

first submission


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@462 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5044d369
Name: CMFActivity
Summary: Activity Tool for zope
Version: 0.1
Release: 1mdk
Group: Development/Python
Requires: zope
License: GPL
URL: http://www.erp5.org
Packager: Sebastien Robin <seb@nexedi.com>
BuildRoot: %{_tmppath}/%{name}-%{version}-rootdir
Buildarch: noarch
Source: %{name}-%{version}.tar.bz2
#----------------------------------------------------------------------
%description
This tools allows to implement activities for zope objects.
http://www.erp5.org
#----------------------------------------------------------------------
%prep
rm -rf $RPM_BUILD_ROOT
%setup -a 0
#----------------------------------------------------------------------
%build
#----------------------------------------------------------------------
%install
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/
install %{name}-%{version}/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/
install %{name}-%{version}/*.txt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/
install %{name}-%{version}/*.png $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Activity
install %{name}-%{version}/Activity/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Activity
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Constraint
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Document
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/dtml
install %{name}-%{version}/dtml/*.dtml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/dtml
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/help
install %{name}-%{version}/help/*.stx $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/help
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Interface
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/PropertySheet
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/activity
install %{name}-%{version}/skins/activity/*.zsql $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/activity
%clean
rm -rf $RPM_BUILD_ROOT
#----------------------------------------------------------------------
%files
%defattr(-,zope,zope,0755)
%doc VERSION.txt
%{_libdir}/zope/lib/python/Products/%{name}/
#----------------------------------------------------------------------
%changelog
* Mon Feb 09 2004 Sebastien Robin <seb@nexedi.com> 0.1-1nxd
- Create the spec file
This diff is collapsed.
%define name FunctionalTests
%define version 0.4
%define release 1nxd
Summary: Functional Testing module for Zope
Name: %{name}
Version: %{version}
Release: %{release}
License: ZPL
URL: http://www.zope.org/Members/tseaver/FunctionalTests
Group: Development/Python
Source0: FunctionalTests-%{version}.tar.bz2
Patch1: FunctionalTests-0.4-python-path.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
Requires: python >= 2.1
%description
FunctionalTests is an automated framework for recording and replaying
"functional" tests of a Zope web application. Requests can be either
HTTP requests, including authentication, cookies, and form variables,
or ZEO-based Python functions (especially useful for
setup/teardown/postcondition implementations).
%prep
%setup -q
%patch1 -p1
%build
python setup.py build
%install
rm -rf %{buildroot}
python setup.py install --root=%{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root)
%doc doc/* examples
%{_libdir}/python*/site-packages/*
%{_bindir}/ft*
%changelog
* Mon Nov 17 2003 Yoshinori OKUJI <yo@nexedi.com> 0.4-1nxd
- initial version
Name: ZGDChart
Summary: gdchart-based product to draw charts in zope
Version: 0.6.4
Release: 1mdk
Group: Development/Python
Requires: zope
License: GPL
URL: http://www.zope.org/Members/teyc/ZGDChart
Packager: Sebastien Robin <seb@nexedi.com>
BuildRoot: %{_tmppath}/%{name}-%{version}-rootdir
Buildarch: noarch
Source: %{name}-%{version}.tar.bz2
#----------------------------------------------------------------------
%description
A simple chart class which generates plots dynamically using data from
DTML or ZSQL. The output image format is PNG. For the SQL case, the
chart plots the first two columns of a SQL query result.
#----------------------------------------------------------------------
%prep
rm -rf $RPM_BUILD_ROOT
%setup -a 0
#----------------------------------------------------------------------
%build
#----------------------------------------------------------------------
%install
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}
install %{name}-%{version}/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}
install %{name}-%{version}/*.so $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}
install %{name}-%{version}/setup $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}
install %{name}-%{version}/*.gif $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}
install %{name}-%{version}/*.pyd $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}
install %{name}-%{version}/*.bat $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/www
install %{name}-%{version}/www/*.gif $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/www
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/test
install %{name}-%{version}/test/*.html $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/test
install %{name}-%{version}/test/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/test
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/temp
install %{name}-%{version}/temp/*.pyd $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/temp
install %{name}-%{version}/temp/*.so $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/temp
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/manage
install %{name}-%{version}/manage/*.js $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/manage
install %{name}-%{version}/manage/*.dtml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/manage
install %{name}-%{version}/manage/editPie $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/manage
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/import
install %{name}-%{version}/import/*.zexp $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/import
install %{name}-%{version}/import/*.xml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/import
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/solaris
install %{name}-%{version}/solaris/*.so $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/solaris
install %{name}-%{version}/solaris/*.txt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/solaris
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/help
install %{name}-%{version}/help/*.stx $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/help
install %{name}-%{version}/help/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/help
%clean
rm -rf $RPM_BUILD_ROOT
#----------------------------------------------------------------------
%files
%defattr(-,root,root,0755)
%doc CHANGES.TXT README.txt version.txt
%{_libdir}/zope/lib/python/Products/%{name}/
#----------------------------------------------------------------------
%changelog
* Tue Feb 10 2004 Sebastien Robin <seb@nexedi.com> 0.6.4-1nxd
- Initial release
#!/bin/bash
PARAMS=1
# Where we can find the RPM directory
# and where we want to store the source code from cvs
CVS_PATH=/home/$USER/cvs
RPM_PATH=/home/$USER/rpm
PRODUCT_PATH=%{_libdir}/zope/lib/python/Products/
FULL_RPM_BUILD_ROOT=\$RPM_BUILD_ROOT$PRODUCT_PATH
if [ $# -lt "$PARAMS" ] || [ $# -gt "$PARAMS" ]
then
echo
echo "Give me exactly $PARAMS command-line arguments!"
echo "build-rpm PACKAGE_NAME"
exit 0
fi
if [ -n "$1" ]
then
echo Starting Building $1
NAME=$1
VERSION=3.0b3
cd $CVS_PATH && tar jcvf $NAME-$VERSION.tar.bz2 $NAME-$VERSION && cd -
cp $CVS_PATH/$NAME-$VERSION.tar.bz2 $RPM_PATH/SOURCES/
# Remove theses text files in order to hack a small error
mv -f $CVS_PATH/$NAME-$VERSION/COPYING.txt /tmp
mv -f $CVS_PATH/$NAME-$VERSION/COPYRIGHT.txt /tmp
mv -f $CVS_PATH/$NAME-$VERSION/INSTALL.txt /tmp
mv -f $CVS_PATH/$NAME-$VERSION/UPGRADE.txt /tmp
# We will generate one part of the spec file, so we make sure
# to not forget any file
# Generate the folder tree
rm -f /tmp/build-rpm-install.tmp
rm -f /tmp/build-rpm-files.tmp
rm -f /tmp/build-rpm-spec.tmp
for directory in "" `cd $CVS_PATH/$NAME-$VERSION && find * -type d -not -name "CVS" && cd -`
do echo install -d $FULL_RPM_BUILD_ROOT/$directory | sed -e "s/\/\//\//g" >> /tmp/build-rpm-install.tmp
# then add files we want to include into the rpm
for file_type in py dtml txt png pt stx form zsql gif jpg css html props
do if (ls $CVS_PATH/$NAME-$VERSION/$directory/*.$file_type > /dev/null 2>&1)
then echo install %{name}-%{version}/$directory/*.$file_type $FULL_RPM_BUILD_ROOT/$directory | sed -e "s/\/\//\//g" >> /tmp/build-rpm-install.tmp
fi
done
done
cp /tmp/COPYING.txt /$CVS_PATH/$NAME-$VERSION/
cp /tmp/COPYRIGHT.txt /$CVS_PATH/$NAME-$VERSION/
cp /tmp/INSTALL.txt /$CVS_PATH/$NAME-$VERSION/
cp /tmp/UPGRADE.txt /$CVS_PATH/$NAME-$VERSION/
for directory in `cd $CVS_PATH/$NAME-$VERSION && find * -type d -maxdepth 0 && cd -`
do echo $PRODUCT_PATH$directory/ >> /tmp/build-rpm-files.tmp
done
# now we will regenerate the spec file
# The line where we have %install
L_INSTALL=`grep -n "%install" $NAME.spec| sed -e "s/:/ /g" |awk '{print $1}'`
# The line where we have %clean
L_CLEAN=`grep -n "%clean" $NAME.spec| sed -e "s/:/ /g" |awk '{print $1}'`
# The line where we have %doc
L_DOC=`grep -n "%doc" $NAME.spec| sed -e "s/:/ /g" |awk '{print $1}'`
# The line where we have %changelog
L_CHANGELOG=`grep -n "%changelog" $NAME.spec| sed -e "s/:/ /g" |awk '{print $1}'`
# The total number of lines
L_TOTAL=`wc -l $NAME.spec | awk '{print $1}'`
# Take the head of the file
head -n $L_INSTALL $NAME.spec > /tmp/build-rpm-spec.tmp
cat /tmp/build-rpm-install.tmp >> /tmp/build-rpm-spec.tmp
head -n $L_DOC $NAME.spec | tail -n `expr $L_DOC - $L_CLEAN + 1` >> /tmp/build-rpm-spec.tmp
cat /tmp/build-rpm-files.tmp >> /tmp/build-rpm-spec.tmp
echo "#----------------------------------------------------------------------" >> /tmp/build-rpm-spec.tmp
tail -n `expr $L_TOTAL - $L_CHANGELOG + 1` $NAME.spec >> /tmp/build-rpm-spec.tmp
# now we can replace the spec file
cp -f /tmp/build-rpm-spec.tmp $RPM_PATH/SPECS/$NAME.spec
fi
exit 0
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment