# changelog

author: Honza Horak <hhorak@redhat.com> 1-2
changelog:
  - Don't require policycoreutils-python in RHEL-5 or older
  - Require mariadb-server from the collection as main package
  - Build separately on all arches
  - Fix Environment variables definition


author: Honza Horak <hhorak@redhat.com> 1-5
changelog:
  - Run semanage for all directories separately, since it has
    problems with definition for whole root


author: Honza Horak <hhorak@redhat.com> 1-6
changelog:
  - Run semanage on whole root, BZ#956981 is fixed now
  - Require semanage utility to be installed for -runtime package
  - Fix MANPATH definition, colon in the end is correct (it means default)
    Resolves: BZ#966384


author: Honza Horak <hhorak@redhat.com> 1-7
changelog:
  - Add CPATH variable to enable script
    Resolves: #971808
  - Define and restore SELinux context of log file
    Resolves: #971380


author: Jindrich Novy <jnovy@redhat.com> 20120927-1
changelog:
  - update to 20120927
  - better BUILDROOT processing
  - bash completition for scl command
  - debuginfo package now has SCL-specific provide
  - non-SCL builds are without warning in build log
  - improved help


author: Jindrich Novy <jnovy@redhat.com> 20121110-1
changelog:
  - introduce sclbuild utility
  - fix exporting of env. variables when mutiple collections are
    enabled at the same time
  - better bash completion
  - fix changelog


