44d697
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
44d697
44d697
Name:       scl-utils
44d697
Epoch:      1
44d697
Version:    2.0.2
d7fcff
Release:    15%{?dist}
44d697
Summary:    Utilities for alternative packaging
44d697
44d697
License:    GPLv2+
44d697
Group:      Applications/File
44d697
URL:        https://github.com/sclorg/scl-utils
44d697
Source0:    https://github.com/sclorg/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
44d697
Source1:    macros.scl-filesystem
44d697
BuildRequires:	gcc make
44d697
Buildrequires:  cmake 
44d697
Buildrequires:  rpm-devel
44d697
Requires:   %{_bindir}/modulecmd
44d697
44d697
Patch1:     0003-Scl-utils-layout-patch-from-fedora-famillecollet.com.patch
2a72aa
Patch2:     0004-define-macro-python-explicitly.patch
06573e
Patch3:     BZ-1618803-adapt-env-parser-to-new-module-output.patch
7c2825
Patch4:     BZ-1927971-let-scl_source-behave-with-errexit.patch
56bb73
Patch5:     BZ-1867135-print-scl_source-errors-to-stderr.patch
d7fcff
Patch6:     BZ-1967686-do-not-error-out-on-SIGINT.patch
44d697
44d697
%description
44d697
Run-time utility for alternative packaging.
44d697
44d697
%package build
44d697
Summary:    RPM build macros for alternative packaging
44d697
Group:      Applications/File
44d697
Requires:   iso-codes
44d697
Requires:   redhat-rpm-config
44d697
44d697
%description build
44d697
Essential RPM build macros for alternative packaging.
44d697
44d697
%prep
44d697
%autosetup -p1
44d697
44d697
%build
44d697
%cmake
44d697
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS"
44d697
44d697
44d697
%install
44d697
rm -rf %{buildroot}
44d697
make install DESTDIR=%{buildroot}
44d697
if [ %{macrosdir} != %{_sysconfdir}/rpm ]; then
44d697
    mkdir -p %{buildroot}%{macrosdir}
44d697
    mv %{buildroot}%{_sysconfdir}/rpm/macros.scl %{buildroot}%{macrosdir}
44d697
    rmdir %{buildroot}%{_sysconfdir}/rpm
