Logoj0ke.net Open Build Service > Projects > server:php:applications > php-pear-image_text > Changes
Sign Up | Log In

Changes of Revision 2

[-] Added php-pear-image_text.spec
x
 
1
@@ -0,0 +1,85 @@
2
+# norootforbuild
3
+
4
+%define peardir %(pear config-get php_dir 2> /dev/null)
5
+%define xmldir  %{_var}/lib/pear
6
+%define _pversion 0.6.0beta
7
+
8
+Name:              php5-pear-image_text
9
+Version:           0.6.0
10
+Release:           0.kolab.0
11
+Summary:           Advanced text maipulations in images.
12
+License:           PHP License
13
+Group:         Productivity/Networking/Web/Servers
14
+Url:               http://pear.php.net/package/Image_Text
15
+Source0:           http://pear.php.net/get/Image_Text-%{_pversion}.tgz
16
+BuildArch:     noarch
17
+BuildRoot:     %{_tmppath}/%{name}-%{version}-build
18
+Packager:      Marcus Hüwe <suse-tux@gmx.de>
19
+
20
+PreReq:            php5-pear
21
+Requires:      php5-gd
22
+BuildRequires: php5-pear
23
+
24
+%description
25
+Image_Text provides a comfortable interface to text manipulations in GD
26
+images. Beside common Freetype2 functionality it offers to handle texts
27
+in a graphic- or office-tool like way. For example it allows alignment of
28
+texts inside a text box, rotation (around the top left corner of a text
29
+box or it's center point) and the automatic measurizement of the optimal
30
+font size for a given text box.
31
+
32
+Authors:
33
+--------
34
+   Tobias Schlitt
35
+   Stoyan Stefanov
36
+
37
+%prep
38
+%setup -c -T
39
+pear -v -c pearrc \
40
+         -d php_dir=%{peardir} \
41
+         -d doc_dir=/docs \
42
+         -d bin_dir=%{_bindir} \
43
+         -d data_dir=%{peardir}/data \
44
+         -d test_dir=%{peardir}/tests \
45
+         -d ext_dir=%{_libdir} \
46
+         -s
47
+
48
+%build
49
+%install
50
+pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0}
51
+%__rm -rf %{buildroot}/%{peardir}/.{filemap,lock,registry,channels,depdb,depdblock}
52
+%__mv %{buildroot}/docs .
53
+
54
+# Install XML package description
55
+%__mkdir_p %{buildroot}%{xmldir}
56
+%__tar -xzf %{SOURCE0} package.xml
57
+%__cp package.xml %{buildroot}%{xmldir}/Image_Text.xml
58
+
59
+%clean
60
+%__rm -rf %{buildroot}
61
+
62
+%post
63
+pear install --nodeps --soft --force --register-only %{xmldir}/Image_Text.xml
64
+
65
+%postun
66
+if [ "$1" -eq "0" ]; then
67
+   pear uninstall --nodeps --ignore-errors --register-only pear.php.net/Image_Text
68
+fi
69
+
70
+%files
71
+%defattr(-, root, root)
72
+%doc docs/Image_Text
73
+%dir %{peardir}/Image
74
+%dir %{peardir}/data/Image_Text
75
+%dir %{peardir}/tests/testimages
76
+%{peardir}/Image/Text.php
77
+%{peardir}/data/Image_Text/tests/Vera.ttf
78
+%{peardir}/tests/*.php
79
+%{peardir}/tests/testimages/*.jpg
80
+%{peardir}/tests/testimages/*.png
81
+%{_var}/lib/pear/Image_Text.xml
82
+
83
+
84
+%changelog
85
+* Wed Oct 24 2007 Marcus Hüwe <suse-tux@gmx.de>
86
+- initial build
87