$(TOPDIR), make: Start new build architecture

Intermediate commit of half done transition to new build
architecture.
This commit is contained in:
Jan Lindemann 2002-06-10 14:28:18 +00:00 committed by Jan Lindemann
commit a702e5b714
9 changed files with 142 additions and 50 deletions

View file

@ -37,15 +37,15 @@ shift
if [ -z "$V" ]; then
if [ -f $TOPDIR/VERSION ]; then
VERSION="`cat $TOPDIR/VERSION | cut -d. -f-3`"
RELEASE="`cat $TOPDIR/VERSION | cut -d. -f4-`"
VERSION="`cat $TOPDIR/VERSION | cut -d- -f1`"
RELEASE="`cat $TOPDIR/VERSION | cut -d- -f2-`"
else
VERSION=noversion
RELEASE=norelease
fi
else
VERSION="`echo $V | cut -d. -f-3`"
RELEASE="`echo $V | cut -d. -f4-`"
VERSION="`echo $V | cut -d- -f1`"
RELEASE="`echo $V | cut -d- -f2-`"
fi
if [ -z "$NAME" ]; then
@ -61,12 +61,24 @@ echo "Group: System Environment/Libraries"
[ -n "$SOURCE" ] && echo "Source: $SOURCE"
echo "Vendor: Jannet IT Services, Berlin"
echo "URL: http://www.jannet.de"
echo "BuildRoot: /var/tmp/%{name}-buildroot"
echo "%define post /sbin/ldconfig"
#echo "%define __spec_install_post /sbin/ldconfig"
echo ""
echo "%description"
echo "Tool collection containing various programming and networking tools and"
echo "a lightweight middleware suite."
echo "This is a library providing easy-to-use interfaces for:"
echo ""
echo "+ platform independent logging"
echo "+ platform independent locking"
echo "+ platform independent threads"
echo "+ platform independent profiling"
echo "+ a platform independent config file reader"
echo "+ shared memory"
echo "+ a lightweight middleware suite"
echo ""
echo "It was originally designed to be a versatile pool of"
echo "programming tools to be used in my projects as a freelancing"
echo "software developer."
echo ""
echo "%prep"
#echo "echo hallo"
@ -93,14 +105,15 @@ echo ""
#echo "%post /sbin/ldconfig"
echo ""
echo "%clean"
echo 'rm -rf $RPM_BUILD_ROOT/usr/'
echo 'rm -rf $RPM_BUILD_ROOT/opt/ytools/'
echo 'rm -rf $RPM_BUILD_ROOT'
echo ""
echo "%files"
echo '%defattr (-, root, root)'
echo "%dir /opt/ytools/lib"
find /opt/ytools/lib -type f
echo "%dir /usr/share/doc/packages/ytools"
find /usr/share/doc/packages/ytools -type f
#echo "%dir /opt/ytools/lib"
echo "/opt/ytools/lib"
#find /opt/ytools/lib -type f
#echo "%dir /usr/share/doc/packages/ytools"
echo "/usr/share/doc/packages/ytools"
#find /usr/share/doc/packages/ytools -type f
echo ""