Blame SPECS/ruby200.spec

63401c
%global scl_name_base ruby
63401c
%global scl_name_version 200
63401c
63401c
%global scl %{scl_name_base}%{scl_name_version}
63401c
%scl_package %scl
63401c
63401c
# Do not produce empty debuginfo package.
63401c
%global debug_package %{nil}
63401c
63401c
%global install_scl 1
63401c
63401c
Summary: Package that installs %scl
63401c
Name: %scl_name
63401c
Version: 1.1
63401c
Release: 7%{?dist}
63401c
License: GPLv2+
63401c
Source0: README
63401c
Source1: LICENSE
63401c
%if 0%{?install_scl}
63401c
Requires: %{scl_prefix}ruby
63401c
%endif
63401c
BuildRequires: help2man
63401c
BuildRequires: scl-utils-build
63401c
63401c
%description
63401c
This is the main package for %scl Software Collection.
63401c
63401c
%package runtime
63401c
Summary: Package that handles %scl Software Collection.
63401c
Requires: scl-utils
63401c
63401c
%description runtime
63401c
Package shipping essential scripts to work with %scl Software Collection.
63401c
63401c
%package build
63401c
Summary: Package shipping basic build configuration
63401c
Requires: scl-utils-build
63401c
63401c
%description build
63401c
Package shipping essential configuration macros to build %scl Software Collection.
63401c
63401c
%package scldevel
63401c
Summary: Package shipping development files for %scl
63401c
63401c
%description scldevel
63401c
Package shipping development files, especially usefull for development of
63401c
packages depending on %scl Software Collection.
63401c
63401c
%prep
63401c
%setup -T -c
63401c
63401c
# Expand macros used in README file.
63401c
cat > README << EOF
63401c
%{expand:%(cat %{SOURCE0})}
63401c
EOF
63401c
63401c
cp %{SOURCE1} .
63401c
63401c
%build
63401c
# Generate a helper script that will be used by help2man.
63401c
cat > h2m_help << 'EOF'
63401c
#!/bin/bash
63401c
[ "$1" == "--version" ] && echo "%{scl_name} %{version} Software Collection" || cat README
63401c
EOF
63401c
chmod a+x h2m_help
63401c
63401c
# Generate the man page from include.h2m and ./h2m_help --help output.
63401c
help2man -N --section 7 ./h2m_help -o %{scl_name}.7
63401c
63401c
%install
63401c
%scl_install
63401c
63401c
cat >> %{buildroot}%{_scl_scripts}/enable << EOF
63401c
export PATH=%{_bindir}\${PATH:+:\${PATH}}
63401c
export LD_LIBRARY_PATH=%{_libdir}\${LD_LIBRARY_PATH:+:\${LD_LIBRARY_PATH}}
63401c
export MANPATH=%{_mandir}:\$MANPATH
63401c
export PKG_CONFIG_PATH=%{_libdir}/pkgconfig\${PKG_CONFIG_PATH:+:\${PKG_CONFIG_PATH}}
63401c
EOF
63401c
63401c
cat >> %{buildroot}%{_root_sysconfdir}/rpm/macros.%{scl_name_base}-scldevel << EOF
63401c
%%scl_%{scl_name_base} %{scl}
63401c
%%scl_prefix_%{scl_name_base} %{scl_prefix}
63401c
EOF
63401c
63401c
# Install generated man page.
63401c
mkdir -p %{buildroot}%{_mandir}/man7/
63401c
install -p -m 644 %{scl_name}.7 %{buildroot}%{_mandir}/man7/
63401c
63401c
# Create directory for pkgconfig files, originally provided by pkgconfig
63401c
# package, but not for SCL.
63401c
mkdir -p %{buildroot}%{_libdir}/pkgconfig
63401c
63401c
%files
63401c
63401c
%files runtime
63401c
%doc README LICENSE
63401c
%scl_files
63401c
# Own the manual directories (rhbz#1073458, rhbz#1072319).
63401c
%dir %{_mandir}/man1
63401c
%dir %{_mandir}/man7
63401c
%dir %{_libdir}/pkgconfig
63401c
%{_mandir}/man7/%{scl_name}.*
63401c
63401c
%files build
63401c
%{_root_sysconfdir}/rpm/macros.%{scl}-config
63401c
63401c
%files scldevel
63401c
%{_root_sysconfdir}/rpm/macros.%{scl_name_base}-scldevel
63401c
63401c
%changelog
63401c
* Mon Mar 31 2014 Honza Horak <hhorak@redhat.com> - 1.1-7
63401c
- Fix path typo in README
63401c
  Related: #1061460
63401c
63401c
* Tue Mar 25 2014 Vít Ondruch <vondruch@redhat.com> - 1.1-6
63401c
- Own manual directories.
63401c
- Own pkgconfig directory.
63401c
  Resolves: rhbz#1073458
63401c
63401c
* Wed Feb 26 2014 Josef Stribny <jstribny@redhat.com> - 1.1-5
63401c
- Properly expand empty $PATH
63401c
  Resolves: rhbz#1069302
63401c
63401c
* Wed Feb 12 2014 Honza Horak <hhorak@redhat.com> - 1.1-4
63401c
- Fix grammar mistakes in README
63401c
  Related: #1061460
63401c
63401c
* Tue Feb 11 2014 Vít Ondruch <vondruch@redhat.com> - 1.1-3
63401c
- Do not produce empty debuginfo package.
63401c
  Related: rhbz#1061460
63401c
63401c
* Mon Feb 10 2014 Vít Ondruch <vondruch@redhat.com> - 1.1-2
63401c
- Install ruby when installing ruby200 metapackage.
63401c
  Related: rhbz#1039934
63401c
63401c
* Thu Feb 06 2014 Vít Ondruch <vondruch@redhat.com> - 1.1-1
63401c
- Bump version.
63401c
- Drop rails dependencies.
63401c
  Resolves: rhbz#1056022
63401c
- Add -build package dependency on scl-utils-build.
63401c
  Resolves: rhbz#1058616
63401c
- Add LICENSE, README and man page.
63401c
  Resolves: rhbz#1061460
63401c
63401c
* Tue Jan 21 2014 Vít Ondruch <vondruch@redhat.com> - 1-6
63401c
- Add -scldevel sub-package.
63401c
  Resolves: rhbz#1055548
63401c
63401c
* Wed Dec 11 2013 Josef Stribny <jstribny@redhat.com> - 1-3
63401c
- Add list of packages to install
63401c
  Resolves: rhbz#1039934
63401c
63401c
* Wed Sep 04 2013 Josef Stribny <jstribny@redhat.com> - 1-2
63401c
- Add setup macro which is now mandated rhbz#913103
63401c
63401c
* Thu Jul 25 2013 Josef Stribny <jstribny@redhat.com> - 1-1
63401c
- Initial package.