diff options
author | Remi Collet <remi@remirepo.net> | 2020-02-07 11:03:39 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2020-02-07 11:03:39 +0100 |
commit | b5ef5e2c551b9e89b4579ebf495cbe20203ab2b6 (patch) | |
tree | e7399aeae45abaa6bc5ad212cb23bea1cbff1e3e |
duplicate v1
-rw-r--r-- | .gitignore | 8 | ||||
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | composer.json | 29 | ||||
-rw-r--r-- | php-phpunit-php-text-template2.spec | 140 |
4 files changed, 181 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fc9aa8c --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +clog +package-*.xml +*.tgz +*.tar.gz +*.tar.xz +*.tar.xz.asc +*.src.rpm +*/*rpm diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..13af741 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +SRCDIR := $(shell pwd) +NAME := $(shell basename $(SRCDIR)) +include ../../../common/Makefile + diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..a5779c8 --- /dev/null +++ b/composer.json @@ -0,0 +1,29 @@ +{ + "name": "phpunit/php-text-template", + "description": "Simple template engine.", + "type": "library", + "keywords": [ + "template" + ], + "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "license": "BSD-3-Clause", + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-text-template/issues" + }, + "require": { + "php": ">=5.3.3" + }, + "autoload": { + "classmap": [ + "src/" + ] + } +} + diff --git a/php-phpunit-php-text-template2.spec b/php-phpunit-php-text-template2.spec new file mode 100644 index 0000000..71c5a40 --- /dev/null +++ b/php-phpunit-php-text-template2.spec @@ -0,0 +1,140 @@ +# remirepo/fedora spec file for php-phpunit-Text-Template +# +# Copyright (c) 2010-2017 Remi Collet +# License: CC-BY-SA +# http://creativecommons.org/licenses/by-sa/4.0/ +# +# Please, preserve the changelog entries +# +%global gh_commit 31f8b717e51d9a2afca6c9f046f5d69fc27c8686 +%global gh_short %(c=%{gh_commit}; echo ${c:0:7}) +%global gh_owner sebastianbergmann +%global gh_project php-text-template +%global php_home %{_datadir}/php +%global pear_name Text_Template +%global pear_channel pear.phpunit.de + +Name: php-phpunit-Text-Template +Version: 1.2.1 +Release: 1%{?dist} +Summary: Simple template engine + +License: BSD +URL: https://github.com/%{gh_owner}/%{gh_project} +Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{gh_short}.tar.gz + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: php(language) >= 5.3.3 +BuildRequires: %{_bindir}/phpab + +# From composer.json +Requires: php(language) >= 5.3.3 +# From phpcompatinfo report for version 1.2.0 +Requires: php-spl + +Provides: php-composer(phpunit/php-text-template) = %{version} + + +%description +Simple template engine. + + +%prep +%setup -q -n %{gh_project}-%{gh_commit} + +: Restore previous PSR-0 layout +mkdir -p Text/Template +mv src/Template.php Text/ +rmdir src + + +%build +: Generate autoloader +%{_bindir}/phpab \ + --output Text/Template/Autoload.php \ + --basedir Text/Template \ + Text + + +%install +rm -rf %{buildroot} +mkdir -p %{buildroot}%{php_home} +cp -pr Text %{buildroot}%{php_home} + + +%clean +rm -rf %{buildroot} + + +%post +if [ -x %{_bindir}/pear ]; then + %{_bindir}/pear uninstall --nodeps --ignore-errors --register-only \ + %{pear_channel}/%{pear_name} >/dev/null || : +fi + + +%files +%defattr(-,root,root,-) +%{!?_licensedir:%global license %%doc} +%license LICENSE +%doc README.md +%doc composer.json +%{php_home}/* + + +%changelog +* Sun Jun 21 2015 Remi Collet <remi@fedoraproject.org> - 1.2.1-1 +- update to 1.2.1 +- generate autoloader + +* Sat Jun 7 2014 Remi Collet <remi@fedoraproject.org> - 1.2.0-4 +- composer dependencies + +* Wed Apr 30 2014 Remi Collet <remi@fedoraproject.org> - 1.2.0-3 +- cleanup pear registry + +* Tue Apr 29 2014 Remi Collet <remi@fedoraproject.org> - 1.2.0-2 +- sources from github + +* Thu Jan 30 2014 Remi Collet <remi@fedoraproject.org> - 1.2.0-1 +- Update to 1.2.0 + +* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Nov 1 2012 Remi Collet <remi@fedoraproject.org> - 1.1.4-1 +- Version 1.1.4 (stable) - API 1.1.0 (stable) + +* Sat Oct 6 2012 Remi Collet <remi@fedoraproject.org> - 1.1.3-1 +- Version 1.1.3 (stable) - API 1.1.0 (stable) + +* Mon Sep 24 2012 Remi Collet <remi@fedoraproject.org> - 1.1.2-1 +- Version 1.1.2 (stable) - API 1.1.0 (stable) +- LICENSE is now provided in upstream tarball + +* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Nov 01 2011 Remi Collet <remi@fedoraproject.org> - 1.1.1-1 +- Version 1.1.1 (stable) - API 1.1.0 (stable) +- raise dependencies, PEAR 1.9.4 and PHP 5.2.7 + +* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Sun Dec 05 2010 Remi Collet <Fedora@famillecollet.com> - 1.1.0-1 +- Version 1.1.0 (stable) - API 1.1.0 (stable) +- remove README.mardown (which is only install doc) + +* Fri Nov 05 2010 Remi Collet <Fedora@famillecollet.com> - 1.0.0-2 +- fix URL + +* Sun Sep 26 2010 Remi Collet <Fedora@famillecollet.com> - 1.0.0-1 +- initial generated spec + clean |