You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

55 lines
2.3 KiB

  1. # brand is lower case - used for names that don't appear to end users
  2. # brand is used for file naming - should contain no spaces
  3. brand=389
  4. # capbrand is the properly capitalized brand name that appears to end users
  5. # may contain spaces
  6. capbrand=389
  7. # vendor is the properly formatted vendor/manufacturer name that appears to end users
  8. vendor="389 Project"
  9. # PACKAGE_VERSION is constructed from these
  10. VERSION_MAJOR=1
  11. VERSION_MINOR=4
  12. VERSION_MAINT=4.8
  13. # NOTE: VERSION_PREREL is automatically set for builds made out of a git tree
  14. VERSION_PREREL=
  15. VERSION_DATE=$(date -u +%Y%m%d)
  16. # Set the version and release numbers for local developer RPM builds. We
  17. # set these here because we do not want the git commit hash in the RPM
  18. # version since it can make RPM upgrades difficult. If we have a git
  19. # commit hash, we add it into the release number below.
  20. RPM_RELEASE=${VERSION_DATE}
  21. RPM_VERSION=${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_MAINT}
  22. if $(git -C "$srcdir" rev-parse --is-inside-work-tree > /dev/null 2>&1); then
  23. # Check if the source is from a git repo
  24. # if this is not a git repo, git log will say
  25. # fatal: Not a git repository
  26. # to stderr and stdout will be empty
  27. # this tells git to print the short commit hash from the last commit
  28. COMMIT=$(git -C "$srcdir" log -1 --pretty=format:%h 2> /dev/null)
  29. if test -n "$COMMIT" ; then
  30. VERSION_PREREL=.${VERSION_DATE}git$COMMIT
  31. RPM_RELEASE=${RPM_RELEASE}git$COMMIT
  32. fi
  33. fi
  34. # the real version used throughout configure and make
  35. # NOTE: because of autoconf/automake harshness, we cannot override the settings
  36. # below in C code - there is no way to override the default #defines
  37. # for these set with AC_INIT - so configure.ac should AC_DEFINE
  38. # DS_PACKAGE_VERSION DS_PACKAGE_TARNAME DS_PACKAGE_BUGREPORT
  39. # for use in C code - other code (perl scripts, shell scripts, Makefiles)
  40. # can use PACKAGE_VERSION et. al.
  41. PACKAGE_VERSION=$VERSION_MAJOR.$VERSION_MINOR.${VERSION_MAINT}${VERSION_PREREL}
  42. # the name of the source tarball - see make dist
  43. PACKAGE_TARNAME=${brand}-ds-base
  44. # url for bug reports
  45. PACKAGE_BUGREPORT="${PACKAGE_BUGREPORT}enter_bug.cgi?product=$brand"
  46. PACKAGE_STRING="$PACKAGE_TARNAME $PACKAGE_VERSION"
  47. # the version of the ds console package that this directory server
  48. # is compatible with
  49. # console .2 is still compatible with 389 .3 for now
  50. CONSOLE_VERSION=$VERSION_MAJOR.2