This prepares 'client' distribution of version 0.9.15. The package will
have the version 0.9.15 automatically.
+NOTE: Those distribution that have RPM spec files you should specify the
+RPM release version to autodist also by doing the following:
+
+ autodist toolkit 1.1.2 0.fc7
+
+where the "0.fc7" will become the RPM release version. If you omit the
+release version the default currently is "0.fc7".
+
Configuring and compiling the distribution
==========================================
%clean
rm -rf $RPM_BUILD_ROOT
-%post
-/sbin/install-info %{_infodir}/autodist.info %{_infodir}/dir || :
-
-%prerun
-if [ "$1" = 0 ]; then
- /sbin/install-info --del %{_infodir}/autodist.info %{_infodir}/dir || :
-fi
-
%files
%defattr(-, root, root, -)
%{_bindir}/*
name SILC Autodist
package autodist
bug-report autodist-bugs@silcnet.org
+prereq 1.3.2
license apps/autodist/COPYING
license-header distdir/GPL-header distdir/BSD-header
rm -rf `find $distdir -name Makefile`
fi
-sed -e "s/AUTODIST_VERSION/$dist_version/" apps/autodist/autodist.spec.in \
- > $distdir/autodist.spec
+release=$5
+if test -z $release; then
+ release="0.fc7"
+fi
+
+sed -e "s/AUTODIST_VERSION/$dist_version/" -e "s/AUTODIST_RELEASE/$release/" \
+ apps/autodist/autodist.spec.in > $distdir/autodist.spec
dist_version=$2
package=$3
distdir=$4
+release=$5
-sed -e "s/SILC_VERSION/$dist_version/" silc-toolkit.spec.in > silc-toolkit.spec
+if test -z $release; then
+ release="0.fc7"
+fi
+
+sed -e "s/SILC_VERSION/$dist_version/" -e "s/SILC_RELEASE/$release/" \
+ silc-toolkit.spec.in > silc-toolkit.spec
./configure
name Toolkit
package silc-toolkit
bug-report silc-devel@lists.silcnet.org
+prereq 1.3.2
# Inherits
inherit common
Summary: SILC Toolkit
Name: silc-toolkit
Version: SILC_VERSION
-Release: 0.fc6
+Release: SILC_RELEASE
License: GPL/BSD dual licensed
Group: System Environment/Libraries
URL: http://silcnet.org/