author: Jan Zeleny <jzeleny@redhat.com> - 20131015-1
changelog:
  - Correct the /var/lib and %_root_sharedstatedir macros
  - Don't install /lib64 when not necessary
  - Add LICENSE file
  - Add scl_source script
  - Don't change directory in 
  mkdir -p /builddir/build/BUILDROOT/scl-utils-20140127-1.el6.x86_64%{_root_sysconfdir}/{rpm,scl/prefixes}
  echo -n '%' > /builddir/build/BUILDROOT/scl-utils-20140127-1.el6.x86_64%{_root_sysconfdir}/rpm/macros.%{scl}-config
  cat >> /builddir/build/BUILDROOT/scl-utils-20140127-1.el6.x86_64%{_root_sysconfdir}/rpm/macros.%{scl}-config << EOF
  scl %scl
  EOF
  cat >> /builddir/build/BUILDROOT/scl-utils-20140127-1.el6.x86_64%{_root_sysconfdir}/scl/prefixes/%{scl} << EOF
  %_scl_prefix
  EOF
  set +x
  cat >> /builddir/build/BUILDROOT/scl-utils-20140127-1.el6.x86_64/lang-exceptions << EOF
  af_ZA
  am_ET
  ast_ES
  az_IR
  bg_BG
  bn_IN
  ca@valencia
  ca_ES
  ca_ES@valencian
  cs_CZ
  de_AT
  de_CH
  de_DE
  default
  el_GR
  en_AU
  en_CA
  en_GB
  en_US
  en_NZ
  es_AR
  es_CL
  es_CO
  es_CR
  es_DO
  es_EC
  es_ES
  es_GT
  es_HN
  es_MX
  es_NI
  es_PA
  es_PE
  es_PR
  es_SV
  es_UY
  es_VE
  et_EE
  eu_ES
  fa_IR
  fi_FI
  fr_BE
  fr_CA
  fr_CH
  fr_FR
  gl_ES
  he_IL
  hr_HR
  hu_HU
  it_CH
  it_IT
  ja_JP
  ko_KR
  ks@devanagari
  lv_LV
  ms_MY
  my_MM
  nb_NO
  nds_DE
  nl_BE
  nl_NL
  pl_PL
  pt_BR
  pt_PT
  ru_RU
  sl_SI
  sq_AL
  sr_RS
  sv_SE
  uk_UA
  ur_PK
  zh_CN
  zh_CN.GB2312
  zh_HK
  zh_TW
  zh_TW.Big5
  en@boldquot
  en@quot
  nds@NFE
  sr@ije
  sr@ijekavian
  sr@ijekavianlatin
  sr@latin
  sr@Latn
  uz@cyrillic
  uz@Latn
  be@latin
  en@shaw
  EOF
  cat >> /builddir/build/BUILDROOT/scl-utils-20140127-1.el6.x86_64/iso_639.sed << EOF
  1,/<iso_639_entries/b
  \!\(<iso_639_entry\|</iso_639_entries>\)!{
      x
      s/^$//
          t
          s/\s\+/ /g
      s/<iso_639_entry//
      s!/\s*>!!
          s/\(.*\)iso_639_2T_code="\([^"]\+\)"\(.*\)/\2 % \1 \3/
      s/\([^%]\+\)%\(.*\)iso_639_2B_code="\([^"]\+\)"\(.*\)/\1\t\3 % \2 \4/
          t clear
      :clear
      s/\([^%]\+\)%\(.*\)iso_639_1_code="\([^"]\+\)"\(.*\)/\1\t\3 % \2 \4/
      t name
          s/%/\tXX %/
      :name
      s/\([^%]\+\)%\(.*\)name="\([^"]\+\)"\(.*\)/\1\t\3/
      s/ \t/\t/g
      p
      b
      :noout
  }
  H
  EOF
  cat >> /builddir/build/BUILDROOT/scl-utils-20140127-1.el6.x86_64/iso_3166.sed << EOF
  1,/<iso_3166_entries/b
  \!\(<iso_3166_entry\|</iso_3166_entries>\)!{
      x
      s/^$//
          t
          s/\s\+/ /g
      s/<iso_3166_entry//
      s!/\s*>!!
          s/\(.*\)alpha_2_code="\([^"]\+\)"\(.*\)/\2 % \1 \3/
      s/\([^%]\+\)%\(.*\)alpha_3_code="\([^"]\+\)"\(.*\)/\1% \2 \4/
          t clear
      :clear
      s/\([^%]\+\)%\(.*\)numeric_code="\([^"]\+\)"\(.*\)/\1% \2 \4/
      t name
          s/%/\tXX %/
      :name
      s/\([^%]\+\)%\(.*\)name="\([^"]\+\)"\(.*\)/\1\t\3/
      s/ \t/\t/g
      p
      b
      :noout
  }
  H
  EOF
  mkdir -p /builddir/build/BUILDROOT/scl-utils-20140127-1.el6.x86_64%{_scl_root}
  cd /builddir/build/BUILDROOT/scl-utils-20140127-1.el6.x86_64%{_scl_root}
  mkdir -p mnt/{floppy,cdrom} \
          bin boot dev \
          etc/{X11/{applnk,fontpath.d},xdg/autostart,opt,pm/{config.d,power.d,sleep.d},xinetd.d,skel,sysconfig,pki} \
          home lib/modules lib64/tls media mnt opt proc root sbin selinux srv sys tmp \
          usr/{bin,etc,games,include,lib64/{games,sse2,tls,X11,pm-utils/{module.d,power.d,sleep.d}},lib/{games,locale},libexec,local/{bin,etc,games,lib,lib64,sbin,src,share/{applications,man/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x},info},libexec,include,},sbin,share/{applications,augeas/lenses,backgrounds,desktop-directories,dict,doc,empty,games,ghostscript/conf.d,gnome,icons,idl,info,man/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x,0p,1p,3p},mime-info,misc,omf,pixmaps,sounds,themes,xsessions,X11},src,src/kernels,src/debug} \
          var/{empty,lib/{games,misc},local,lock/subsys,log,nis,preserve,run,spool/{mail,lpd},tmp,db,cache,opt,games,yp}
  ln -snf ../var/tmp usr/tmp
  ln -snf spool/mail var/mail
  sed -n -f /builddir/build/BUILDROOT/scl-utils-20140127-1.el6.x86_64/iso_639.sed /usr/share/xml/iso-codes/iso_639.xml >/builddir/build/BUILDROOT/scl-utils-20140127-1.el6.x86_64/iso_639.tab
  sed -n -f /builddir/build/BUILDROOT/scl-utils-20140127-1.el6.x86_64/iso_3166.sed /usr/share/xml/iso-codes/iso_3166.xml >/builddir/build/BUILDROOT/scl-utils-20140127-1.el6.x86_64/iso_3166.tab
  grep -v "^$" /builddir/build/BUILDROOT/scl-utils-20140127-1.el6.x86_64/iso_639.tab | grep -v "^#" | while read a b c d ; do
      [[ "$d" =~ "^Reserved" ]] && continue
      [[ "$d" =~ "^No linguistic" ]] && continue
      locale=$c
      if [ "$locale" = "XX" ]; then
          locale=$b
      fi
      echo "%lang(${locale})	%{_scl_root}/usr/share/locale/${locale}" >> $RPM_BUILD_DIR/filelist
      echo "%lang(${locale}) %ghost %config(missingok) %{_scl_root}/usr/share/man/${locale}" >>$RPM_BUILD_DIR/filelist
  done
  cat /builddir/build/BUILDROOT/scl-utils-20140127-1.el6.x86_64/lang-exceptions | grep -v "^#" | grep -v "^$" | while read loc ; do
      locale=$loc
      locality=
      special=
      [[ "$locale" =~ "@" ]] && locale=${locale%@*}
      [[ "$locale" =~ "_" ]] && locality=${locale##*_}
      [[ "$locality" =~ "." ]] && locality=${locality%.*}
      [[ "$loc" =~ "_" ]] || [[ "$loc" =~ "@" ]] || special=$loc
          if [ -n "$locality" ]; then
          grep -q "^$locality" /builddir/build/BUILDROOT/scl-utils-20140127-1.el6.x86_64/iso_3166.tab || continue
      fi
          if [ -z "$special" ]; then
          egrep -q "[[:space:]]${locale%_*}[[:space:]]" \
             /builddir/build/BUILDROOT/scl-utils-20140127-1.el6.x86_64/iso_639.tab || continue
      fi
      echo "%lang(${locale})	%{_scl_root}/usr/share/locale/${loc}" >> $RPM_BUILD_DIR/filelist
      echo "%lang(${locale})  %ghost %config(missingok) %{_scl_root}/usr/share/man/${loc}" >> $RPM_BUILD_DIR/filelist
  done
  rm -f /builddir/build/BUILDROOT/scl-utils-20140127-1.el6.x86_64/iso_639.tab
  rm -f /builddir/build/BUILDROOT/scl-utils-20140127-1.el6.x86_64/iso_639.sed
  rm -f /builddir/build/BUILDROOT/scl-utils-20140127-1.el6.x86_64/iso_3166.tab
  rm -f /builddir/build/BUILDROOT/scl-utils-20140127-1.el6.x86_64/iso_3166.sed
  rm -f /builddir/build/BUILDROOT/scl-utils-20140127-1.el6.x86_64/lang-exceptions
  cat $RPM_BUILD_DIR/filelist | grep "locale" | while read a b ; do
      mkdir -p -m 755 /builddir/build/BUILDROOT/scl-utils-20140127-1.el6.x86_64/$b/LC_MESSAGES
  done
  cat $RPM_BUILD_DIR/filelist | grep "/share/man" | while read a b c d; do
      mkdir -p -m 755 /builddir/build/BUILDROOT/scl-utils-20140127-1.el6.x86_64/$d/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x,0p,1p,3p}
  done
  for i in `echo man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x,0p,1p,3p}`; do
     echo "%{_scl_root}/usr/share/man/$i" >>$RPM_BUILD_DIR/filelist
  done
  set -x

  - Don't generate provides from sonames in the SCL root
  - Add the SCL prefix to virtual provides of SCL-based packages
  - Implement "--" as a command separator
  - Removed binary file scl from git tracking
  - Fixed typo
  - Added example wrapper script.


author: Jan Zeleny <jzeleny@redhat.com> - 20140108-1
changelog:
  - split _scl_prefix macro in two parts: scl_basedir and scl_vendor (#985233)
  - check if temp file is created (#1032666)
  - don't split command arguments containing white space (#1032666)
  - rename some attr rpm macros to stop confusing rpm (#1023625)


author: Jan Zeleny <jzeleny@redhat.com> - 20140127-1
changelog:
  - don't exclude provides from SCLs (#1056183)
  - don't generate scl-package(%scl) in macros.scl, it's already
    handled in dependency generator
  - add automatic Requires: %scl_runtime to every SCL package (#1054711)


author: Miroslav Suchý <msuchy@redhat.com> 2-1
changelog:
  - rhel does not have scl_vendor macro (yet) (msuchy@redhat.com)
  - package is noarch (msuchy@redhat.com)


author: Miroslav Suchý <msuchy@redhat.com> 4-1
changelog:
  - define and clean buildroot on el5 (msuchy@redhat.com)
  - scl_vendor is not defined neither in el7 (msuchy@redhat.com)


