1ea029
Summary: Utilities for alternative packaging
1ea029
Name: scl-utils
1ea029
Version: 20130529
1ea029
Release: 14%{?dist}
1ea029
License: GPLv2+
1ea029
Group: Applications/File
1ea029
URL: https://fedorahosted.org/released/scl-utils/
1ea029
Source0: https://fedorahosted.org/released/scl-utils/%{name}-%{version}.tar.gz
1ea029
Source1: macros.scl-filesystem
1ea029
Source2: scl_source
1ea029
Patch0: 0001-Rename-attr-macros-so-they-are-correctly-named.patch
1ea029
Patch1: 0002-Implement-as-a-command-separator.patch
1ea029
Patch2: 0003-Mention-environment-modifying-commands-in-the-man-pa.patch
1ea029
Patch3: 0004-Check-whether-a-file-was-created-when-doing-mkstemp-.patch
1ea029
Patch4: 0005-Various-fixes-in-Provides-and-Requires-of-scl-packag.patch
1ea029
Patch5: 0006-Modified-the-behavior-of-debuginfo-generation-proces.patch
1ea029
Patch6: 0007-Changed-command-description-in-scl-man-pages.patch
1ea029
Patch7: 0008-Changed-script-paths-in-__os_install_post.patch
1ea029
Patch8: 0009-Remove-sclbuild-as-it-s-not-that-useful.patch
1ea029
Patch9: 0010-Added-capability-to-register-and-deregister-collecti.patch
1ea029
Patch10: 0011-Fix-missing-allocation-check-in-read_script_output.patch
1ea029
Patch11: 0012-Introduce-scl_dependency_generators-macro.patch
1ea029
Patch12: 0013-Add-capability-to-share-collections-using-nfs.patch
1ea029
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
1ea029
1ea029
%description
1ea029
Run-time utility for alternative packaging.
1ea029
1ea029
%package build
1ea029
Summary: RPM build macros for alternative packaging
1ea029
Group: Applications/File
1ea029
Requires: iso-codes
1ea029
Requires: redhat-rpm-config
1ea029
1ea029
%description build
1ea029
Essential RPM build macros for alternative packaging.
1ea029
1ea029
%prep
1ea029
%setup -q
1ea029
%patch0 -p1 -b .attr-names
1ea029
%patch1 -p1 -b .command-separator
1ea029
%patch2 -p1 -b .env-variables-man
1ea029
%patch3 -p1 -b .coverity-mkstemp
1ea029
%patch4 -p1
1ea029
%patch5 -p1
1ea029
%patch6 -p1
1ea029
%patch7 -p1
1ea029
%patch8 -p1
1ea029
%patch9 -p1
1ea029
%patch10 -p1
1ea029
%patch11 -p1
1ea029
%patch12 -p1
1ea029
1ea029
%build
1ea029
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS"
1ea029
1ea029
%install
1ea029
rm -rf %buildroot
1ea029
mkdir -p %buildroot%{_sysconfdir}/rpm
1ea029
mkdir -p %buildroot%{_sysconfdir}/scl/prefixes
1ea029
pushd %buildroot%{_sysconfdir}/scl
1ea029
ln -s prefixes conf
1ea029
popd
1ea029
mkdir -p %buildroot/opt/rh
1ea029
install -d -m 755 %buildroot%{_mandir}/man1
1ea029
make install DESTDIR=%buildroot
1ea029
cat %SOURCE1 >> %buildroot%{_sysconfdir}/rpm/macros.scl
1ea029
install -m 755 %SOURCE2 %buildroot%{_bindir}/scl_source
1ea029
1ea029
# remove brp-python-hardlink invocation as it is not present in RHEL5
1ea029
%if 0%{?rhel} == 5
1ea029
  sed -i -e '/^.*brp-python-hardlink.*/d' %buildroot%{_sysconfdir}/rpm/macros.scl
