echo "Name: $NAME" echo "Summary: Jannet IT Services Tool Library" echo "Version: $VERSION" echo "Release: $RELEASE" echo "License: LGPL" 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 "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 "%package -n $NAME-run" echo "Summary: The runtime library package." echo "Group: System Environment/Libraries" echo "%description -n $NAME-run" echo "runtime library package of the ytools library" echo "" echo "%package -n $NAME-devel" echo "Summary: The development library package." echo "Group: System Environment/Libraries" if [ -n "$REQUIRES_DEVEL" ]; then echo "Requires: $REQUIRES_DEVEL"; fi echo "%description -n $NAME-devel" echo "development library package of the ytools library" echo "" echo "%prep" #echo "echo hallo" echo "%setup -q -n $NAME-$V" #echo "%setup -c" #echo 'echo prep; pwd' echo "" echo "%build" echo 'pwd' #echo 'make clean libclean' echo 'make config' echo 'make' echo "" echo "%install" #echo 'mkdir -p $RPM_BUILD_ROOT/' #echo 'mkdir -p $RPM_BUILD_ROOT/opt/ytools/lib' #echo 'mkdir -p $RPM_BUILD_ROOT/usr/share/doc/packages/ytools' #echo 'pwd' echo "export ENV_PREFIX=\$RPM_BUILD_ROOT" echo "export INSTALL_LOG=$INSTALL_LOG" echo "rm -rf `dirname $INSTALL_LOG`" echo "mkdir -p `dirname $INSTALL_LOG`" echo "> $INSTALL_LOG" echo "make install" echo "cat $INSTALL_LOG | sed \"s% \$RPM_BUILD_ROOT% %\" | grep -ve '//include/.*.h$\|devel\|make\|lib.*\.a$\|lib.*\.so$' > $INSTALL_LOG-run" echo "cat $INSTALL_LOG | sed \"s% \$RPM_BUILD_ROOT% %\" | grep -e '//include/.*.h$\|devel\|make\|lib.*\.a$\|lib.*\.so$' > $INSTALL_LOG-devel" #echo "install -m 755 $TOPDIR/lib/*.so \$RPM_BUILD_ROOT/opt/ytools/lib" #echo "install -m 644 $TOPDIR/doc/ytools/dist/* \$RPM_BUILD_ROOT/usr/share/doc/packages/ytools" #echo "install -m 644 $TOPDIR/COPYING \$RPM_BUILD_ROOT/usr/share/doc/packages/ytools" #echo "echo $VERSION.$RELEASE > \$RPM_BUILD_ROOT/usr/share/doc/packages/ytools/VERSION" echo "" echo "%post -n $NAME-run" if [ "$TARGET" != mingw ]; then echo "/opt/ytools/bin/jcs init"; fi echo "" echo "%clean" #echo 'rm -rf $RPM_BUILD_ROOT' echo "%files -n $NAME-run -f $INSTALL_LOG-run" echo "%files -n $NAME-devel -f $INSTALL_LOG-devel" echo '%defattr (-, root, root)' #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 ""