jw-pkg/make/mkspec.sh

71 lines
2.3 KiB
Bash
Raw Normal View History

2002-06-08 11:58:47 +00:00
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"
2002-06-08 11:58:47 +00:00
echo "URL: http://www.jannet.de"
echo "BuildRoot: /var/tmp/%{name}-buildroot"
2002-06-08 11:58:47 +00:00
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."
2002-06-08 11:58:47 +00:00
echo ""
2002-07-01 18:26:01 +00:00
echo "%package -n $NAME-run"
echo "Summary: The runtime library package."
echo "Group: System Environment/Libraries"
echo "Provides: $NAME = $VERSION"
2002-07-01 18:26:01 +00:00
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
2002-07-01 18:26:01 +00:00
echo "%description -n $NAME-devel"
echo "development library package of the ytools library"
echo ""
#echo "%debug_package"
2002-06-08 11:58:47 +00:00
echo "%prep"
echo "%setup -q -n $NAME-$V"
echo ""
echo "%build"
echo 'pwd'
2002-07-25 20:38:21 +00:00
echo 'make config'
2002-06-08 11:58:47 +00:00
echo 'make'
echo ""
echo "%install"
echo "export ENV_PREFIX=\$RPM_BUILD_ROOT/"
2002-07-01 18:26:01 +00:00
echo "export INSTALL_LOG=$INSTALL_LOG"
2002-07-03 20:33:20 +00:00
echo "rm -rf `dirname $INSTALL_LOG`"
2002-07-01 18:26:01 +00:00
echo "mkdir -p `dirname $INSTALL_LOG`"
echo "> $INSTALL_LOG"
echo "make install"
echo "cat $INSTALL_LOG | sed \"s% \$RPM_BUILD_ROOT% %\" | grep -ve '"$FILTER_DEVEL"' > $INSTALL_LOG-run"
echo "cat $INSTALL_LOG | sed \"s% \$RPM_BUILD_ROOT% %\" | grep -e '"$FILTER_DEVEL"' > $INSTALL_LOG-devel"
2002-06-08 11:58:47 +00:00
echo ""
echo "%post -n $NAME-run"
2009-04-07 18:34:21 +00:00
if [ "$TARGET" != mingw ]; then
echo "/opt/ytools/bin/jcs init"
echo "if [ -x /sbin/mkinitrd_setup ]; then /sbin/mkinitrd_setup; fi"
2009-04-07 18:34:21 +00:00
fi
2002-06-08 11:58:47 +00:00
echo ""
echo "%clean"
2002-07-03 20:33:20 +00:00
echo "%files -n $NAME-run -f $INSTALL_LOG-run"
echo "%files -n $NAME-devel -f $INSTALL_LOG-devel"
2002-06-08 11:58:47 +00:00
echo '%defattr (-, root, root)'
echo ""