44d697
fi
44d697
cat %SOURCE1 >> %{buildroot}%{macrosdir}/macros.scl
44d697
mkdir -p %{buildroot}%{_sysconfdir}/scl
44d697
cd %{buildroot}%{_sysconfdir}/scl
44d697
mkdir modulefiles
44d697
mkdir prefixes
44d697
ln -s prefixes conf
44d697
44d697
%files
44d697
%defattr(-,root,root,-)
44d697
%dir %{_sysconfdir}/scl
44d697
%dir %{_sysconfdir}/scl/modulefiles
44d697
%dir %{_sysconfdir}/scl/prefixes
44d697
%{_sysconfdir}/scl/conf
44d697
%{_sysconfdir}/scl/func_scl.csh
44d697
%config %{_sysconfdir}/bash_completion.d/scl
44d697
%config %{_sysconfdir}/profile.d/scl-init.sh
44d697
%config %{_sysconfdir}/profile.d/scl-init.csh
44d697
%{_bindir}/scl
44d697
%{_bindir}/scl_enabled
44d697
%{_bindir}/scl_source
44d697
%{_mandir}/man1/scl.1.gz
44d697
%doc LICENSE
44d697
44d697
%files build
44d697
%defattr(-,root,root,-)
44d697
%{macrosdir}/macros.scl
44d697
%{_rpmconfigdir}/scldeps.sh
44d697
%{_rpmconfigdir}/fileattrs/scl.attr
44d697
%{_rpmconfigdir}/fileattrs/sclbuild.attr
44d697
%{_rpmconfigdir}/brp-scl-compress
44d697
%{_rpmconfigdir}/brp-scl-python-bytecompile
44d697
44d697
%changelog
d7fcff
* Thu Feb 17 2022 Michal Domonkos <mdomonko@redhat.com> - 1:2.0.2-15
d7fcff
- Don't error out when command receives SIGINT (#1967686)
d7fcff
56bb73
* Tue Jul 13 2021 Michal Domonkos <mdomonko@redhat.com> - 1:2.0.2-14
56bb73
- Print scl_source errors to stderr (#1867135)
56bb73
7c2825
* Tue Feb 16 2021 Michal Domonkos <mdomonko@redhat.com> - 1:2.0.2-13
7c2825
- Let scl_source behave when -e/errexit is set (#1927971, James E. Flemer)
7c2825
06573e
* Mon Feb 17 2020 Michal Domonkos <mdomonko@redhat.com> - 1:2.0.2-12
06573e
- Adapt env parser to new module(1) output (#1618803)
06573e
2a72aa
* Fri Aug 16 2019 Pavlina Moravcova Varekova <pmoravco@redhat.com> - 1:2.0.2-11
2a72aa
- reverted sci-utils-build own the pkgconfig directory (#1431962)
2a72aa
2a72aa
* Tue Jul 30 2019 Pavlina Moravcova Varekova <pmoravco@redhat.com> - 1:2.0.2-10
2a72aa
- use %%__python3 instead of macro %%__python (#1733526)
2a72aa
- corrected unescaped per-cent character in the changelog (#1734103)
2a72aa
2a72aa
* Tue Jul 02 2019 Pavlina Moravcova Varekova <pmoravco@redhat.com> - 1:2.0.2-9
2a72aa
- use %%{?dist} instead of %%{dist} (#1725774)
2a72aa
- scl-utils-build own the pkgconfig directory by %%scl_files (#1431962)
2a72aa
44d697
* Wed May 22 2019 Pavlina Moravcova Varekova <pmoravco@redhat.com> - 1:2.0.2-8
44d697
- Own directory /etc/scl (#1616405)
44d697
44d697
* Tue Jul 24 2018 Vít Ondruch <vondruch@redhat.com> - 1:2.0.2-7
44d697
- Don't enforce modulefile ownership.
44d697
44d697
* Mon Feb 19 2018 Panu Matilainen <pmatilai@redhat.com> - 1:2.0.2-5
44d697
- Explicitly BuildRequire gcc and make
44d697
44d697
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.0.2-4
44d697
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
44d697
44d697
* Fri Aug 25 2017 Panu Matilainen <pmatilai@redhat.com> - 1:2.0.2-3
44d697
- Fixup URL and Source, fedorahosted.org is no more
44d697
44d697
* Fri Aug 25 2017 Panu Matilainen <pmatilai@redhat.com> - 1:2.0.2-2
44d697
- scl-utils is not compatible with Lmod, fix the dependency (#1296383)
44d697
44d697
* Fri Aug 25 2017 Panu Matilainen <pmatilai@redhat.com> - 1:2.0.2-1
44d697
- Rebase to 2.0.2
44d697
44d697
* Fri Aug 11 2017 Igor Gnatenko <ignatenko@redhat.com> - 1:2.0.1-20
44d697
- Rebuilt after RPM update (â„– 3)
44d697
44d697
* Thu Aug 10 2017 Igor Gnatenko <ignatenko@redhat.com> - 1:2.0.1-19
44d697
- Rebuilt for RPM soname bump
44d697
44d697
* Thu Aug 10 2017 Igor Gnatenko <ignatenko@redhat.com> - 1:2.0.1-18
44d697
- Rebuilt for RPM soname bump
44d697
44d697
* Mon Aug  7 2017 Joe Orton <jorton@redhat.com> - 1:2.0.1-17
44d697
- add aarch64, ppc64le to list of arches with lib64 (#1475718)
44d697
44d697
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.0.1-16
44d697
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
44d697
44d697
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.0.1-15
44d697
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
44d697
44d697
* Mon Mar 20 2017 Panu Matilainen <pmatilai@redhat.com> - 1:2.0.1-14
44d697
- Permit choosing environment modules implementation (#1296383)
44d697
44d697
* Mon Mar 20 2017 Panu Matilainen <pmatilai@redhat.com> - 1:2.0.1-13
44d697
- Own license directory by runtime (#1206044)
44d697
44d697
* Mon Mar 20 2017 Panu Matilainen <pmatilai@redhat.com> - 1:2.0.1-12
44d697
- Don't try to use no longer existing brp-java-repack-jars script (#1409277)
44d697
44d697
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.0.1-11
44d697
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
44d697
44d697
* Wed Mar 09 2016 Lubos Kardos <lkardos@redhat.com> -1:2.0.1-10
44d697
- apply rh layout fixes from Remi Collet (#1198693)
44d697
44d697
* Mon Mar  7 2016 Remi Collet <remi@fedoraproject.org> - 1:2.0.1-9
44d697
- fix grep usage in macros.scl #1315051
44d697
44d697
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.0.1-8
44d697
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
44d697
44d697
* Thu Aug 27 2015 Lubos Kardos <lkardos@redhat.com> - 1:2.0.1-7
44d697
- Fix core dumps with large input on stdin (#1257274)
44d697
44d697
* Mon Jul 27 2015 Lubos Kardos <lkardos@redhat.com> - 1:2.0.1-6
44d697
- Rebuild with the newest rpm.
44d697
44d697
* Tue Jul 07 2015 Lubos Kardos <lkardos@redhat.com> - 1:2.0.1-5
44d697
- Honor CFLAGS passed to cmake (#1239997)
44d697
44d697
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.0.1-4
44d697
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
44d697
44d697
* Wed Mar  4 2015 Ville Skyttä <ville.skytta@iki.fi> - 1:2.0.1-3
44d697
- Install macros in %%{_rpmconfigdir}/macros.d where available (#1074284)
44d697
44d697
* Wed Jan 21 2015 Lubos Kardos <lkardos@redhat.com> - 1:2.0.1-2
44d697
- added owning of module file
44d697
44d697
* Tue Jan 20 2015 Lubos Kardos <lkardos@redhat.com> - 1:2.0.1-1
44d697
- rebase to scl-utils-2.0.1
44d697
- escaped macros in changelog
44d697
- added %%config for files in /etc
44d697
44d697
* Fri Jan 09 2015 Jan Zeleny <jzeleny@redhat.com> - 1:2.0-2
44d697
- corrected URL of Source0
44d697
44d697
* Thu Jan 08 2015 Lubos Kardos <lkardos@redhat.com> - 1:2.0-1
44d697
- rebase to scl-utils-2.0
44d697
44d697
* Fri Dec 12 2014 Jan Zeleny <jzeleny@redhat.com> - 20140815-4
44d697
- propagate the %%nfsmountable into -build subpackage content
44d697
- use vendor prefix in the names of the packages if required
44d697
44d697
* Fri Dec 12 2014 Jan Zeleny <jzeleny@redhat.com> - 20140815-3
44d697
- add support for register/deregister scriptlets
44d697
- add support %%nfsmountable macro
44d697
- fix some paths in %%scl_files and %%scl_install
44d697
44d697
* Wed Aug 27 2014 Jan Zeleny <jzeleny@redhat.com> - 20140815-2
44d697
- fixed the paths in /etc/opt and /var/opt (missing /scls/)
44d697
- adjust the spec so all patches are automatically applied
44d697
44d697
* Tue Aug 26 2014 Jan Zeleny <jzeleny@redhat.com> - 20140815-1
44d697
- rebased to 20140815
44d697
- switched to %%autosetup in %%prep
44d697
44d697
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20140127-7
44d697
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
44d697
44d697
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20140127-6
44d697
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
44d697
44d697
* Wed May 07 2014 Albert Uchytil <auchytil@redhat.com> - 20140127-5
44d697
- changed __os_install_post script paths to keep up with rpm (#1093074)
44d697
44d697
* Fri Apr 11 2014 Albert Uchytil <auchytil@redhat.com> - 20140127-4
44d697
- reverted "-f filelist" modification
44d697
- added %%scl_vendor macro to macros.%%{scl}-config file (#1084095)
44d697
- %%scl_prefix now accepts a parameter to improve
44d697
  inter-collection dependencies (#1028953)
44d697
- modified the behavior of debuginfo generation process
44d697
- changed command description in scl man pages
44d697
- added conditional dependencies for main metapackage
44d697
44d697
* Tue Mar 18 2014 Albert Uchytil <auchytil@redhat.com> - 20140127-3
44d697
- added scl-runtime requirement for all subpackages
44d697
44d697
* Wed Mar 12 2014 Albert Uchytil <auchytil@redhat.com> - 20140127-2
44d697
- %%scl_files body moved to %%scl_install
44d697
- the "filesystem" file renamed back to "filelist"
44d697
- add automatic Provide: scl-package(%%scl) to all scl-related packages (#105290)
44d697
44d697
* Mon Jan 27 2014 Jan Zeleny <jzeleny@redhat.com> - 20140127-1
44d697
- don't exclude provides from SCLs (#1056183)
44d697
- don't generate scl-package(%%scl) in macros.scl, it's already
44d697
  handled in dependency generator
44d697
- add automatic Requires: %%scl_runtime to every SCL package (#1054711)
44d697
44d697
* Wed Jan 08 2014 Jan Zeleny <jzeleny@redhat.com> - 20140108-1
44d697
- split _scl_prefix macro in two parts: scl_basedir and scl_vendor (#985233)
44d697
- check if temp file is created (#1032666)
44d697
- don't split command arguments containing white space (#1032666)
44d697
- rename some attr rpm macros to stop confusing rpm (#1023625)
44d697
44d697
* Thu Oct 17 2013 Jan Zeleny <jzeleny@redhat.com> - 20131017-1
44d697
- fixed one issue in scl_source script
44d697
44d697
* Wed Oct 16 2013 Jan Zeleny <jzeleny@redhat.com> - 20131016-1
44d697
- fixed the -- separator behavior
44d697
44d697
* Wed Oct 09 2013 Jan Zeleny <jzeleny@redhat.com> - 20131015-1
44d697
- Correct the %%_sharedstatedir and %%_root_sharedstatedir macros
44d697
- Don't install /%%{_lib} when not necessary
44d697
- Add LICENSE file
44d697
- Add scl_source script
44d697
- Don't change directory in %%scl_install
44d697
- Don't generate provides from sonames in the SCL root
44d697
- Add the SCL prefix to virtual provides of SCL-based packages
44d697
- Implement "--" as a command separator
44d697
- Removed binary file scl from git tracking
44d697
- Fixed typo
44d697
- Added example wrapper script.
44d697
44d697
* Mon Aug 26 2013 Jan Zeleny <jzeleny@redhat.com> - 20130529-3
44d697
- updated the file list to handle /etc/scl/conf correctly
44d697
44d697
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20130529-2
44d697
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
44d697
44d697
* Wed May 29 2013 Jan Zeleny <jzeleny@redhat.com> - 20130529-1
44d697
- changed the upstream tarball location
44d697
- update to 20130529
44d697
44d697
* Fri Feb 01 2013 Jindrich Novy <jnovy@redhat.com> 20121110-2
44d697
- add build compatibility fixes
44d697
44d697
* Wed Dec 19 2012 Jindrich Novy <jnovy@redhat.com> 20121110-1
44d697
- introduce sclbuild utility
44d697
- fix exporting of env. variables when mutiple collections are
44d697
  enabled at the same time
44d697
- better bash completion
44d697
- fix changelog
44d697
44d697
* Thu Sep 27 2012 Jindrich Novy <jnovy@redhat.com> 20120927-1
44d697
- update to 20120927
44d697
- better BUILDROOT processing
44d697
- bash completition for scl command
44d697
- debuginfo package now has SCL-specific provide
44d697
- non-SCL builds are without warning in build log
44d697
- improved help
44d697
44d697
* Thu Aug 09 2012 Jindrich Novy <jnovy@redhat.com> 20120809-1
44d697
- update to 20120809
44d697
- processes the SCL buildroot correctly now
44d697
44d697
* Thu Aug 02 2012 Jindrich Novy <jnovy@redhat.com> 20120802-1
44d697
- update to 20120802
44d697
44d697
* Tue Jul 31 2012 Jindrich Novy <jnovy@redhat.com> 20120731-1
44d697
- add functionality that allows to list all packages in a collection
44d697
- add dependency generators
44d697
44d697
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20120613-2
44d697
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
44d697
44d697
* Wed Jun 13 2012 Jindrich Novy <jnovy@redhat.com> 20120613-1
44d697
- Requires: iso-codes for basic filesystem in build subpackage
44d697
- add scl_require_package() macro to depend on a particular package
44d697
  from the collection
44d697
- fix filesystem file list
44d697
- tighten runtime package dependency via scl_require()
44d697
- fix _localstatedir to point to the correct path according to redhat-rpm-config
44d697
- thanks to Bohuslav Kabrda for feature proposals/QA/fixes
44d697
44d697
* Thu May 03 2012 Jindrich Novy <jnovy@redhat.com> 20120503-1
44d697
- avoid doublefree corruption when reading commands from stdin
44d697
44d697
* Sun Apr 22 2012 Jindrich Novy <jnovy@redhat.com> 20120423-1
44d697
- keep filesystem macros out of the main sources as
44d697
  it is distro-dependent
44d697
44d697
* Fri Apr 13 2012 Jindrich Novy <jnovy@redhat.com> 20120413-1
44d697
- filesystem ownership by meta package
44d697
- add man page
44d697
- fix memory leak when parsing commands from stdin
44d697
- use more descriptive error message if /etc/prefixes is missing
44d697
44d697
* Wed Feb 29 2012 Jindrich Novy <jnovy@redhat.com> 20120229-1
44d697
- do not prepend scl_* prefix to package names
44d697
- unify package naming to <SCL>-package-version
44d697
- add scl --list functionality to list available SCLs
44d697
44d697
* Thu Feb 09 2012 Jindrich Novy <jnovy@redhat.com> 20120209-1
44d697
- fix minor bugs (#788194)
44d697
  - clear temp files
44d697
  - handle commands from stdin properly
44d697
  - run command even if ran as "scl enable SCL command" from already
44d697
    enabled SCL
44d697
44d697
* Wed Jan 25 2012 Jindrich Novy <jnovy@redhat.com> 20120125-1
44d697
- remove dsc macros
44d697
- trigger scl-utils-build BR inclusion while using scl macros
44d697
44d697
* Wed Jan 11 2012 Jindrich Novy <jnovy@redhat.com> 20120111-1
44d697
- add "dsc" alias to "scl" utility
44d697
44d697
* Wed Dec 14 2011 Jindrich Novy <jnovy@redhat.com> 20111214-1
44d697
- initial review fixes (#767556)
44d697
44d697
* Fri Dec  9 2011 Jindrich Novy <jnovy@redhat.com> 20111209-1
44d697
- allow to use dsc_* macros and dsc* package naming
44d697
44d697
* Wed Nov 16 2011 Jindrich Novy <jnovy@redhat.com> 20111116-1
44d697
- package is now named scl-utils
44d697
44d697
* Mon Oct 17 2011 Jindrich Novy <jnovy@redhat.com> 20111017-1
44d697
- initial packaging for upstream
44d697
44d697
* Wed Sep 21 2011 Jindrich Novy <jnovy@redhat.com> 0.1-14
44d697
- define %%_defaultdocdir to properly relocate docs into
44d697
  a stack
44d697
- document a way how to pass command to stack via stdin
44d697
44d697
* Wed Jun 22 2011 Jindrich Novy <jnovy@redhat.com> 0.1-13
44d697
- fix Stack meta config configuration
44d697
44d697
* Fri Jun 17 2011 Jindrich Novy <jnovy@redhat.com> 0.1-12
44d697
- use own Stack path configuration mechanism
44d697
44d697
* Fri Jun 17 2011 Jindrich Novy <jnovy@redhat.com> 0.1-11
44d697
- avoid redefinition of %%_root* macros by multiple
44d697
  occurence of %%stack_package
44d697
- make the Stack root path configurable
44d697
44d697
* Tue Jun 14 2011 Jindrich Novy <jnovy@redhat.com> 0.1-10
44d697
- stack utility allows to read command from stdin
44d697
44d697
* Mon Jun 13 2011 Jindrich Novy <jnovy@redhat.com> 0.1-9
44d697
- introduce stack enablement tracking
44d697
- introduce "stack_enabled" helper utility to let a stack
44d697
  application figure out which stacks are actually enabled
44d697
- disallow running stacks recursively
44d697
44d697
* Mon Jun 13 2011 Jindrich Novy <jnovy@redhat.com> 0.1-8
44d697
- stack utility returns executed commands' exit value
44d697
44d697
* Fri Jun 10 2011 Jindrich Novy <jnovy@redhat.com> 0.1-7
44d697
- fix possible segfault in the stack utility
44d697
44d697
* Fri Jun 10 2011 Jindrich Novy <jnovy@redhat.com> 0.1-6
44d697
- %%stack_name: initial part of stack prefix and name of
44d697
  meta package providing scriptlets
44d697
- %%stack_prefix: stack namespacing part to be prepended to
44d697
  original non-stack package name, can be used for Provides
44d697
  namespacing as well
44d697
- %%stack_runtime: run-time package name providing scriptlets
44d697
- %%stack_require: macro to define dependency to other stacks
44d697
44d697
* Thu Jun 09 2011 Jindrich Novy <jnovy@redhat.com> 0.1-5
44d697
- split the package into two - runtime and build part
44d697
- decrease verbosity when enabling a stack
44d697
44d697
* Wed Jun 08 2011 Jindrich Novy <jnovy@redhat.com> 0.1-4
44d697
- prepend stack package with stack_* to prevent namespace
44d697
  conflicts with core packages
44d697
44d697
* Thu Jun 02 2011 Jindrich Novy <jnovy@redhat.com> 0.1-3
44d697
- introduce metapackage concept
44d697
44d697
* Wed Jun 01 2011 Jindrich Novy <jnovy@redhat.com> 0.1-2
44d697
- modify macros so that they don't change preamble tags
44d697
44d697
* Sun May 08 2011 Jindrich Novy <jnovy@redhat.com> 0.1-1
44d697
- initial packaging