1ea029
%endif
1ea029
1ea029
%clean
1ea029
rm -rf %buildroot
1ea029
1ea029
%files
1ea029
%defattr(-,root,root,-)
1ea029
%dir /opt/rh
1ea029
%{_sysconfdir}/scl/conf
1ea029
%dir %{_sysconfdir}/scl/prefixes
1ea029
%{_bindir}/scl
1ea029
%{_bindir}/scl_enabled
1ea029
%{_bindir}/scl_source
1ea029
%{_mandir}/man1/*
1ea029
%{_sysconfdir}/bash_completion.d/scl.bash
1ea029
1ea029
%{!?_rpmconfigdir:%global _rpmconfigdir /usr/lib/rpm}
1ea029
%files build
1ea029
%defattr(-,root,root,-)
1ea029
%{_sysconfdir}/rpm/macros.scl
1ea029
%{_rpmconfigdir}/scldeps.sh
1ea029
%{_rpmconfigdir}/fileattrs/scl.attr
1ea029
%{_rpmconfigdir}/brp-scl-compress
1ea029
%{_rpmconfigdir}/brp-scl-python-bytecompile
1ea029
1ea029
%changelog
1ea029
* Tue Jan 06 2015 Jan Zeleny <jzeleny@redhat.com> - 20142529-14
1ea029
- remove the vendor prefix from %%scl_install
1ea029
- escape all the %% chars in changelog
1ea029
1ea029
* Mon Jan 05 2015 Jan Zeleny <jzeleny@redhat.com> - 20132529-13
1ea029
- after a thorough discussion with scl maintainers, revert the vendor prefix
1ea029
  in package names
1ea029
1ea029
* Fri Dec 12 2014 Jan Zeleny <jzeleny@redhat.com> - 20132529-12
1ea029
- the second half of the macro rename
1ea029
1ea029
* Fri Dec 12 2014 Jan Zeleny <jzeleny@redhat.com> - 20130529-11
1ea029
- renamed %%scl_pkg_prefix to %%scl_full_prefix (#1167042)
1ea029
1ea029
* Fri Dec 05 2014 Lubos Kardos <lkardos@redhat.com> - 20130529-10
1ea029
- Allow to use vendor prefix in packages names
1ea029
- Include %%nfsmountable macro into scl's rpm macros file
1ea029
1ea029
* Wed Oct 23 2014 Lubos Kardos 
1ea029
- "filesystem" is now symlink to file "filelist"
1ea029
1ea029
* Wed Oct 08 2014 Lubos Kardos 
1ea029
- Modified paths of state and conf files
1ea029
- Add owning and creating of state and conf files if nfsmountable is defined
1ea029
- Add printing file names in error messages
1ea029
1ea029
* Tue Sep 30 2014 Lubos Kardos 
1ea029
Support for importing collections from NFS mounts
1ea029
- Add execution of register and deregister scripts during registration
1ea029
  and deregistration if they exist.
1ea029
- Add capability to make collection nfs mountable using macro nfsmountable.
1ea029
1ea029
* Tue Aug 26 2014 Jan Zeleny <jzeleny@redhat.com> - 20130529-6
1ea029
Catch up with Fedora and RHEL6
1ea029
- add automatic Provides: scl-package(%%scl) to all scl packages
1ea029
  (except for metapackages)
1ea029
- add automatic Requires: %%scl_runtime to all scl packages
1ea029
  (except for metapackages)
1ea029
- the "filesystem" file renamed back to "filelist"
1ea029
- add correct dependencies to debug packages.
1ea029
- allow disabling debuginfo generation
1ea029
- remove automatic creation of debuginfo for metapackage.
1ea029
- rephrase command description in man page
1ea029
- fix system paths in __os_install_post
1ea029
- remove the sclbuild utility, as it's mostly useless
1ea029
- add the command set to register/deregister collection
1ea029
- fix missing allocation check in read_script_output()
1ea029
- drop recursive ownership of /usr/lib within SCL root
1ea029
- introduce %%scl_dependency_generators macro
1ea029
1ea029
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 20130529-5
1ea029
- Mass rebuild 2014-01-24
1ea029
1ea029
* Tue Jan 14 2014 Jan Zeleny <jzeleny@redhat.com> - 20130529-4
1ea029
- fixed some coverity-reported bugs (related: #1032616)
1ea029
- a note about env. variables in man page (#968954)
1ea029
- drop the /var/spool/uucp from the default fs structure (#1033674)
1ea029
1ea029
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 20130529-3
1ea029
- Mass rebuild 2013-12-27
1ea029
1ea029
* Thu Nov 21 2013 Jan Zeleny <jzeleny@redhat.com> - 20130529-2
1ea029
- add scl_source script for intercollection dependencies (#1032444)
1ea029
- updated macros in macros.scl-filesystem (#1032451, #1032451)
1ea029
- add delimiter between collections and command (#1032460)
1ea029
- fix the name of attr macros (#1023628)
1ea029
1ea029
* Wed May 29 2013 Jan Zeleny <jzeleny@redhat.com> - 20130529-1
1ea029
- changed the upstream tarball location
1ea029
- update to 20130529
1ea029
1ea029
* Fri Feb 01 2013 Jindrich Novy <jnovy@redhat.com> 20121110-2
1ea029
- add build compatibility fixes
1ea029
1ea029
* Wed Dec 19 2012 Jindrich Novy <jnovy@redhat.com> 20121110-1
1ea029
- introduce sclbuild utility
1ea029
- fix exporting of env. variables when mutiple collections are
1ea029
  enabled at the same time
1ea029
- better bash completion
1ea029
- fix changelog
1ea029
1ea029
* Thu Sep 27 2012 Jindrich Novy <jnovy@redhat.com> 20120927-1
1ea029
- update to 20120927
1ea029
- better BUILDROOT processing
1ea029
- bash completition for scl command
1ea029
- debuginfo package now has SCL-specific provide
1ea029
- non-SCL builds are without warning in build log
1ea029
- improved help
1ea029
1ea029
* Thu Aug 09 2012 Jindrich Novy <jnovy@redhat.com> 20120809-1
1ea029
- update to 20120809
1ea029
- processes the SCL buildroot correctly now
1ea029
1ea029
* Thu Aug 02 2012 Jindrich Novy <jnovy@redhat.com> 20120802-1
1ea029
- update to 20120802
1ea029
1ea029
* Tue Jul 31 2012 Jindrich Novy <jnovy@redhat.com> 20120731-1
1ea029
- add functionality that allows to list all packages in a collection
1ea029
- add dependency generators
1ea029
1ea029
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20120613-2
1ea029
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
1ea029
1ea029
* Wed Jun 13 2012 Jindrich Novy <jnovy@redhat.com> 20120613-1
1ea029
- Requires: iso-codes for basic filesystem in build subpackage
1ea029
- add scl_require_package() macro to depend on a particular package
1ea029
  from the collection
1ea029
- fix filesystem file list
1ea029
- tighten runtime package dependency via scl_require()
1ea029
- fix _localstatedir to point to the correct path according to redhat-rpm-config
1ea029
- thanks to Bohuslav Kabrda for feature proposals/QA/fixes
1ea029
1ea029
* Thu May 03 2012 Jindrich Novy <jnovy@redhat.com> 20120503-1
1ea029
- avoid doublefree corruption when reading commands from stdin
1ea029
1ea029
* Sun Apr 22 2012 Jindrich Novy <jnovy@redhat.com> 20120423-1
1ea029
- keep filesystem macros out of the main sources as
1ea029
  it is distro-dependent
1ea029
1ea029
* Fri Apr 13 2012 Jindrich Novy <jnovy@redhat.com> 20120413-1
1ea029
- filesystem ownership by meta package
1ea029
- add man page
1ea029
- fix memory leak when parsing commands from stdin
1ea029
- use more descriptive error message if /etc/prefixes is missing
1ea029
1ea029
* Wed Feb 29 2012 Jindrich Novy <jnovy@redhat.com> 20120229-1
1ea029
- do not prepend scl_* prefix to package names
1ea029
- unify package naming to <SCL>-package-version
1ea029
- add scl --list functionality to list available SCLs
1ea029
1ea029
* Thu Feb 09 2012 Jindrich Novy <jnovy@redhat.com> 20120209-1
1ea029
- fix minor bugs (#788194)
1ea029
  - clear temp files
1ea029
  - handle commands from stdin properly
1ea029
  - run command even if ran as "scl enable SCL command" from already
1ea029
    enabled SCL
1ea029
1ea029
* Wed Jan 25 2012 Jindrich Novy <jnovy@redhat.com> 20120125-1
1ea029
- remove dsc macros
1ea029
- trigger scl-utils-build BR inclusion while using scl macros
1ea029
1ea029
* Wed Jan 11 2012 Jindrich Novy <jnovy@redhat.com> 20120111-1
1ea029
- add "dsc" alias to "scl" utility
1ea029
1ea029
* Wed Dec 14 2011 Jindrich Novy <jnovy@redhat.com> 20111214-1
1ea029
- initial review fixes (#767556)
1ea029
1ea029
* Fri Dec  9 2011 Jindrich Novy <jnovy@redhat.com> 20111209-1
1ea029
- allow to use dsc_* macros and dsc* package naming
1ea029
1ea029
* Wed Nov 16 2011 Jindrich Novy <jnovy@redhat.com> 20111116-1
1ea029
- package is now named scl-utils
1ea029
1ea029
* Mon Oct 17 2011 Jindrich Novy <jnovy@redhat.com> 20111017-1
1ea029
- initial packaging for upstream
1ea029
1ea029
* Wed Sep 21 2011 Jindrich Novy <jnovy@redhat.com> 0.1-14
1ea029
- define %%_defaultdocdir to properly relocate docs into
1ea029
  a stack
1ea029
- document a way how to pass command to stack via stdin
1ea029
1ea029
* Wed Jun 22 2011 Jindrich Novy <jnovy@redhat.com> 0.1-13
1ea029
- fix Stack meta config configuration
1ea029
1ea029
* Fri Jun 17 2011 Jindrich Novy <jnovy@redhat.com> 0.1-12
1ea029
- use own Stack path configuration mechanism
1ea029
1ea029
* Fri Jun 17 2011 Jindrich Novy <jnovy@redhat.com> 0.1-11
1ea029
- avoid redefinition of %%_root* macros by multiple
1ea029
  occurence of %%stack_package
1ea029
- make the Stack root path configurable
1ea029
1ea029
* Tue Jun 14 2011 Jindrich Novy <jnovy@redhat.com> 0.1-10
1ea029
- stack utility allows to read command from stdin
1ea029
1ea029
* Mon Jun 13 2011 Jindrich Novy <jnovy@redhat.com> 0.1-9
1ea029
- introduce stack enablement tracking
1ea029
- introduce "stack_enabled" helper utility to let a stack
1ea029
  application figure out which stacks are actually enabled
1ea029
- disallow running stacks recursively
1ea029
1ea029
* Mon Jun 13 2011 Jindrich Novy <jnovy@redhat.com> 0.1-8
1ea029
- stack utility returns executed commands' exit value
1ea029
1ea029
* Fri Jun 10 2011 Jindrich Novy <jnovy@redhat.com> 0.1-7
1ea029
- fix possible segfault in the stack utility
1ea029
1ea029
* Fri Jun 10 2011 Jindrich Novy <jnovy@redhat.com> 0.1-6
1ea029
- %%stack_name: initial part of stack prefix and name of
1ea029
  meta package providing scriptlets
1ea029
- %%stack_prefix: stack namespacing part to be prepended to
1ea029
  original non-stack package name, can be used for Provides
1ea029
  namespacing as well
1ea029
- %%stack_runtime: run-time package name providing scriptlets
1ea029
- %%stack_require: macro to define dependency to other stacks
1ea029
1ea029
* Thu Jun 09 2011 Jindrich Novy <jnovy@redhat.com> 0.1-5
1ea029
- split the package into two - runtime and build part
1ea029
- decrease verbosity when enabling a stack
1ea029
1ea029
* Wed Jun 08 2011 Jindrich Novy <jnovy@redhat.com> 0.1-4
1ea029
- prepend stack package with stack_* to prevent namespace
1ea029
  conflicts with core packages
1ea029
1ea029
* Thu Jun 02 2011 Jindrich Novy <jnovy@redhat.com> 0.1-3
1ea029
- introduce metapackage concept
1ea029
1ea029
* Wed Jun 01 2011 Jindrich Novy <jnovy@redhat.com> 0.1-2
1ea029
- modify macros so that they don't change preamble tags
1ea029
1ea029
* Sun May 08 2011 Jindrich Novy <jnovy@redhat.com> 0.1-1
1ea029
- initial packaging