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