/[smeserver]/rpms/php-pear-HTTP_WebDAV_Server/sme10/HTTP_WebDAV_Server.spec
ViewVC logotype

Annotation of /rpms/php-pear-HTTP_WebDAV_Server/sme10/HTTP_WebDAV_Server.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Thu Jun 16 14:25:10 2016 UTC (8 years, 5 months ago) by unnilennium
Branch: MAIN
CVS Tags: php-pear-HTTP_WebDAV_Server-1_0_0RC8-2
Initial import

1 unnilennium 1.1 %define peardir %(pear config-get php_dir 2> /dev/null || echo %{_datadir}/pear)
2     %define xmldir /var/lib/pear
3     %global pear_name HTTP_WebDAV_Server
4    
5     Summary: WebDAV Server Baseclass
6     Name: php-pear-HTTP_WebDAV_Server
7     Version: 1.0.0RC8
8     Release: 2
9     License: New BSD License
10     Group: Development/Libraries
11     Source0: http://pear.php.net/get/HTTP_WebDAV_Server-%{version}.tgz
12     BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
13     URL: http://pear.php.net/package/HTTP_WebDAV_Server
14    
15     BuildRequires: php-pear(PEAR) >= 1.4.7
16     Provides: php-pear(%{pear_name}) = %{version}
17    
18     #BuildRequires: PEAR::PEAR >= 1.4.7
19    
20     BuildArch: noarch
21    
22     %description
23     RFC2518 compliant helper class for WebDAV server implementation.
24    
25     %prep
26     %setup -c -T
27     pear -v -c pearrc \
28     -d php_dir=%{peardir} \
29     -d doc_dir=/docs \
30     -d bin_dir=%{_bindir} \
31     -d data_dir=%{peardir}/data \
32     -d test_dir=%{peardir}/tests \
33     -d ext_dir=%{_libdir} \
34     -s
35    
36     %build
37    
38     %install
39     rm -rf %{buildroot}
40     pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0}
41    
42     # Clean up unnecessary files
43     rm pearrc
44     rm %{buildroot}/%{peardir}/.filemap
45     rm %{buildroot}/%{peardir}/.lock
46     rm -rf %{buildroot}/%{peardir}/.registry
47     rm -rf %{buildroot}%{peardir}/.channels
48     rm %{buildroot}%{peardir}/.depdb
49     rm %{buildroot}%{peardir}/.depdblock
50    
51     mv %{buildroot}/docs .
52    
53    
54     # Install XML package description
55     mkdir -p %{buildroot}%{xmldir}
56     tar -xzf %{SOURCE0} package.xml
57     cp -p package.xml %{buildroot}%{xmldir}/HTTP_WebDAV_Server.xml
58    
59     %clean
60     rm -rf %{buildroot}
61    
62     %post
63     pear install --nodeps --soft --force --register-only %{xmldir}/HTTP_WebDAV_Server.xml >/dev/null || :
64    
65     %postun
66     if [ "$1" -eq "0" ]; then
67     pear uninstall --nodeps --ignore-errors --register-only pear.php.net/HTTP_WebDAV_Server >/dev/null || :
68     fi
69    
70     %files
71     %defattr(-,root,root)
72     %doc docs/HTTP_WebDAV_Server/*
73     %{peardir}/*
74     %{xmldir}/HTTP_WebDAV_Server.xml
75    
76     %changelog
77     * Mon Jun 24 2013 John H. Bennett III <bennettj@johnbennettservices.com> - 1.0.0RC8-2
78     - updated spec file requires section, and left original info remarked.
79    
80     * Mon Jun 24 2013 John H. Bennett III <bennettj@johnbennettservices.com> - 1.0.0RC8-1
81     - Original build from pear-make-rpm-spec.

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed