Menu

[r456]: / trunk / php-java-bridge / server / itext4php.spec  Maximize  Restore  History

Download this file

59 lines (44 with data), 1.2 kB

 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
#-*- mode: rpm-spec; tab-width:4 -*-
%define version 0.9.0
%define release 1
Name: itext4php
Summary: The itext library for the PHP Hypertext Preprocessor
Group: Development/Languages
Version: %{version}
Release: %{release}
License: LGPL
URL: http://www.sourceforge.net/projects/php-java-bridge
Source0: http://osdn.dl.sourceforge.net/sourceforge/php-java-bridge/itext4php_%{version}.tar.bz2
BuildRequires: ed
BuildRequires: php-java-bridge
Requires: php >= 4.3.2
Requires: libgcj
Requires: php-java-bridge
BuildRoot: %{_tmppath}/%{name}-root
%description
itext module/extension for the PHP script language.
%prep
%setup
%build
PATH=/bin:%{_bindir}
LD_LIBRARY_PATH=/lib:%{_libdir}
%install
rm -rf $RPM_BUILD_ROOT
%makeinstall converter=%{_libdir}/php/modules/java | tee install.log
rm -rf $RPM_BUILD_ROOT/%{_datadir}/pear/rt $RPM_BUILD_ROOT/%{_datadir}/pear/java/Bridge.php
echo %{_datadir}/pear/itext >filelist
for i in `find $RPM_BUILD_ROOT/%{_datadir}/pear/itext -name "*.php" -print`; do
ed -s $i <<end || true
1,\$s|${RPM_BUILD_ROOT}||
w
q
end
done
%clean
rm -rf $RPM_BUILD_ROOT
%post
exit 0
%preun
%files -f filelist
%defattr(-,root,root)
%doc README COPYING.LIB examples