summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--php-ocramius-generated-hydrator-dev.spec186
1 files changed, 0 insertions, 186 deletions
diff --git a/php-ocramius-generated-hydrator-dev.spec b/php-ocramius-generated-hydrator-dev.spec
deleted file mode 100644
index f351cdf..0000000
--- a/php-ocramius-generated-hydrator-dev.spec
+++ /dev/null
@@ -1,186 +0,0 @@
-# remirpeo spec file for php-ocramius-generated-hydrator, from
-#
-# Fedora spec file for php-ocramius-generated-hydrator
-#
-# Copyright (c) 2014-2017 Shawn Iwinski <shawn.iwinski@gmail.com>
-#
-# License: MIT
-# http://opensource.org/licenses/MIT
-#
-# Please preserve changelog entries
-#
-
-%global github_owner Ocramius
-%global github_name GeneratedHydrator
-%global github_version 2.0.0
-%global github_commit 98a731e7d4e393513cb6f4e7f120da853680fb50
-
-%global composer_vendor ocramius
-%global composer_project generated-hydrator
-
-# "php": "~7.0"
-%global php_min_ver 7.0
-# "nikic/php-parser": "~2.0"
-%global php_parser_min_ver 2.0
-%global php_parser_max_ver 3
-# "ocramius/code-generator-utils": "0.4.*"
-%global ocramius_cgu_min_ver 0.4.0
-%global ocramius_cgu_max_ver 0.5
-# "zendframework/zend-hydrator": "~2.0"
-%global zf_hydrator_min_ver 2.0
-%global zf_hydrator_max_ver 3
-
-# Build using "--without tests" to disable tests
-%global with_tests 0%{!?_without_tests:1}
-
-%{!?phpdir: %global phpdir %{_datadir}/php}
-
-Name: php-%{composer_vendor}-%{composer_project}
-Version: %{github_version}
-Release: 3%{?github_release}%{?dist}
-Summary: An object hydrator
-
-Group: Development/Libraries
-License: MIT
-URL: https://github.com/%{github_owner}/%{github_name}
-Source0: %{url}/archive/%{github_commit}/%{name}-%{github_version}-%{github_commit}.tar.gz
-
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildArch: noarch
-%if %{with_tests}
-# composer.json
-BuildRequires: php(language) >= %{php_min_ver}
-BuildRequires: php-composer(nikic/php-parser) < %{php_parser_max_ver}
-BuildRequires: php-composer(nikic/php-parser) >= %{php_parser_min_ver}
-BuildRequires: php-composer(ocramius/code-generator-utils) >= %{ocramius_cgu_min_ver}
-BuildRequires: php-composer(ocramius/code-generator-utils) < %{ocramius_cgu_max_ver}
-BuildRequires: php-composer(phpunit/phpunit) >= 5.0
-BuildRequires: php-composer(zendframework/zend-hydrator) >= %{zf_hydrator_min_ver}
-BuildRequires: php-composer(zendframework/zend-hydrator) < %{zf_hydrator_max_ver}
-# phpcompatinfo (computed from version 2.0.0)
-BuildRequires: php-pcre
-BuildRequires: php-reflection
-BuildRequires: php-spl
-# Autoloader
-BuildRequires: php-composer(symfony/class-loader)
-%endif
-
-# composer.json
-Requires: php(language) >= %{php_min_ver}
-Requires: php-composer(nikic/php-parser) < %{php_parser_max_ver}
-Requires: php-composer(nikic/php-parser) >= %{php_parser_min_ver}
-Requires: php-composer(ocramius/code-generator-utils) >= %{ocramius_cgu_min_ver}
-Requires: php-composer(ocramius/code-generator-utils) < %{ocramius_cgu_max_ver}
-Requires: php-composer(zendframework/zend-hydrator) >= %{zf_hydrator_min_ver}
-Requires: php-composer(zendframework/zend-hydrator) < %{zf_hydrator_max_ver}
-# phpcompatinfo (computed from version 2.0.0)
-Requires: php-reflection
-Requires: php-spl
-
-# Composer
-Provides: php-composer(%{composer_vendor}/%{composer_project}) = %{version}
-
-%description
-GeneratedHydrator is a library about high performance transition of data from
-arrays to objects and from objects to arrays.
-
-Autoloader: %{phpdir}/GeneratedHydrator/autoload.php
-
-
-%prep
-%setup -qn %{github_name}-%{github_commit}
-
-
-%build
-: Create autoloader
-cat <<'AUTOLOAD' | tee src/GeneratedHydrator/autoload.php
-<?php
-/**
- * Autoloader for %{name} and its' dependencies
- * (created by %{name}-%{version}-%{release}).
- *
- * @return \Symfony\Component\ClassLoader\ClassLoader
- */
-
-if (!isset($fedoraClassLoader) || !($fedoraClassLoader instanceof \Symfony\Component\ClassLoader\ClassLoader)) {
- if (!class_exists('Symfony\\Component\\ClassLoader\\ClassLoader', false)) {
- require_once '%{phpdir}/Symfony/Component/ClassLoader/ClassLoader.php';
- }
-
- $fedoraClassLoader = new \Symfony\Component\ClassLoader\ClassLoader();
- $fedoraClassLoader->register();
-}
-
-$fedoraClassLoader->addPrefix('GeneratedHydrator\\', dirname(__DIR__));
-
-// Required dependencies
-require_once '%{phpdir}/CodeGenerationUtils/autoload.php';
-require_once '%{phpdir}/PhpParser2/autoload.php';
-require_once '%{phpdir}/Zend/autoload.php';
-
-return $fedoraClassLoader;
-AUTOLOAD
-
-
-%install
-rm -rf %{buildroot}
-
-mkdir -p %{buildroot}%{phpdir}
-cp -rp src/GeneratedHydrator %{buildroot}%{phpdir}/
-
-
-%check
-%if %{with_tests}
-: Create tests bootstrap
-cat <<'BOOTSTRAP' | tee bootstrap.php
-<?php
-$fedoraClassLoader = require '%{buildroot}%{phpdir}/GeneratedHydrator/autoload.php';
-$fedoraClassLoader->addPrefix('GeneratedHydratorPerformance\\', __DIR__.'/tests');
-$fedoraClassLoader->addPrefix('GeneratedHydratorTest\\', __DIR__.'/tests');
-$fedoraClassLoader->addPrefix('GeneratedHydratorTestAsset\\', __DIR__.'/tests');
-BOOTSTRAP
-
-%{_bindir}/phpunit --verbose --bootstrap bootstrap.php
-%else
-: Tests skipped
-%endif
-
-
-%clean
-rm -rf %{buildroot}
-
-
-%files
-%defattr(-,root,root,-)
-%{!?_licensedir:%global license %%doc}
-%license LICENSE
-%doc *.md
-%doc composer.json
-%{phpdir}/GeneratedHydrator
-
-
-%changelog
-* Mon Jan 23 2017 Remi Collet <remi@fedoraproject.org> - 2.0.0-3
-- change BR order, fix FTBFS from Koschei
-
-* Wed Oct 12 2016 Remi Collet <remi@fedoraproject.org> - 2.0.0-2
-- switch symfony autoloader
-
-* Wed Jun 29 2016 Remi Collet <remi@fedoraproject.org> - 2.0.0-1
-- update to 2.0.0
-- drop dependency on zendframework/zend-stdlib
-- raise dependency on php ~7.0
-- raise dependency on nikic/php-parser ~2.0
-- raise dependency on ocramius/code-generator-utils 0.4.*
-- add dependency on zendframework/zend-hydrator
-- add simple autoloader
-
-* Wed Feb 25 2015 Remi Collet <remi@fedoraproject.org> - 1.1.1-1
-- update to 1.1.1 (no change)
-- raise nikic/php-parser max version
-
-* Sat Nov 29 2014 Remi Collet <rpms@famillecollet.com> - 1.1.0-1
-- backport for remi repo
-
-* Mon Oct 27 2014 Shawn Iwinski <shawn.iwinski@gmail.com> - 1.1.0-1
-- Initial package