/[packages]/cauldron/php-pear-UDDI/current/SPECS/php-pear-UDDI.spec
ViewVC logotype

Contents of /cauldron/php-pear-UDDI/current/SPECS/php-pear-UDDI.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 44396 - (show annotations) (download)
Sat Jan 29 22:36:49 2011 UTC (10 years, 9 months ago) by spuhler
File size: 2115 byte(s)
removed buildroot definition from .spec

1 %define _class UDDI
2 %define _status alpha
3 %define _pearname %{_class}
4
5 Summary: %{_pearname} - API for PHP
6 Name: php-pear-%{_pearname}
7 Version: 0.2.4
8 Release: %mkrel 2
9 License: PHP License
10 Group: Development/PHP
11 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
12 URL: http://pear.php.net/package/UDDI/
13 Requires(post): php-pear
14 Requires(preun): php-pear
15 Requires: php-pear
16 BuildArch: noarch
17 BuildRequires: dos2unix
18
19 %description
20 Implementation of Universal Description, Discovery and Integration API
21 for locating and publishing Web Services in a UBR (UDDI Business
22 Registry).
23
24 In PEAR status of this package is: %{_status}.
25
26 %prep
27
28 %setup -q -c
29
30 find . -type d -perm 0700 -exec chmod 755 {} \;
31 find . -type f -perm 0555 -exec chmod 755 {} \;
32 find . -type f -perm 0444 -exec chmod 644 {} \;
33
34 for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
35 if [ -e "$i" ]; then rm -rf $i; fi >&/dev/null
36 done
37
38 # strip away annoying ^M
39 find -type f | grep -v ".gif" | grep -v ".png" | grep -v ".jpg" | xargs dos2unix -U
40
41 %install
42 rm -rf %{buildroot}
43
44 install -d %{buildroot}%{_datadir}/pear/%{_class}
45
46 install %{_pearname}-%{version}/*.php %{buildroot}%{_datadir}/pear/%{_class}
47
48 install -d %{buildroot}%{_datadir}/pear/packages
49 install -m0644 package.xml %{buildroot}%{_datadir}/pear/packages/%{_pearname}.xml
50
51 %post
52 if [ "$1" = "1" ]; then
53 if [ -x %{_bindir}/pear -a -f %{_datadir}/pear/packages/%{_pearname}.xml ]; then
54 %{_bindir}/pear install --nodeps -r %{_datadir}/pear/packages/%{_pearname}.xml
55 fi
56 fi
57 if [ "$1" = "2" ]; then
58 if [ -x %{_bindir}/pear -a -f %{_datadir}/pear/packages/%{_pearname}.xml ]; then
59 %{_bindir}/pear upgrade -f --nodeps -r %{_datadir}/pear/packages/%{_pearname}.xml
60 fi
61 fi
62
63 %preun
64 if [ "$1" = 0 ]; then
65 if [ -x %{_bindir}/pear -a -f %{_datadir}/pear/packages/%{_pearname}.xml ]; then
66 %{_bindir}/pear uninstall --nodeps -r %{_pearname}
67 fi
68 fi
69
70 %clean
71 rm -rf %{buildroot}
72
73 %files
74 %defattr(644,root,root,755)
75 %doc %{_pearname}-%{version}/examples
76 %{_datadir}/pear/%{_class}/*.php
77 %{_datadir}/pear/packages/%{_pearname}.xml
78
79
80
81

  ViewVC Help
Powered by ViewVC 1.1.28