33589e
Summary:	Utilities for alternative packaging
33589e
Name:		scl-utils
33589e
Version:	20130529
33589e
Release:	1%{?dist}
33589e
License:	GPLv2+
33589e
Group:		Applications/File
33589e
URL:		https://fedorahosted.org/released/scl-utils/
33589e
Source0:	https://fedorahosted.org/released/scl-utils/%{name}-%{version}.tar.gz
33589e
Source1:	macros.scl-filesystem
33589e
Buildroot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
33589e
33589e
%description
33589e
Run-time utility for alternative packaging.
33589e
33589e
%package build
33589e
Summary:	RPM build macros for alternative packaging
33589e
Group:		Applications/File
33589e
Requires:	iso-codes
33589e
Requires:	redhat-rpm-config
33589e
33589e
%description build
33589e
Essential RPM build macros for alternative packaging.
33589e
33589e
%prep
33589e
%setup -q
33589e
33589e
%build
33589e
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS"
33589e
33589e
%install
33589e
rm -rf %buildroot
33589e
mkdir -p %buildroot%{_sysconfdir}/rpm
33589e
mkdir -p %buildroot%{_sysconfdir}/scl/prefixes
33589e
pushd %buildroot%{_sysconfdir}/scl
33589e
ln -s prefixes conf
33589e
popd
33589e
mkdir -p %buildroot/opt/rh
33589e
install -d -m 755 %buildroot%{_mandir}/man1
33589e
make install DESTDIR=%buildroot
33589e
cat %SOURCE1 >> %buildroot%{_sysconfdir}/rpm/macros.scl
33589e
33589e
# remove brp-python-hardlink invocation as it is not present in RHEL5
33589e
%if 0%{?rhel} == 5
33589e
  sed -i -e '/^.*brp-python-hardlink.*/d' %buildroot%{_sysconfdir}/rpm/macros.scl
