From e9d4b2e42ba580206c5897ac7fcf0714aa238be3 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Jun 09 2014 09:42:15 +0000 Subject: import v8314-1.1-9.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/.gitignore diff --git a/.v8314.metadata b/.v8314.metadata new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/.v8314.metadata diff --git a/README.md b/README.md deleted file mode 100644 index ce46a88..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -\ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/LICENSE b/SOURCES/LICENSE new file mode 100644 index 0000000..404d243 --- /dev/null +++ b/SOURCES/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2013-2014 by Red Hat inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/SOURCES/README b/SOURCES/README new file mode 100644 index 0000000..3b46efa --- /dev/null +++ b/SOURCES/README @@ -0,0 +1,43 @@ +The Software collection %{scl_name} is only ment to provide functionality for +other software collections such as nodejs or mongodb. + +Package %{scl_name} provides V8 JavaScript engine delivered as a Software +Collection. For more information about Software Collections, +see the scl(1) man page. By installing the %{scl_name} collection, +you will get the minimum working set of packages to have a working +V8 JavaScript engine. + +Usage: scl enable %{scl} 'd8' + +Software Collections allow you to build and execute applications +which are not located in the filesystem root hierarchy, +but are stored in an alternative location, which is %{_scl_root} +in case of the %{scl_name} collection. + +V8 is Google's open source JavaScript engine. V8 is written in C++ and is used +in Google Chrome, the open source browser from Google. V8 implements ECMAScript +as specified in ECMA-262, 3rd edition. + +When you want to work with the %{scl_name} collection, use the scl +utility (see the scl(1) man page for usage) to enable the scl +environment. + +Configuration for the %{scl_name} software collection is located +under %{_sysconfdir}. + +Examples: +scl enable %{scl_name} 'command --arg' + Run a specific command with the argument --arg within the %{scl_name} + software collections environment. + +scl enable %{scl_name} 'd8' + Run d8 from the %{scl_name} software collection. + +scl enable %{scl_name} bash + Run an interactive shell with the %{scl_name} software collection enabled. + +scl enable %{scl_name} 'man d8' + Show man pages for the d8 command, which is a part of the + %{scl_name} software collection. + +Report bugs to . diff --git a/SPECS/v8314.spec b/SPECS/v8314.spec new file mode 100644 index 0000000..8e2d390 --- /dev/null +++ b/SPECS/v8314.spec @@ -0,0 +1,167 @@ +%global scl_name_base v8 +%global scl_name_version 314 + +%global scl %{scl_name_base}%{scl_name_version} +%scl_package %scl + +%global install_scl 1 + +# do not produce empty debuginfo package +%global debug_package %{nil} + +Name: %scl_name +Version: 1.1 +Release: 9%{?dist} +Summary: %scl Software Collection +License: MIT +Source0: LICENSE +Source1: README + +%if %{?install_scl} > 0 +Requires: %{scl_prefix}gyp +Requires: %{scl_prefix}v8 +Requires: %{scl_prefix}v8-devel +Requires: %{scl_prefix}runtime +%endif + +BuildRequires: scl-utils-build +BuildRequires: python-devel +BuildRequires: help2man + +%description +This is the main package for %scl Software Collection. + +%package runtime +Summary: Package that handles %scl Software Collection. +Requires: scl-utils + +%description runtime +Package shipping essential scripts to work with %scl Software Collection. + +%package build +Summary: Package shipping basic build configuration +Requires: scl-utils-build + +%description build +Package shipping essential configuration macros to build %scl Software Collection. + +%package scldevel +Summary: Package shipping development files for %scl +Provides: scldevel(%{scl_name_base}) + +%description scldevel +Package shipping development files, especially usefull for development of +packages depending on %scl Software Collection. + +%prep +%setup -T -c +# This section generates README file from a template and creates man page +# from that file, expanding RPM macros in the template file. +cat >README <<'EOF' +%{expand:%(cat %{SOURCE1})} +EOF + + +%build +# generate a helper script that will be used by help2man +cat >h2m_helper <<'EOF' +#!/bin/bash +[ "$1" == "--version" ] && echo " %{scl_name} %{version} Software Collection" || cat README +EOF + +chmod a+x h2m_helper + +# generate the man page +help2man -N --section 7 ./h2m_helper -o %{scl_name}.7 + +%install +rm -rf %{buildroot} +%scl_install + +# copy the license file so %%files section sees it +cp %{SOURCE0} . + +mkdir -p %{buildroot}%{_scl_scripts}/root +cat >> %{buildroot}%{_scl_scripts}/enable << EOF +export PATH=%{_bindir}\${PATH:+:\${PATH}} +export LD_LIBRARY_PATH=%{_libdir}\${LD_LIBRARY_PATH:+:\${LD_LIBRARY_PATH}} +export PYTHONPATH=%{_scl_root}%{python_sitelib}\${PYTHONPATH:+:\${PYTHONPATH}} +export MANPATH=%{_mandir}:\$MANPATH +export PKG_CONFIG_PATH=%{_libdir}/pkgconfig\${PKG_CONFIG_PATH:+:\${PKG_CONFIG_PATH}} +export CPATH=%{_includedir}\${CPATH:+:\${CPATH}} +export LIBRARY_PATH=%{_libdir}\${LIBRARY_PATH:+:\${LIBRARY_PATH}} +EOF + +cat >> %{buildroot}%{_root_sysconfdir}/rpm/macros.%{scl_name_base}-scldevel << EOF +%%scl_%{scl_name_base} %{scl} +%%scl_prefix_%{scl_name_base} %{scl_prefix} +EOF + + +# scl doesn't include this directory +mkdir -p %{buildroot}%{_scl_root}%{python_sitelib} +mkdir -p %{buildroot}%{_libdir}/pkgconfig + +cat >> %{buildroot}%{_root_sysconfdir}/rpm/macros.%{scl_name_base}-scldevel << EOF +%%scl_%{scl_name_base} %{scl} +%%scl_prefix_%{scl_name_base} %{scl_prefix} +EOF + +# install generated man page +mkdir -p %{buildroot}%{_mandir}/man7/ +install -m 644 %{scl_name}.7 %{buildroot}%{_mandir}/man7/%{scl_name}.7 + +%files + +%files -f filesystem runtime +%scl_files +%doc README LICENSE +%{_mandir}/man7/%{scl_name}.* + +%files build +%{_root_sysconfdir}/rpm/macros.%{scl}-config + +%files scldevel +%{_root_sysconfdir}/rpm/macros.%{scl_name_base}-scldevel + +%changelog +* Mon Mar 31 2014 Honza Horak - 1.1-9 +- Fix path typo in README + Related: #1061462 + +* Fri Mar 21 2014 Tomas Hrcka - 1.1-8 +- Add python_sitelib to the package +- Enable %files -f filesystem to fix manpages ownership + +* Thu Feb 13 2014 Tomas Hrcka - 1.1-7 +- Added Provides: scldevel(%{scl_name_base}) to scldevel subpackage + +* Wed Feb 12 2014 Tomas Hrcka - 1.1-6 +- Define scl_name_base and scl_name_version macros + +* Wed Feb 12 2014 Honza Horak - 1.1-5 +- Some more grammar fixes in README + Related: #1061462 + +* Wed Feb 12 2014 Tomas Hrcka - 1.1-4 +- Add README and LICENSE files +- Add man page +- Bump version to 1.1 + +* Mon Jan 27 2014 Tomas Hrcka - 1-4 +- Add -scldevel sub-package. + +* Thu Jan 23 2014 Tomas Hrcka - 1-5 +- Install collection packages as dependency(again) + +* Tue Jan 21 2014 Tomas Hrcka - 1-4 +- Rebuild rhbz#1054255 + +* Mon Dec 16 2013 Tomas Hrcka - 1-3 +- Install collection packages as dependency + +* Tue Nov 26 2013 Honza Horak - 1-2 +- Provide CPATH and LIBRARY_PATH in the enable scriptlet + +* Tue Oct 29 2013 thrcka@redhat.com - 1-1 +- Initial version of the V8 Software Collection