blob: ccac8bc426e4c0ba4b904b7c1b3ea48bc5df07ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
|
%global github_owner doctrine
%global github_name doctrine2
%global github_version 2.4.2
%global github_commit 0363a5548d9263f979f9ca149decb9cfc66419ab
# "php": ">=5.3.2"
%global php_min_ver 5.3.2
# "doctrine/collections": "~1.1"
%global collections_min_ver 1.1
%global collections_max_ver 2.0
# "doctrine/dbal": "~2.4"
%global dbal_min_ver 2.4
%global dbal_max_ver 3.0
# "symfony/console": "~2.0"
# "symfony/yaml": "~2.1"
%global symfony_min_ver 2.1
%global symfony_max_ver 3.0
Name: php-%{github_owner}-orm
Version: %{github_version}
Release: 1%{?dist}
Summary: Doctrine Object-Relational-Mapper (ORM)
Group: Development/Libraries
License: MIT
URL: http://www.doctrine-project.org/projects/orm.html
Source0: https://github.com/%{github_owner}/%{github_name}/archive/%{github_commit}/%{name}-%{github_version}-%{github_commit}.tar.gz
# Update bin script:
# 1) Add she-bang
# 2) Auto-load using Doctrine\Common\ClassLoader
Patch0: %{name}-bin.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: php(language) >= %{php_min_ver}
Requires: php-doctrine-collections >= %{collections_min_ver}
Requires: php-doctrine-collections < %{collections_max_ver}
Requires: php-doctrine-dbal >= %{dbal_min_ver}
Requires: php-doctrine-dbal < %{dbal_max_ver}
Requires: php-symfony-console >= %{symfony_min_ver}
Requires: php-symfony-console < %{symfony_max_ver}
Requires: php-symfony-yaml >= %{symfony_min_ver}
Requires: php-symfony-yaml < %{symfony_max_ver}
# phpcompatinfo (computed from v2.4.2)
Requires: php-ctype
Requires: php-dom
Requires: php-pcre
Requires: php-pdo
Requires: php-reflection
Requires: php-simplexml
Requires: php-spl
Requires: php-tokenizer
# PEAR
Provides: php-pear(pear.doctrine-project.org/DoctrineORM) = %{version}
# Rename
Obsoletes: php-doctrine-DoctrineORM < %{version}
Provides: php-doctrine-DoctrineORM = %{version}
%description
Object relational mapper (ORM) for PHP that sits on top of a powerful database
abstraction layer (DBAL). One of its' key features is the option to write
database queries in a proprietary object oriented SQL dialect called Doctrine
Query Language (DQL), inspired by Hibernate's HQL. This provides developers
with a powerful alternative to SQL that maintains flexibility without requiring
unnecessary code duplication.
Optional caches (see Doctrine\ORM\Tools\Setup::createConfiguration()):
* APC (php-pecl-apc)
* Memcache (php-pecl-memcache)
* Redis (php-pecl-redis)
* XCache (php-xcache)
%prep
%setup -q -n %{github_name}-%{github_commit}
# Patch bin script
%patch0 -p1
# Remove empty file
rm -f lib/Doctrine/ORM/README.markdown
# Remove unnecessary executable bit
chmod a-x lib/Doctrine/ORM/Tools/Pagination/Paginator.php
%build
# Empty build section, nothing required
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/%{_datadir}/php
cp -rp lib/Doctrine %{buildroot}/%{_datadir}/php/
mkdir -p %{buildroot}/%{_bindir}
install -pm 0755 bin/doctrine.php %{buildroot}/%{_bindir}/doctrine
%check
# No upstream tests provided in source
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc LICENSE *.md *.markdown composer.json
%{_datadir}/php/Doctrine/ORM
%{_bindir}/doctrine
%changelog
* Mon Feb 17 2014 Remi Collet <rpms@famillecollet.com> 2.4.2-1
- backport 2.4.2 for remi repo
* Wed Feb 12 2014 Shawn Iwinski <shawn.iwinski@gmail.com> 2.4.2-1
- Updated to 2.4.2 (BZ #1063021)
* Sat Jan 11 2014 Remi Collet <rpms@famillecollet.com> 2.4.1-2
- backport for remi repo
* Sat Jan 04 2014 Shawn Iwinski <shawn.iwinski@gmail.com> 2.4.1-2
- Conditional %%{?dist}
- Bin script patch instead of inline update and use Doctrine Common classloader
- Updated optional cache information in %%description
- Removed empty file
- Removed unnecessary executable bit
* Sat Dec 28 2013 Shawn Iwinski <shawn.iwinski@gmail.com> 2.4.1-1
- Initial package
|