28453c
Summary: Utilities for alternative packaging
28453c
Name: scl-utils
28453c
Version: 20130529
0e5a20
Release: 18%{?dist}
28453c
License: GPLv2+
28453c
Group: Applications/File
28453c
URL: https://fedorahosted.org/released/scl-utils/
28453c
Source0: https://fedorahosted.org/released/scl-utils/%{name}-%{version}.tar.gz
28453c
Source1: macros.scl-filesystem
28453c
Source2: scl_source
28453c
Patch0: 0001-Rename-attr-macros-so-they-are-correctly-named.patch
28453c
Patch1: 0002-Implement-as-a-command-separator.patch
28453c
Patch2: 0003-Mention-environment-modifying-commands-in-the-man-pa.patch
28453c
Patch3: 0004-Check-whether-a-file-was-created-when-doing-mkstemp-.patch
39593f
Patch4: 0005-Various-fixes-in-Provides-and-Requires-of-scl-packag.patch
39593f
Patch5: 0006-Modified-the-behavior-of-debuginfo-generation-proces.patch
39593f
Patch6: 0007-Changed-command-description-in-scl-man-pages.patch
39593f
Patch7: 0008-Changed-script-paths-in-__os_install_post.patch
39593f
Patch8: 0009-Remove-sclbuild-as-it-s-not-that-useful.patch
39593f
Patch9: 0010-Added-capability-to-register-and-deregister-collecti.patch
39593f
Patch10: 0011-Fix-missing-allocation-check-in-read_script_output.patch
39593f
Patch11: 0012-Introduce-scl_dependency_generators-macro.patch
39593f
Patch12: 0013-Add-capability-to-share-collections-using-nfs.patch
0e5a20
Patch14: scl-utils-20130529-shebang.patch
28453c
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
33589e
33589e
%description
33589e
Run-time utility for alternative packaging.
33589e
33589e
%package build
28453c
Summary: RPM build macros for alternative packaging
28453c
Group: Applications/File
28453c
Requires: iso-codes
28453c
Requires: redhat-rpm-config
33589e
33589e
%description build
33589e
Essential RPM build macros for alternative packaging.
33589e
33589e
%prep
33589e
%setup -q
28453c
%patch0 -p1 -b .attr-names
28453c
%patch1 -p1 -b .command-separator
28453c
%patch2 -p1 -b .env-variables-man
28453c
%patch3 -p1 -b .coverity-mkstemp
39593f
%patch4 -p1
39593f
%patch5 -p1
39593f
%patch6 -p1
39593f
%patch7 -p1
39593f
%patch8 -p1
39593f
%patch9 -p1
39593f
%patch10 -p1
39593f
%patch11 -p1
39593f
%patch12 -p1
0e5a20
%patch14 -p1 -b .shebang
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
28453c
install -m 755 %SOURCE2 %buildroot%{_bindir}/scl_source
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
28453c
%{_sysconfdir}/scl/conf
33589e
%dir %{_sysconfdir}/scl/prefixes
33589e
%{_bindir}/scl
33589e
%{_bindir}/scl_enabled
28453c
%{_bindir}/scl_source
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
%{_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
0e5a20
* Fri Jan 13 2017 Joe Orton <jorton@redhat.com> - 20130529-18
0e5a20
- fix "scl enable" usage in shebang lines (#1372700)
0e5a20
0e5a20
* Thu Mar 05 2015 Lubos Karddos <lkardos@redhat.com> - 20130529-17
d1a94d
- Remove /uucp/ from directory structure.
d1a94d
d1a94d
* Thu Mar 05 2015 Lubos Karddos <lkardos@redhat.com> - 20130529-16
d1a94d
- Remove /scls/ from macros  _sysconfdir, _sharedstatedir and _localstatedir
d1a94d
d1a94d
* Tue Jan 27 2015 Lubos Karddos <lkardos@redhat.com> - 20130529-15
d1a94d
- fixed wrong syntax of or-operator in scl.attr
d1a94d
d1a94d
* Tue Jan 06 2015 Jan Zeleny <jzeleny@redhat.com> - 20142529-14
d1a94d
- remove the vendor prefix from %%scl_install
d1a94d
d1a94d
* Tue Jan 06 2015 Jan Zeleny <jzeleny@redhat.com> - 20130529-13
d1a94d
- bump the version to get in sync with 7.1 branch
d1a94d
- Reflect the state of %%nfsmountable macro in collections' rpm macro files
d1a94d
- escape all the %% chars in changelog
d1a94d
d1a94d
* Mon Jan 05 2015 Jan Zeleny <jzeleny@redhat.com> - 20132529-13
d1a94d
- after a thorough discussion with scl maintainers, revert the vendor prefix
d1a94d
  in package names
d1a94d
d1a94d
* Fri Dec 12 2014 Jan Zeleny <jzeleny@redhat.com> - 20132529-12
d1a94d
- the second half of the macro rename
d1a94d
d1a94d
* Fri Dec 12 2014 Jan Zeleny <jzeleny@redhat.com> - 20130529-11
d1a94d
- renamed %%scl_pkg_prefix to %%scl_full_prefix (#1167042)
d1a94d
d1a94d
* Fri Dec 05 2014 Lubos Kardos <lkardos@redhat.com> - 20130529-10
d1a94d
- Allow to use vendor prefix in packages names
d1a94d
- Include %%nfsmountable macro into scl's rpm macros file
d1a94d
0e5a20
* Wed Oct 22 2014 Lubos Kardos <lkardos@redhat.com> - 20130529-9
39593f
- "filesystem" is now symlink to file "filelist"
39593f
39593f
* Wed Oct 08 2014 Lubos Kardos 
39593f
- Modified paths of state and conf files
39593f
- Add owning and creating of state and conf files if nfsmountable is defined
39593f
- Add printing file names in error messages
39593f
39593f
* Tue Sep 30 2014 Lubos Kardos 
39593f
Support for importing collections from NFS mounts
39593f
- Add execution of register and deregister scripts during registration
39593f
  and deregistration if they exist.
39593f
- Add capability to make collection nfs mountable using macro nfsmountable.
39593f
39593f
* Tue Aug 26 2014 Jan Zeleny <jzeleny@redhat.com> - 20130529-6
39593f
Catch up with Fedora and RHEL6
d1a94d
- add automatic Provides: scl-package(%%scl) to all scl packages
39593f
  (except for metapackages)
d1a94d
- add automatic Requires: %%scl_runtime to all scl packages
39593f
  (except for metapackages)
39593f
- the "filesystem" file renamed back to "filelist"
39593f
- add correct dependencies to debug packages.
39593f
- allow disabling debuginfo generation
39593f
- remove automatic creation of debuginfo for metapackage.
39593f
- rephrase command description in man page
39593f
- fix system paths in __os_install_post
39593f
- remove the sclbuild utility, as it's mostly useless
39593f
- add the command set to register/deregister collection
39593f
- fix missing allocation check in read_script_output()
39593f
- drop recursive ownership of /usr/lib within SCL root
d1a94d
- introduce %%scl_dependency_generators macro
39593f
28453c
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 20130529-5
28453c
- Mass rebuild 2014-01-24
28453c
28453c
* Tue Jan 14 2014 Jan Zeleny <jzeleny@redhat.com> - 20130529-4
28453c
- fixed some coverity-reported bugs (related: #1032616)
28453c
- a note about env. variables in man page (#968954)
28453c
- drop the /var/spool/uucp from the default fs structure (#1033674)
28453c
28453c
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 20130529-3
28453c
- Mass rebuild 2013-12-27
28453c
28453c
* Thu Nov 21 2013 Jan Zeleny <jzeleny@redhat.com> - 20130529-2
28453c
- add scl_source script for intercollection dependencies (#1032444)
28453c
- updated macros in macros.scl-filesystem (#1032451, #1032451)
28453c
- add delimiter between collections and command (#1032460)
28453c
- fix the name of attr macros (#1023628)
28453c
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
0e5a20
* Thu Sep 22 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