|
|
fca7bd |
# Define SCL name
|
|
|
fca7bd |
%{!?scl_name_prefix: %global scl_name_prefix rh-}
|
|
|
fca7bd |
%{!?scl_name_base: %global scl_name_base perl}
|
|
|
fca7bd |
%{!?version_major: %global version_major 5}
|
|
|
fca7bd |
%{!?version_minor: %global version_minor 30}
|
|
|
fca7bd |
%{!?scl_name_version: %global scl_name_version %{version_major}%{version_minor}}
|
|
|
fca7bd |
%{!?scl: %global scl %{scl_name_prefix}%{scl_name_base}%{scl_name_version}}
|
|
|
fca7bd |
|
|
|
fca7bd |
# Turn on new layout -- prefix for packages and location
|
|
|
fca7bd |
# for config and variable files
|
|
|
fca7bd |
# This must be before calling %%scl_package
|
|
|
fca7bd |
%{!?nfsmountable: %global nfsmountable 1}
|
|
|
fca7bd |
|
|
|
fca7bd |
# Define SCL macros
|
|
|
fca7bd |
%{?scl_package:%scl_package %scl}
|
|
|
fca7bd |
|
|
|
fca7bd |
%{!?install_scl:%global install_scl 1}
|
|
|
fca7bd |
|
|
|
fca7bd |
# do not produce empty debuginfo package
|
|
|
fca7bd |
%global debug_package %{nil}
|
|
|
fca7bd |
|
|
|
fca7bd |
Summary: Package that installs %scl
|
|
|
fca7bd |
Name: %scl_name
|
|
|
fca7bd |
Version: 3.5
|
|
|
fca7bd |
Release: 3%{?dist}
|
|
|
fca7bd |
License: GPLv2+
|
|
|
fca7bd |
Source0: macro-build
|
|
|
fca7bd |
Source1: README
|
|
|
fca7bd |
Source2: LICENSE
|
|
|
fca7bd |
Source3: roffexpandvar
|
|
|
fca7bd |
BuildRequires: perl
|
|
|
fca7bd |
|
|
|
fca7bd |
%if 0%{?install_scl}
|
|
|
fca7bd |
Requires: %{?scl_prefix}perl
|
|
|
fca7bd |
%endif
|
|
|
fca7bd |
|
|
|
fca7bd |
BuildRequires: coreutils
|
|
|
fca7bd |
BuildRequires: findutils
|
|
|
fca7bd |
BuildRequires: groff-base
|
|
|
fca7bd |
BuildRequires: iso-codes
|
|
|
fca7bd |
BuildRequires: scl-utils-build
|
|
|
fca7bd |
BuildRequires: sed
|
|
|
fca7bd |
BuildRequires: util-linux
|
|
|
fca7bd |
|
|
|
fca7bd |
%description
|
|
|
fca7bd |
This is the main package for %scl Software Collection.
|
|
|
fca7bd |
|
|
|
fca7bd |
%package runtime
|
|
|
fca7bd |
Summary: Package that handles %scl Software Collection
|
|
|
fca7bd |
Requires: scl-utils
|
|
|
fca7bd |
|
|
|
fca7bd |
%description runtime
|
|
|
fca7bd |
Package shipping essential scripts to work with %scl Software Collection.
|
|
|
fca7bd |
|
|
|
fca7bd |
%package build
|
|
|
fca7bd |
Summary: Package shipping basic build configuration
|
|
|
fca7bd |
Requires: scl-utils-build
|
|
|
fca7bd |
Requires: %{name}-scldevel = %{version}-%{release}
|
|
|
fca7bd |
|
|
|
fca7bd |
%description build
|
|
|
fca7bd |
Package shipping essential configuration macros to build %scl Software Collection.
|
|
|
fca7bd |
|
|
|
fca7bd |
%package scldevel
|
|
|
fca7bd |
Summary: Package shipping development files for %scl
|
|
|
fca7bd |
|
|
|
fca7bd |
%description scldevel
|
|
|
fca7bd |
Package shipping development files, especially usefull for development of
|
|
|
fca7bd |
packages depending on %scl Software Collection.
|
|
|
fca7bd |
|
|
|
fca7bd |
%prep
|
|
|
fca7bd |
%setup -c -T
|
|
|
fca7bd |
|
|
|
fca7bd |
# copy the license file so %%files section sees it
|
|
|
fca7bd |
cp %{SOURCE2} .
|
|
|
fca7bd |
|
|
|
fca7bd |
%build
|
|
|
fca7bd |
# This section expands manual page from a template and creates plain text
|
|
|
fca7bd |
# from that file.
|
|
|
fca7bd |
perl %{SOURCE3} \
|
|
|
fca7bd |
'%%{scl_name}' '%{scl_name}' \
|
|
|
fca7bd |
'%%{version}' '%{version}' \
|
|
|
fca7bd |
'%%{_scl_root}' '%{_scl_root}' \
|
|
|
fca7bd |
<%{SOURCE1} >%{scl_name}.7
|
|
|
fca7bd |
<%{scl_name}.7 groff -Tutf8 -mandoc | LC_CTYPE=en_US.UTF-8 col -b >README
|
|
|
fca7bd |
|
|
|
fca7bd |
|
|
|
fca7bd |
%install
|
|
|
fca7bd |
rm -rf %{buildroot}
|
|
|
fca7bd |
mkdir -p %{buildroot}%{_scl_scripts}/root
|
|
|
fca7bd |
cat >> %{buildroot}%{_scl_scripts}/enable << EOF
|
|
|
fca7bd |
export PATH=%{_prefix}/local/bin:%{_bindir}\${PATH:+:\${PATH}}
|
|
|
fca7bd |
export LD_LIBRARY_PATH=%{_libdir}\${LD_LIBRARY_PATH:+:\${LD_LIBRARY_PATH}}
|
|
|
fca7bd |
export MANPATH=%{_mandir}:\${MANPATH}
|
|
|
fca7bd |
EOF
|
|
|
fca7bd |
%scl_install
|
|
|
fca7bd |
|
|
|
fca7bd |
# Add the aditional macros to macros.%%{scl}-config
|
|
|
fca7bd |
cat %{SOURCE0} >> %{buildroot}%{_root_sysconfdir}/rpm/macros.%{scl}-config
|
|
|
fca7bd |
sed -i 's|@MACRO@|%{scl_name_base}%{scl_name_version}|g' %{buildroot}%{_root_sysconfdir}/rpm/macros.%{scl}-config
|
|
|
fca7bd |
sed -i 's|@SCL@|%{scl}|g' %{buildroot}%{_root_sysconfdir}/rpm/macros.%{scl}-config
|
|
|
fca7bd |
sed -i 's|@LIBDIR@|%{_libdir}|g' %{buildroot}%{_root_sysconfdir}/rpm/macros.%{scl}-config
|
|
|
fca7bd |
|
|
|
fca7bd |
cat >> %{buildroot}%{_root_sysconfdir}/rpm/macros.%{scl_name_base}-scldevel << EOF
|
|
|
fca7bd |
%%scl_%{scl_name_base} %{scl}
|
|
|
fca7bd |
%%scl_prefix_%{scl_name_base} %{?scl_prefix}
|
|
|
fca7bd |
EOF
|
|
|
fca7bd |
|
|
|
fca7bd |
# install generated man page
|
|
|
fca7bd |
mkdir -p %{buildroot}%{_mandir}/man7/
|
|
|
fca7bd |
install -m 644 %{scl_name}.7 %{buildroot}%{_mandir}/man7/%{scl_name}.7
|
|
|
fca7bd |
|
|
|
fca7bd |
%files
|
|
|
fca7bd |
|
|
|
fca7bd |
%files runtime -f filelist
|
|
|
fca7bd |
%doc README LICENSE
|
|
|
fca7bd |
%scl_files
|
|
|
fca7bd |
%{_mandir}/man7/%{scl_name}.*
|
|
|
fca7bd |
|
|
|
fca7bd |
%files build
|
|
|
fca7bd |
%{_root_sysconfdir}/rpm/macros.%{scl}-config
|
|
|
fca7bd |
|
|
|
fca7bd |
%files scldevel
|
|
|
fca7bd |
%{_root_sysconfdir}/rpm/macros.%{scl_name_base}-scldevel
|
|
|
fca7bd |
|
|
|
fca7bd |
%changelog
|
|
|
fca7bd |
* Wed Jan 08 2020 Jitka Plesnikova <jplesnik@redhat.com> - 3.5-3
|
|
|
fca7bd |
- Enable install_scl macro
|
|
|
fca7bd |
|
|
|
fca7bd |
* Tue Jan 07 2020 Jitka Plesnikova <jplesnik@redhat.com> - 3.5-2
|
|
|
fca7bd |
- Disable perl_bootstrap macro
|
|
|
fca7bd |
|
|
|
fca7bd |
* Thu Dec 19 2019 Jitka Plesnikova <jplesnik@redhat.com> - 3.5-1
|
|
|
fca7bd |
- Initial version for SCL 3.5
|
|
|
fca7bd |
- Enable perl_bootstrap macro
|
|
|
fca7bd |
|
|
|
fca7bd |
* Tue Dec 19 2017 Petr Pisar <ppisar@redhat.com> - 3.1-3
|
|
|
fca7bd |
- Add a macro for perl_Devel_Size
|
|
|
fca7bd |
|
|
|
fca7bd |
* Tue Dec 19 2017 Petr Pisar <ppisar@redhat.com> - 3.1-2
|
|
|
fca7bd |
- Disable perl_bootstrap macro
|
|
|
fca7bd |
|
|
|
fca7bd |
* Thu Dec 14 2017 Jitka Plesnikova <jplesnik@redhat.com> - 3.1-1
|
|
|
fca7bd |
- Initial version for SCL 3.1
|
|
|
fca7bd |
- Enable perl_bootstrap macro
|
|
|
fca7bd |
|
|
|
fca7bd |
* Sun Jul 24 2016 Petr Pisar <ppisar@redhat.com> 2.3-2
|
|
|
fca7bd |
- Disable perl_bootstrap macro
|
|
|
fca7bd |
|
|
|
fca7bd |
* Tue Jul 12 2016 Jitka Plesnikova <jplesnik@redhat.com>, Petr Pisar <ppisar@redhat.com> - 2.3-1
|
|
|
fca7bd |
- Initial version for SCL 2.3
|
|
|
fca7bd |
- Escape apostrophs in rh-perl-520(7) manual page
|
|
|
fca7bd |
- Fix ownership of man directories
|
|
|
fca7bd |
- Resolves: rhbz#1219522, rhbz#1225445
|
|
|
fca7bd |
|
|
|
fca7bd |
* Tue Mar 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.0-7
|
|
|
fca7bd |
- Rebuild due to 'scls' removal
|
|
|
fca7bd |
- Resolves: rhbz#1200055
|
|
|
fca7bd |
|
|
|
fca7bd |
* Wed Jan 28 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.0-6
|
|
|
fca7bd |
- Added local bin into PATH
|
|
|
fca7bd |
|
|
|
fca7bd |
* Sun Jan 25 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.0-5
|
|
|
fca7bd |
- Disable macro perl_bootstrap
|
|
|
fca7bd |
|
|
|
fca7bd |
* Mon Jan 19 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.0-4
|
|
|
fca7bd |
- Update macro %%__perl
|
|
|
fca7bd |
|
|
|
fca7bd |
* Thu Jan 15 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.0-3
|
|
|
fca7bd |
- Define macros %%tests_req and %%tests_subpackage_requires in case the
|
|
|
fca7bd |
perl-macros is not in buildroot
|
|
|
fca7bd |
|
|
|
fca7bd |
* Tue Jan 13 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.0-2
|
|
|
fca7bd |
- Added definition of LD_LIBRARY_PATH into the macro %%__perl
|
|
|
fca7bd |
- Added macro %%perl_small for SCL restrictions
|
|
|
fca7bd |
|
|
|
fca7bd |
* Tue Jan 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.0-1
|
|
|
fca7bd |
- Initial version for SCL 2.0
|
|
|
fca7bd |
|
|
|
fca7bd |
* Mon Mar 31 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.1-2
|
|
|
fca7bd |
- Wrong macro in README
|
|
|
fca7bd |
- Resolves: rhbz#1061453
|
|
|
fca7bd |
|
|
|
fca7bd |
* Mon Feb 17 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.1-1
|
|
|
fca7bd |
- Introduce README and LICENSE.
|
|
|
fca7bd |
- Change version to 1.1.
|
|
|
fca7bd |
- Resolves: rhbz#1061453
|
|
|
fca7bd |
|
|
|
fca7bd |
* Wed Feb 05 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1-17
|
|
|
fca7bd |
- Update dependencies of sub-package build
|
|
|
fca7bd |
- Resolves: rhbz#1063206
|
|
|
fca7bd |
|
|
|
fca7bd |
* Mon Jan 20 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1-16
|
|
|
fca7bd |
- Changed name of sub-package devel to scldevel
|
|
|
fca7bd |
- Added the file macros.%%{scl_name_base}-scldevel
|
|
|
fca7bd |
- Resolves: rhbz#1055580
|
|
|
fca7bd |
|
|
|
fca7bd |
* Thu Jan 16 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1-15
|
|
|
fca7bd |
- Moved perl.(prov|req).stack and file*.attr to sub-package devel
|
|
|
fca7bd |
- Resolves: rhbz#1052183
|
|
|
fca7bd |
|
|
|
fca7bd |
* Tue Jan 07 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1-14
|
|
|
fca7bd |
- Define macros for tests sub-package
|
|
|
fca7bd |
- Resolves: rhbz#1049366
|
|
|
fca7bd |
|
|
|
fca7bd |
* Tue Dec 17 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1-13
|
|
|
fca7bd |
- Create macro-build
|
|
|
fca7bd |
- Related: rhbz#1040880
|
|
|
fca7bd |
|
|
|
fca7bd |
* Mon Nov 25 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1-12
|
|
|
fca7bd |
- Add %%prep and %%build section
|
|
|
fca7bd |
|
|
|
fca7bd |
* Mon Jun 17 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1-11
|
|
|
fca7bd |
- Disable macro perl_bootstrap
|
|
|
fca7bd |
|
|
|
fca7bd |
* Thu May 23 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1-10
|
|
|
fca7bd |
- Update definition of MANPATH (rhbz#966388)
|
|
|
fca7bd |
|
|
|
fca7bd |
* Tue May 21 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1-9
|
|
|
fca7bd |
- Do not remove /opt/rh/perl516 to prevent removing of any user data
|
|
|
fca7bd |
|
|
|
fca7bd |
* Mon May 13 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1-8
|
|
|
fca7bd |
- Remove the directory /opt/rh/perl516 after uninstalling rpm (rhbz#956215)
|
|
|
fca7bd |
|
|
|
fca7bd |
* Sun Apr 28 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1-7
|
|
|
fca7bd |
- Remove extra colon from path definition
|
|
|
fca7bd |
|
|
|
fca7bd |
* Thu Apr 25 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1-6
|
|
|
fca7bd |
- Update setting of environment variable in the script enable
|
|
|
fca7bd |
|
|
|
fca7bd |
* Wed Feb 6 2013 Jitka Plesnikova <jplesnik@redhat.com> 1-5
|
|
|
fca7bd |
- enable macro perl_bootstrap
|
|
|
fca7bd |
|
|
|
fca7bd |
* Fri Oct 5 2012 Marcela Mašláňová <mmaslano@redhat.com> 1-4
|
|
|
fca7bd |
- update to new version of Perl 5.16
|
|
|
fca7bd |
- package perl.{prov,req}.stack as executables
|
|
|
fca7bd |
|
|
|
fca7bd |
* Mon Jul 23 2012 Marcela Mašláňová <mmaslano@redhat.com> 1-3
|
|
|
fca7bd |
- change permission from 700 to 644 on perl.{prov,req}
|
|
|
fca7bd |
|
|
|
fca7bd |
* Tue Mar 6 2012 Marcela Mašláňová <mmaslano@redhat.com> 1.2
|
|
|
fca7bd |
- fix dependency on collection *-runtime
|
|
|
fca7bd |
|
|
|
fca7bd |
* Tue Dec 06 2011 Marcela Mašláňová <mmaslano@redhat.com> 1.1
|
|
|
fca7bd |
- initial packaging of meta perl514 package
|