|
|
be9dcc |
%global scl_name_base python
|
|
|
be9dcc |
%global scl_name_version 27
|
|
|
be9dcc |
%global scl %{scl_name_base}%{scl_name_version}
|
|
|
be9dcc |
|
|
|
be9dcc |
%scl_package %scl
|
|
|
be9dcc |
%global _turn_off_bytecompile 1
|
|
|
be9dcc |
|
|
|
be9dcc |
%global install_scl 1
|
|
|
be9dcc |
|
|
|
be9dcc |
# do not produce empty debuginfo package
|
|
|
be9dcc |
%global debug_package %{nil}
|
|
|
be9dcc |
|
|
|
be9dcc |
Summary: Package that installs %scl
|
|
|
be9dcc |
Name: %scl_name
|
|
|
be9dcc |
Version: 1.1
|
|
|
e3e5b5 |
Release: 25%{?dist}
|
|
|
be9dcc |
License: GPLv2+
|
|
|
be9dcc |
Source0: macros.additional.%{scl}
|
|
|
be9dcc |
Source1: README
|
|
|
be9dcc |
Source2: LICENSE
|
|
|
e3e5b5 |
Source3: pythondeps-scl-27.sh
|
|
|
be9dcc |
BuildRequires: help2man
|
|
|
be9dcc |
# workaround for https://bugzilla.redhat.com/show_bug.cgi?id=857354
|
|
|
be9dcc |
BuildRequires: iso-codes
|
|
|
be9dcc |
BuildRequires: scl-utils-build
|
|
|
be9dcc |
%if 0%{?install_scl}
|
|
|
be9dcc |
Requires: %{scl_prefix}python
|
|
|
be9dcc |
Requires: %{scl_prefix}python-jinja2
|
|
|
be9dcc |
Requires: %{scl_prefix}python-nose
|
|
|
33b397 |
Requires: %{scl_prefix}python-pip
|
|
|
be9dcc |
Requires: %{scl_prefix}python-simplejson
|
|
|
be9dcc |
Requires: %{scl_prefix}python-setuptools
|
|
|
be9dcc |
Requires: %{scl_prefix}python-sphinx
|
|
|
be9dcc |
Requires: %{scl_prefix}python-sqlalchemy
|
|
|
be9dcc |
Requires: %{scl_prefix}python-virtualenv
|
|
|
33b397 |
Requires: %{scl_prefix}python-wheel
|
|
|
be9dcc |
Requires: %{scl_prefix}python-werkzeug
|
|
|
be9dcc |
%endif
|
|
|
be9dcc |
|
|
|
be9dcc |
%description
|
|
|
be9dcc |
This is the main package for %scl Software Collection.
|
|
|
be9dcc |
|
|
|
be9dcc |
%package runtime
|
|
|
be9dcc |
Summary: Package that handles %scl Software Collection.
|
|
|
be9dcc |
Requires: scl-utils
|
|
|
be9dcc |
|
|
|
be9dcc |
%description runtime
|
|
|
be9dcc |
Package shipping essential scripts to work with %scl Software Collection.
|
|
|
be9dcc |
|
|
|
be9dcc |
%package build
|
|
|
be9dcc |
Summary: Package shipping basic build configuration
|
|
|
be9dcc |
Requires: scl-utils-build
|
|
|
be9dcc |
|
|
|
be9dcc |
%description build
|
|
|
be9dcc |
Package shipping essential configuration macros to build %scl Software Collection.
|
|
|
be9dcc |
|
|
|
be9dcc |
%package scldevel
|
|
|
be9dcc |
Summary: Package shipping development files for %scl
|
|
|
be9dcc |
|
|
|
be9dcc |
%description scldevel
|
|
|
be9dcc |
Package shipping development files, especially usefull for development of
|
|
|
be9dcc |
packages depending on %scl Software Collection.
|
|
|
be9dcc |
|
|
|
be9dcc |
%prep
|
|
|
be9dcc |
%setup -T -c
|
|
|
be9dcc |
|
|
|
be9dcc |
# This section generates README file from a template and creates man page
|
|
|
be9dcc |
# from that file, expanding RPM macros in the template file.
|
|
|
be9dcc |
cat >README <<'EOF'
|
|
|
be9dcc |
%{expand:%(cat %{SOURCE1})}
|
|
|
be9dcc |
EOF
|
|
|
be9dcc |
|
|
|
be9dcc |
# copy the license file so %%files section sees it
|
|
|
be9dcc |
cp %{SOURCE2} .
|
|
|
be9dcc |
|
|
|
be9dcc |
%build
|
|
|
be9dcc |
# generate a helper script that will be used by help2man
|
|
|
be9dcc |
cat >h2m_helper <<'EOF'
|
|
|
be9dcc |
#!/bin/bash
|
|
|
be9dcc |
[ "$1" == "--version" ] && echo "%{scl_name} %{version} Software Collection" || cat README
|
|
|
be9dcc |
EOF
|
|
|
be9dcc |
chmod a+x h2m_helper
|
|
|
be9dcc |
|
|
|
be9dcc |
# generate the man page
|
|
|
be9dcc |
help2man -N --section 7 ./h2m_helper -o %{scl_name}.7
|
|
|
e3e5b5 |
# Fix single quotes in man page. See RHBZ#1219527
|
|
|
e3e5b5 |
#
|
|
|
e3e5b5 |
# http://lists.gnu.org/archive/html/groff/2008-06/msg00001.html suggests that
|
|
|
e3e5b5 |
# using "'" for quotes is correct, but the current implementation of man in 6
|
|
|
e3e5b5 |
# mangles it when rendering.
|
|
|
e3e5b5 |
sed -i "s/'/\\\\(aq/g" %{scl_name}.7
|
|
|
be9dcc |
|
|
|
be9dcc |
%install
|
|
|
be9dcc |
rm -rf %{buildroot}
|
|
|
be9dcc |
mkdir -p %{buildroot}%{_scl_scripts}/root
|
|
|
be9dcc |
mkdir -p %{buildroot}%{_root_prefix}/lib/rpm/redhat
|
|
|
be9dcc |
cat >> %{buildroot}%{_scl_scripts}/enable << EOF
|
|
|
be9dcc |
export PATH=%{_bindir}\${PATH:+:\${PATH}}
|
|
|
be9dcc |
export LD_LIBRARY_PATH=%{_libdir}\${LD_LIBRARY_PATH:+:\${LD_LIBRARY_PATH}}
|
|
|
be9dcc |
export MANPATH=%{_mandir}:\${MANPATH}
|
|
|
be9dcc |
# For systemtap
|
|
|
e3e5b5 |
export XDG_DATA_DIRS=%{_datadir}:\${XDG_DATA_DIRS:-/usr/local/share:/usr/share}
|
|
|
be9dcc |
# For pkg-config
|
|
|
be9dcc |
export PKG_CONFIG_PATH=%{_libdir}/pkgconfig\${PKG_CONFIG_PATH:+:\${PKG_CONFIG_PATH}}
|
|
|
be9dcc |
EOF
|
|
|
be9dcc |
%scl_install
|
|
|
be9dcc |
|
|
|
be9dcc |
# Add the aditional macros to macros.%%{scl}-config
|
|
|
be9dcc |
cat %{SOURCE0} >> %{buildroot}%{_root_sysconfdir}/rpm/macros.%{scl}-config
|
|
|
be9dcc |
sed -i 's|@scl@|%{scl}|g' %{buildroot}%{_root_sysconfdir}/rpm/macros.%{scl}-config
|
|
|
e3e5b5 |
sed -i 's|@vendorscl@|%{scl}|g' %{buildroot}%{_root_sysconfdir}/rpm/macros.%{scl}-config
|
|
|
be9dcc |
|
|
|
be9dcc |
# Create the scldevel subpackage macros
|
|
|
be9dcc |
cat >> %{buildroot}%{_root_sysconfdir}/rpm/macros.%{scl_name_base}-scldevel << EOF
|
|
|
be9dcc |
%%scl_%{scl_name_base} %{scl}
|
|
|
be9dcc |
%%scl_prefix_%{scl_name_base} %{scl_prefix}
|
|
|
be9dcc |
EOF
|
|
|
be9dcc |
|
|
|
e3e5b5 |
mkdir -p %{buildroot}%{_root_prefix}/lib/rpm
|
|
|
e3e5b5 |
cp -a %{SOURCE3} %{buildroot}%{_root_prefix}/lib/rpm
|
|
|
e3e5b5 |
|
|
|
be9dcc |
# install generated man page
|
|
|
be9dcc |
mkdir -p %{buildroot}%{_mandir}/man7/
|
|
|
be9dcc |
install -m 644 %{scl_name}.7 %{buildroot}%{_mandir}/man7/%{scl_name}.7
|
|
|
be9dcc |
|
|
|
be9dcc |
%files
|
|
|
be9dcc |
|
|
|
be9dcc |
%files runtime -f filesystem
|
|
|
be9dcc |
%doc README LICENSE
|
|
|
be9dcc |
%scl_files
|
|
|
be9dcc |
%{_mandir}/man7/%{scl_name}.*
|
|
|
be9dcc |
|
|
|
be9dcc |
%files build
|
|
|
be9dcc |
%{_root_sysconfdir}/rpm/macros.%{scl}-config
|
|
|
e3e5b5 |
%{_root_prefix}/lib/rpm/pythondeps-scl-27.sh
|
|
|
be9dcc |
|
|
|
be9dcc |
%files scldevel
|
|
|
be9dcc |
%{_root_sysconfdir}/rpm/macros.%{scl_name_base}-scldevel
|
|
|
be9dcc |
|
|
|
be9dcc |
%changelog
|
|
|
e3e5b5 |
* Wed Apr 20 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.1-25
|
|
|
e3e5b5 |
- Properly seperate paths for XDG_DATA_DIRS variable (rhbz#1266529)
|
|
|
e3e5b5 |
|
|
|
e3e5b5 |
* Fri Apr 15 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.1-24
|
|
|
e3e5b5 |
- Fix SPEC file syntax error for XDG_DATA_DIRS variable definition (rhbz#1266529)
|
|
|
e3e5b5 |
|
|
|
e3e5b5 |
* Wed Feb 17 2016 Robert Kuska <rkuska@redhat.com> - 1.1-23
|
|
|
e3e5b5 |
- Insert proper value into requires/provides macros
|
|
|
e3e5b5 |
|
|
|
e3e5b5 |
* Wed Feb 17 2016 Michal Cyprian <mcyprian@redhat.com> - 1.1-22
|
|
|
e3e5b5 |
- Add script pythondeps-scl-27.sh to manage provides and requires
|
|
|
e3e5b5 |
|
|
|
e3e5b5 |
* Tue Feb 16 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.1-21
|
|
|
e3e5b5 |
- Properly define XDG_DATA_DIRS variable to avoid breaking applications (rhbz#1266529)
|
|
|
e3e5b5 |
- Escape apostrophs in metapackage manual page(rhbz#1219527)
|
|
|
e3e5b5 |
|
|
|
33b397 |
* Tue Jan 20 2015 Slavek Kabrda <bkabrda@redhat.com> - 1.1-20
|
|
|
33b397 |
- Require python-pip and python-wheel (note: in rh-python34
|
|
|
33b397 |
this is not necessary, because "python" depends on these).
|
|
|
33b397 |
|
|
|
be9dcc |
* Mon Mar 31 2014 Honza Horak <hhorak@redhat.com> - 1.1-19
|
|
|
be9dcc |
- Fix path typo in README
|
|
|
be9dcc |
Related: #1061457
|
|
|
be9dcc |
|
|
|
be9dcc |
* Thu Mar 20 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1.1-18
|
|
|
be9dcc |
- Use "-f filesystem for files section of -runtime on RHEL 7.
|
|
|
be9dcc |
Resolves: rhbz#1076159
|
|
|
be9dcc |
|
|
|
be9dcc |
* Mon Feb 17 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1-17
|
|
|
be9dcc |
- Introduce README and LICENSE.
|
|
|
be9dcc |
- Change version to 1.1.
|
|
|
be9dcc |
Resolves: rhbz#1061457
|
|
|
be9dcc |
|
|
|
be9dcc |
* Wed Jan 22 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1-16
|
|
|
be9dcc |
- Add scldevel subpackage.
|
|
|
be9dcc |
Resolves: rhbz#1056414
|
|
|
be9dcc |
|
|
|
be9dcc |
* Mon Jan 20 2014 Tomas Radej <tradej@redhat.com> - 1-15
|
|
|
be9dcc |
- Rebuilt with fixed scl-utils
|
|
|
be9dcc |
Resolves: rhbz#1054733
|
|
|
be9dcc |
|
|
|
be9dcc |
* Mon Nov 25 2013 Robert Kuska <rkuska@redhat.com> - 1-14
|
|
|
be9dcc |
- Add unversioned python macros for building depending packages
|
|
|
be9dcc |
|
|
|
be9dcc |
* Wed Oct 23 2013 Robert Kuska <rkuska@redhat.com> - 1-13
|
|
|
be9dcc |
- Remove blank line from macros.additional.python27
|
|
|
be9dcc |
|
|
|
be9dcc |
* Fri Oct 18 2013 Robert Kuska <rkuska@redhat.com> - 1-12
|
|
|
be9dcc |
- Add aditional macros for building depending collections
|
|
|
be9dcc |
|
|
|
be9dcc |
* Thu Oct 17 2013 Robert Kuska <rkuska@redhat.com> - 1-11
|
|
|
be9dcc |
- Add setup macro after running into rhbz#998524 while rhel-7 build
|
|
|
be9dcc |
|
|
|
be9dcc |
* Mon May 27 2013 Matej Stuchlik <mstuchli@redhat.com> - 1-10
|
|
|
be9dcc |
- BZ966391: Another MANPATH fix.
|
|
|
be9dcc |
|
|
|
be9dcc |
* Thu May 23 2013 Matej Stuchlik <mstuchli@redhat.com> - 1-9
|
|
|
be9dcc |
- BZ966391: MANPATH fix
|
|
|
be9dcc |
|
|
|
be9dcc |
* Tue May 07 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1-8
|
|
|
be9dcc |
- Add dependency on python-sphinx and python-nose to draw in
|
|
|
be9dcc |
all the useful dependencies from the collection.
|
|
|
be9dcc |
|
|
|
be9dcc |
* Tue Apr 30 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1-7
|
|
|
be9dcc |
- Define variables in scriptlets in a really secure way (RHBZ#957208).
|
|
|
be9dcc |
- Correct the sed on macros file to substitute all occurences on one line.
|
|
|
be9dcc |
|
|
|
be9dcc |
* Wed Apr 24 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1-6
|
|
|
be9dcc |
- Utilize the new package_override function to override __os_install_post.
|
|
|
be9dcc |
- Move scripts to python-devel, so that it can be utilized in other
|
|
|
be9dcc |
collections, that won't BR this metapackage.
|
|
|
be9dcc |
|
|
|
be9dcc |
* Wed Apr 24 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1-5
|
|
|
be9dcc |
- Delete the __os_install_post redefinition in favor of new definition
|
|
|
be9dcc |
in scl-utils-build.
|
|
|
be9dcc |
|
|
|
be9dcc |
* Wed Apr 10 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1-4
|
|
|
be9dcc |
- Define variables in enable scriptlets in a secure way (RHBZ #949000).
|
|
|
be9dcc |
|
|
|
be9dcc |
* Mon Dec 03 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1-3
|
|
|
be9dcc |
- Rebuilt for PPC.
|
|
|
be9dcc |
|
|
|
be9dcc |
* Wed Oct 10 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1-2
|
|
|
be9dcc |
- Enable installing the whole SCL.
|
|
|
be9dcc |
|
|
|
be9dcc |
* Fri Sep 14 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1-1
|
|
|
be9dcc |
- Initial package.
|