33589e
%endif
33589e
33589e
%clean
33589e
rm -rf %buildroot
33589e
33589e
%files
33589e
%defattr(-,root,root,-)
33589e
%dir /opt/rh
33589e
%dir %{_sysconfdir}/scl/conf
33589e
%dir %{_sysconfdir}/scl/prefixes
33589e
%{_bindir}/scl
33589e
%{_bindir}/scl_enabled
33589e
%{_mandir}/man1/*
33589e
%{_sysconfdir}/bash_completion.d/scl.bash
33589e
33589e
%{!?_rpmconfigdir:%global _rpmconfigdir /usr/lib/rpm}
33589e
%files build
33589e
%defattr(-,root,root,-)
33589e
%{_bindir}/sclbuild
33589e
%{_sysconfdir}/rpm/macros.scl
33589e
%{_rpmconfigdir}/scldeps.sh
33589e
%{_rpmconfigdir}/fileattrs/scl.attr
33589e
%{_rpmconfigdir}/brp-scl-compress
33589e
%{_rpmconfigdir}/brp-scl-python-bytecompile
33589e
33589e
%changelog
33589e
* Wed May 29 2013 Jan Zeleny <jzeleny@redhat.com> - 20130529-1
33589e
- changed the upstream tarball location
33589e
- update to 20130529
33589e
33589e
* Fri Feb 01 2013 Jindrich Novy <jnovy@redhat.com> 20121110-2
33589e
- add build compatibility fixes
33589e
33589e
* Wed Dec 19 2012 Jindrich Novy <jnovy@redhat.com> 20121110-1
33589e
- introduce sclbuild utility
33589e
- fix exporting of env. variables when mutiple collections are
33589e
  enabled at the same time
33589e
- better bash completion
33589e
- fix changelog
33589e
33589e
* Thu Sep 27 2012 Jindrich Novy <jnovy@redhat.com> 20120927-1
33589e
- update to 20120927
33589e
- better BUILDROOT processing
33589e
- bash completition for scl command
33589e
- debuginfo package now has SCL-specific provide
33589e
- non-SCL builds are without warning in build log
33589e
- improved help
33589e
33589e
* Thu Aug 09 2012 Jindrich Novy <jnovy@redhat.com> 20120809-1
33589e
- update to 20120809
33589e
- processes the SCL buildroot correctly now
33589e
33589e
* Thu Aug 02 2012 Jindrich Novy <jnovy@redhat.com> 20120802-1
33589e
- update to 20120802
33589e
33589e
* Tue Jul 31 2012 Jindrich Novy <jnovy@redhat.com> 20120731-1
33589e
- add functionality that allows to list all packages in a collection
33589e
- add dependency generators
33589e
33589e
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20120613-2
33589e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
33589e
33589e
* Wed Jun 13 2012 Jindrich Novy <jnovy@redhat.com> 20120613-1
33589e
- Requires: iso-codes for basic filesystem in build subpackage
33589e
- add scl_require_package() macro to depend on a particular package
33589e
  from the collection
33589e
- fix filesystem file list
33589e
- tighten runtime package dependency via scl_require()
33589e
- fix _localstatedir to point to the correct path according to redhat-rpm-config
33589e
- thanks to Bohuslav Kabrda for feature proposals/QA/fixes
33589e
33589e
* Thu May 03 2012 Jindrich Novy <jnovy@redhat.com> 20120503-1
33589e
- avoid doublefree corruption when reading commands from stdin
33589e
33589e
* Sun Apr 22 2012 Jindrich Novy <jnovy@redhat.com> 20120423-1
33589e
- keep filesystem macros out of the main sources as
33589e
  it is distro-dependent
33589e
33589e
* Fri Apr 13 2012 Jindrich Novy <jnovy@redhat.com> 20120413-1
33589e
- filesystem ownership by meta package
33589e
- add man page
33589e
- fix memory leak when parsing commands from stdin
33589e
- use more descriptive error message if /etc/prefixes is missing
33589e
33589e
* Wed Feb 29 2012 Jindrich Novy <jnovy@redhat.com> 20120229-1
33589e
- do not prepend scl_* prefix to package names
33589e
- unify package naming to <SCL>-package-version
33589e
- add scl --list functionality to list available SCLs
33589e
33589e
* Thu Feb 09 2012 Jindrich Novy <jnovy@redhat.com> 20120209-1
33589e
- fix minor bugs (#788194)
33589e
  - clear temp files
33589e
  - handle commands from stdin properly
33589e
  - run command even if ran as "scl enable SCL command" from already
33589e
    enabled SCL
33589e
33589e
* Wed Jan 25 2012 Jindrich Novy <jnovy@redhat.com> 20120125-1
33589e
- remove dsc macros
33589e
- trigger scl-utils-build BR inclusion while using scl macros
33589e
33589e
* Wed Jan 11 2012 Jindrich Novy <jnovy@redhat.com> 20120111-1
33589e
- add "dsc" alias to "scl" utility
33589e
33589e
* Wed Dec 14 2011 Jindrich Novy <jnovy@redhat.com> 20111214-1
33589e
- initial review fixes (#767556)
33589e
33589e
* Fri Dec  9 2011 Jindrich Novy <jnovy@redhat.com> 20111209-1
33589e
- allow to use dsc_* macros and dsc* package naming
33589e
33589e
* Wed Nov 16 2011 Jindrich Novy <jnovy@redhat.com> 20111116-1
33589e
- package is now named scl-utils
33589e
33589e
* Mon Oct 17 2011 Jindrich Novy <jnovy@redhat.com> 20111017-1
33589e
- initial packaging for upstream
33589e
33589e
* Wed Sep 21 2011 Jindrich Novy <jnovy@redhat.com> 0.1-14
33589e
- define %%_defaultdocdir to properly relocate docs into
33589e
  a stack
33589e
- document a way how to pass command to stack via stdin
33589e
33589e
* Wed Jun 22 2011 Jindrich Novy <jnovy@redhat.com> 0.1-13
33589e
- fix Stack meta config configuration
33589e
33589e
* Fri Jun 17 2011 Jindrich Novy <jnovy@redhat.com> 0.1-12
33589e
- use own Stack path configuration mechanism
33589e
33589e
* Fri Jun 17 2011 Jindrich Novy <jnovy@redhat.com> 0.1-11
33589e
- avoid redefinition of %%_root* macros by multiple
33589e
  occurence of %%stack_package
33589e
- make the Stack root path configurable
33589e
33589e
* Tue Jun 14 2011 Jindrich Novy <jnovy@redhat.com> 0.1-10
33589e
- stack utility allows to read command from stdin
33589e
33589e
* Mon Jun 13 2011 Jindrich Novy <jnovy@redhat.com> 0.1-9
33589e
- introduce stack enablement tracking
33589e
- introduce "stack_enabled" helper utility to let a stack
33589e
  application figure out which stacks are actually enabled
33589e
- disallow running stacks recursively
33589e
33589e
* Mon Jun 13 2011 Jindrich Novy <jnovy@redhat.com> 0.1-8
33589e
- stack utility returns executed commands' exit value
33589e
33589e
* Fri Jun 10 2011 Jindrich Novy <jnovy@redhat.com> 0.1-7
33589e
- fix possible segfault in the stack utility
33589e
33589e
* Fri Jun 10 2011 Jindrich Novy <jnovy@redhat.com> 0.1-6
33589e
- %%stack_name: initial part of stack prefix and name of
33589e
  meta package providing scriptlets
33589e
- %%stack_prefix: stack namespacing part to be prepended to
33589e
  original non-stack package name, can be used for Provides
33589e
  namespacing as well
33589e
- %%stack_runtime: run-time package name providing scriptlets
33589e
- %%stack_require: macro to define dependency to other stacks
33589e
33589e
* Thu Jun 09 2011 Jindrich Novy <jnovy@redhat.com> 0.1-5
33589e
- split the package into two - runtime and build part
33589e
- decrease verbosity when enabling a stack
33589e
33589e
* Wed Jun 08 2011 Jindrich Novy <jnovy@redhat.com> 0.1-4
33589e
- prepend stack package with stack_* to prevent namespace
33589e
  conflicts with core packages
33589e
33589e
* Thu Jun 02 2011 Jindrich Novy <jnovy@redhat.com> 0.1-3
33589e
- introduce metapackage concept
33589e
33589e
* Wed Jun 01 2011 Jindrich Novy <jnovy@redhat.com> 0.1-2
33589e
- modify macros so that they don't change preamble tags
33589e
33589e
* Sun May 08 2011 Jindrich Novy <jnovy@redhat.com> 0.1-1
33589e
- initial packaging