f051049
Name:       scl-utils
f051049
Epoch:      1
f051049
Version:    2.0
f051049
Release:    1%{dist}
f051049
Summary:    Utilities for alternative packaging
f051049
f051049
License:    GPLv2+
f051049
Group:      Applications/File
f051049
URL:        https://fedorahosted.org/SoftwareCollections/
f051049
Source0:    %{name}-%{version}.tar.bz2
f051049
Source1:    macros.scl-filesystem
f051049
Buildrequires:  cmake
f051049
Buildrequires:  rpm-devel
f051049
Requires:   environment-modules
f051049
Requires:   rpm-libs
b0b876b
b0b876b
%description
b0b876b
Run-time utility for alternative packaging.
b0b876b
b0b876b
%package build
f051049
Summary:    RPM build macros for alternative packaging
f051049
Group:      Applications/File
f051049
Requires:   iso-codes
f051049
Requires:   redhat-rpm-config
b0b876b
b0b876b
%description build
b0b876b
Essential RPM build macros for alternative packaging.
b0b876b
b0b876b
%prep
372b1b0
%autosetup
b0b876b
b0b876b
%build
f051049
%cmake
4e41d8b
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS"
b0b876b
f051049
b0b876b
%install
f051049
rm -rf %{buildroot}
f051049
make install DESTDIR=%{buildroot}
f051049
cat %SOURCE1 >> %{buildroot}%{_sysconfdir}/rpm/macros.scl
f051049
mkdir -p %{buildroot}%{_sysconfdir}/scl
f051049
cd %{buildroot}%{_sysconfdir}/scl
f051049
mkdir modulefiles
f051049
mkdir prefixes
e9278bd
ln -s prefixes conf
2dfbba8
b0b876b
%clean
b0b876b
rm -rf %buildroot
b0b876b
b0b876b
%files
b0b876b
%defattr(-,root,root,-)
f051049
%dir %{_sysconfdir}/scl/modulefiles
b0b876b
%dir %{_sysconfdir}/scl/prefixes
f051049
%{_sysconfdir}/scl/conf
f051049
%{_sysconfdir}/bash_completion.d/scl-completion.bash
f051049
%{_sysconfdir}/profile.d/scl-init.sh
b0b876b
%{_bindir}/scl
b0b876b
%{_bindir}/scl_enabled
fd68fa6
%{_bindir}/scl_source
f051049
%{_mandir}/man1/scl.1.gz
9905f5b
%doc LICENSE
b0b876b
b0b876b
%files build
b0b876b
%defattr(-,root,root,-)
21970d8
%{_sysconfdir}/rpm/macros.scl
97011b7
%{_rpmconfigdir}/scldeps.sh
97011b7
%{_rpmconfigdir}/fileattrs/scl.attr
372b1b0
%{_rpmconfigdir}/fileattrs/sclbuild.attr
d80c4a4
%{_rpmconfigdir}/brp-scl-compress
d80c4a4
%{_rpmconfigdir}/brp-scl-python-bytecompile
b0b876b
b0b876b
%changelog
f051049
* Thu Jan 08 2015 Lubos Kardos <lkardos@redhat.com> - 2.0-1
f051049
- rebase to scl-utils-2.0
f051049
3347ad4
* Fri Dec 12 2014 Jan Zeleny <jzeleny@redhat.com> - 20140815-4
3347ad4
- propagate the %nfsmountable into -build subpackage content
3347ad4
- use vendor prefix in the names of the packages if required
3347ad4
5583df6
* Fri Dec 12 2014 Jan Zeleny <jzeleny@redhat.com> - 20140815-3
5583df6
- add support for register/deregister scriptlets
5583df6
- add support %nfsmountable macro
5583df6
- fix some paths in %scl_files and %scl_install
5583df6
6d179e5
* Wed Aug 27 2014 Jan Zeleny <jzeleny@redhat.com> - 20140815-2
6d179e5
- fixed the paths in /etc/opt and /var/opt (missing /scls/)
6d179e5
- adjust the spec so all patches are automatically applied
6d179e5
372b1b0
* Tue Aug 26 2014 Jan Zeleny <jzeleny@redhat.com> - 20140815-1
372b1b0
- rebased to 20140815
372b1b0
- switched to %autosetup in %prep
372b1b0
Albert Uchytil fa9c3de
* Wed May 07 2014 Albert Uchytil <auchytil@redhat.com> - 20140127-5
Albert Uchytil fa9c3de
- changed __os_install_post script paths to keep up with rpm (#1093074)
Albert Uchytil fa9c3de
Albert Uchytil 5fe18e7
* Fri Apr 11 2014 Albert Uchytil <auchytil@redhat.com> - 20140127-4
Albert Uchytil 5fe18e7
- reverted "-f filelist" modification
Albert Uchytil 5fe18e7
- added %scl_vendor macro to macros.%{scl}-config file (#1084095)
Albert Uchytil 5fe18e7
- %scl_prefix now accepts a parameter to improve
Albert Uchytil 5fe18e7
  inter-collection dependencies (#1028953)
Albert Uchytil 5fe18e7
- modified the behavior of debuginfo generation process
Albert Uchytil 5fe18e7
- changed command description in scl man pages
Albert Uchytil 5fe18e7
- added conditional dependencies for main metapackage
Albert Uchytil 5fe18e7
Albert Uchytil 97799ee
* Tue Mar 18 2014 Albert Uchytil <auchytil@redhat.com> - 20140127-3
Albert Uchytil 97799ee
- added scl-runtime requirement for all subpackages
Albert Uchytil 97799ee
Albert Uchytil f3d3008
* Wed Mar 12 2014 Albert Uchytil <auchytil@redhat.com> - 20140127-2
Albert Uchytil f3d3008
- %scl_files body moved to %scl_install
Albert Uchytil f3d3008
- the "filesystem" file renamed back to "filelist"
Albert Uchytil f3d3008
- add automatic Provide: scl-package(%scl) to all scl-related packages (#105290)
Albert Uchytil f3d3008
6023ab2
* Mon Jan 27 2014 Jan Zeleny <jzeleny@redhat.com> - 20140127-1
6023ab2
- don't exclude provides from SCLs (#1056183)
6023ab2
- don't generate scl-package(%scl) in macros.scl, it's already
6023ab2
  handled in dependency generator
6023ab2
- add automatic Requires: %scl_runtime to every SCL package (#1054711)
6023ab2
b819207
* Wed Jan 08 2014 Jan Zeleny <jzeleny@redhat.com> - 20140108-1
b819207
- split _scl_prefix macro in two parts: scl_basedir and scl_vendor (#985233)
b819207
- check if temp file is created (#1032666)
b819207
- don't split command arguments containing white space (#1032666)
b819207
- rename some attr rpm macros to stop confusing rpm (#1023625)
b819207
ac8c4e9
* Thu Oct 17 2013 Jan Zeleny <jzeleny@redhat.com> - 20131017-1
ac8c4e9
- fixed one issue in scl_source script
ac8c4e9
72493b3
* Wed Oct 16 2013 Jan Zeleny <jzeleny@redhat.com> - 20131016-1
72493b3
- fixed the -- separator behavior
72493b3
fd68fa6
* Wed Oct 09 2013 Jan Zeleny <jzeleny@redhat.com> - 20131015-1
fd68fa6
- Correct the %_sharedstatedir and %_root_sharedstatedir macros
9905f5b
- Don't install /%{_lib} when not necessary
9905f5b
- Add LICENSE file
9905f5b
- Add scl_source script
9905f5b
- Don't change directory in %scl_install
9905f5b
- Don't generate provides from sonames in the SCL root
fd68fa6
- Add the SCL prefix to virtual provides of SCL-based packages
9905f5b
- Implement "--" as a command separator
9905f5b
- Removed binary file scl from git tracking
9905f5b
- Fixed typo
9905f5b
- Added example wrapper script.
9905f5b
aaedcc1
* Mon Aug 26 2013 Jan Zeleny <jzeleny@redhat.com> - 20130529-3
aaedcc1
- updated the file list to handle /etc/scl/conf correctly
aaedcc1
54e85e1
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20130529-2
54e85e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
54e85e1
4e9f8b9
* Wed May 29 2013 Jan Zeleny <jzeleny@redhat.com> - 20130529-1
4e9f8b9
- changed the upstream tarball location
4e9f8b9
- update to 20130529
4e9f8b9
419a684
* Fri Feb 01 2013 Jindrich Novy <jnovy@redhat.com> 20121110-2
2dfbba8
- add build compatibility fixes
2dfbba8
2dfbba8
* Wed Dec 19 2012 Jindrich Novy <jnovy@redhat.com> 20121110-1
e9278bd
- introduce sclbuild utility
e9278bd
- fix exporting of env. variables when mutiple collections are
e9278bd
  enabled at the same time
e9278bd
- better bash completion
e9278bd
- fix changelog
e9278bd
d80c4a4
* Thu Sep 27 2012 Jindrich Novy <jnovy@redhat.com> 20120927-1
d80c4a4
- update to 20120927
d80c4a4
- better BUILDROOT processing
d80c4a4
- bash completition for scl command
d80c4a4
- debuginfo package now has SCL-specific provide
d80c4a4
- non-SCL builds are without warning in build log
d80c4a4
- improved help
d80c4a4
44ffc68
* Thu Aug 09 2012 Jindrich Novy <jnovy@redhat.com> 20120809-1
44ffc68
- update to 20120809
44ffc68
- processes the SCL buildroot correctly now
44ffc68
44ffc68
* Thu Aug 02 2012 Jindrich Novy <jnovy@redhat.com> 20120802-1
61bea9a
- update to 20120802
61bea9a
e9278bd
* Tue Jul 31 2012 Jindrich Novy <jnovy@redhat.com> 20120731-1
97011b7
- add functionality that allows to list all packages in a collection
97011b7
- add dependency generators
97011b7
1429cf1
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20120613-2
1429cf1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
1429cf1
f6491d1
* Wed Jun 13 2012 Jindrich Novy <jnovy@redhat.com> 20120613-1
f6491d1
- Requires: iso-codes for basic filesystem in build subpackage
f6491d1
- add scl_require_package() macro to depend on a particular package
f6491d1
  from the collection
f6491d1
- fix filesystem file list
f6491d1
- tighten runtime package dependency via scl_require()
f6491d1
- fix _localstatedir to point to the correct path according to redhat-rpm-config
f6491d1
- thanks to Bohuslav Kabrda for feature proposals/QA/fixes
f6491d1
91cab64
* Thu May 03 2012 Jindrich Novy <jnovy@redhat.com> 20120503-1
91cab64
- avoid doublefree corruption when reading commands from stdin
91cab64
e9278bd
* Sun Apr 22 2012 Jindrich Novy <jnovy@redhat.com> 20120423-1
24d87f2
- keep filesystem macros out of the main sources as
24d87f2
  it is distro-dependent
24d87f2
e0ac1b4
* Fri Apr 13 2012 Jindrich Novy <jnovy@redhat.com> 20120413-1
e0ac1b4
- filesystem ownership by meta package
e0ac1b4
- add man page
e0ac1b4
- fix memory leak when parsing commands from stdin
e0ac1b4
- use more descriptive error message if /etc/prefixes is missing
e0ac1b4
4889861
* Wed Feb 29 2012 Jindrich Novy <jnovy@redhat.com> 20120229-1
4889861
- do not prepend scl_* prefix to package names
4889861
- unify package naming to <SCL>-package-version
4889861
- add scl --list functionality to list available SCLs
4889861
f56475e
* Thu Feb 09 2012 Jindrich Novy <jnovy@redhat.com> 20120209-1
f56475e
- fix minor bugs (#788194)
f56475e
  - clear temp files
f56475e
  - handle commands from stdin properly
f56475e
  - run command even if ran as "scl enable SCL command" from already
f56475e
    enabled SCL
f56475e
21970d8
* Wed Jan 25 2012 Jindrich Novy <jnovy@redhat.com> 20120125-1
21970d8
- remove dsc macros
21970d8
- trigger scl-utils-build BR inclusion while using scl macros
21970d8
59c337a
* Wed Jan 11 2012 Jindrich Novy <jnovy@redhat.com> 20120111-1
59c337a
- add "dsc" alias to "scl" utility
59c337a
b0b876b
* Wed Dec 14 2011 Jindrich Novy <jnovy@redhat.com> 20111214-1
b0b876b
- initial review fixes (#767556)
b0b876b
b0b876b
* Fri Dec  9 2011 Jindrich Novy <jnovy@redhat.com> 20111209-1
b0b876b
- allow to use dsc_* macros and dsc* package naming
b0b876b
b0b876b
* Wed Nov 16 2011 Jindrich Novy <jnovy@redhat.com> 20111116-1
b0b876b
- package is now named scl-utils
b0b876b
b0b876b
* Mon Oct 17 2011 Jindrich Novy <jnovy@redhat.com> 20111017-1
b0b876b
- initial packaging for upstream
b0b876b
e9278bd
* Wed Sep 21 2011 Jindrich Novy <jnovy@redhat.com> 0.1-14
b0b876b
- define %%_defaultdocdir to properly relocate docs into
b0b876b
  a stack
b0b876b
- document a way how to pass command to stack via stdin
b0b876b
b0b876b
* Wed Jun 22 2011 Jindrich Novy <jnovy@redhat.com> 0.1-13
b0b876b
- fix Stack meta config configuration
b0b876b
b0b876b
* Fri Jun 17 2011 Jindrich Novy <jnovy@redhat.com> 0.1-12
b0b876b
- use own Stack path configuration mechanism
b0b876b
b0b876b
* Fri Jun 17 2011 Jindrich Novy <jnovy@redhat.com> 0.1-11
b0b876b
- avoid redefinition of %%_root* macros by multiple
b0b876b
  occurence of %%stack_package
b0b876b
- make the Stack root path configurable
b0b876b
b0b876b
* Tue Jun 14 2011 Jindrich Novy <jnovy@redhat.com> 0.1-10
b0b876b
- stack utility allows to read command from stdin
b0b876b
b0b876b
* Mon Jun 13 2011 Jindrich Novy <jnovy@redhat.com> 0.1-9
b0b876b
- introduce stack enablement tracking
b0b876b
- introduce "stack_enabled" helper utility to let a stack
b0b876b
  application figure out which stacks are actually enabled
b0b876b
- disallow running stacks recursively
b0b876b
b0b876b
* Mon Jun 13 2011 Jindrich Novy <jnovy@redhat.com> 0.1-8
b0b876b
- stack utility returns executed commands' exit value
b0b876b
b0b876b
* Fri Jun 10 2011 Jindrich Novy <jnovy@redhat.com> 0.1-7
b0b876b
- fix possible segfault in the stack utility
b0b876b
b0b876b
* Fri Jun 10 2011 Jindrich Novy <jnovy@redhat.com> 0.1-6
b0b876b
- %%stack_name: initial part of stack prefix and name of
b0b876b
  meta package providing scriptlets
b0b876b
- %%stack_prefix: stack namespacing part to be prepended to
b0b876b
  original non-stack package name, can be used for Provides
b0b876b
  namespacing as well
b0b876b
- %%stack_runtime: run-time package name providing scriptlets
b0b876b
- %%stack_require: macro to define dependency to other stacks
b0b876b
b0b876b
* Thu Jun 09 2011 Jindrich Novy <jnovy@redhat.com> 0.1-5
b0b876b
- split the package into two - runtime and build part
b0b876b
- decrease verbosity when enabling a stack
b0b876b
b0b876b
* Wed Jun 08 2011 Jindrich Novy <jnovy@redhat.com> 0.1-4
b0b876b
- prepend stack package with stack_* to prevent namespace
b0b876b
  conflicts with core packages
b0b876b
b0b876b
* Thu Jun 02 2011 Jindrich Novy <jnovy@redhat.com> 0.1-3
b0b876b
- introduce metapackage concept
b0b876b
b0b876b
* Wed Jun 01 2011 Jindrich Novy <jnovy@redhat.com> 0.1-2
b0b876b
- modify macros so that they don't change preamble tags
b0b876b
b0b876b
* Sun May 08 2011 Jindrich Novy <jnovy@redhat.com> 0.1-1
b0b876b
- initial packaging