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