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