/[smeserver]/rpms/php-horde-Horde-ActiveSync/sme10/Horde_Activesync.spec
ViewVC logotype

Diff of /rpms/php-horde-Horde-ActiveSync/sme10/Horde_Activesync.spec

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

Revision 1.1 by unnilennium, Thu Jun 16 16:17:22 2016 UTC Revision 1.2 by unnilennium, Thu Jun 16 18:35:01 2016 UTC
# Line 1  Line 1 
1  %define peardir /usr/share/pear  %define peardir /usr/share/pear
2  %define xmldir  /var/lib/pear  %define xmldir  /var/lib/pear
3    %{!?pear_metadir: %global pear_metadir %{pear_phpdir}}
4    %{!?__pear:       %global __pear       %{_bindir}/pear}
5    %global pear_name    Horde_ActiveSync
6    %global pear_channel pear.horde.org
7    
8  Summary: PEAR: Horde ActiveSync Server Library  Summary: PEAR: Horde ActiveSync Server Library
9  Name: php-horde-Horde-ActiveSync  Name: php-horde-Horde-ActiveSync
# Line 12  BuildRoot: %{_tmppath}/%{name}-%{version Line 16  BuildRoot: %{_tmppath}/%{name}-%{version
16  URL: http://pear.horde.org/package/Horde_ActiveSync  URL: http://pear.horde.org/package/Horde_ActiveSync
17  BuildRequires:       php-pear(PEAR) >= 1.4.7  BuildRequires:       php-pear(PEAR) >= 1.4.7
18  BuildRequires: php-channel(pear.horde.org)  BuildRequires: php-channel(pear.horde.org)
19  Requires: Horde_Role >= 1.0.0  Requires: php-horde-Horde_Role >= 1.0.0
20  Requires: Horde_Compress >= 2.0.0  Requires: php-horde-Horde_Compress >= 2.0.0
21  Requires: Horde_Compress < 3.0.0alpha1  Requires: php-horde-Horde_Compress < 3.0.0alpha1
22  Requires: Horde_Date >= 2.0.0  Requires: php-horde-Horde_Date >= 2.0.0
23  Requires: Horde_Date < 3.0.0alpha1  Requires: php-horde-Horde_Date < 3.0.0alpha1
24  Requires: Horde_Exception >= 2.0.0  Requires: php-horde-Horde_Exception >= 2.0.0
25  Requires: Horde_Exception < 3.0.0alpha1  Requires: php-horde-Horde_Exception < 3.0.0alpha1
26  Requires: Horde_Icalendar >= 2.0.0  Requires: php-horde-Horde_Icalendar >= 2.0.0
27  Requires: Horde_Icalendar < 3.0.0alpha1  Requires: php-horde-Horde_Icalendar < 3.0.0alpha1
28  Requires: Horde_Mapi >= 1.0.0  Requires: php-horde-Horde_Mapi >= 1.0.0
29  Requires: Horde_Mapi < 2.0.0alpha1  Requires: php-horde-Horde_Mapi < 2.0.0alpha1
30  Requires: Horde_Mime >= 2.0.0  Requires: php-horde-Horde_Mime >= 2.0.0
31  Requires: Horde_Mime < 3.0.0alpha1  Requires: php-horde-Horde_Mime < 3.0.0alpha1
32  Requires: Horde_Stream >= 1.4.0  Requires: php-horde-Horde_Stream >= 1.4.0
33  Requires: Horde_Stream < 2.0.0alpha1  Requires: php-horde-Horde_Stream < 2.0.0alpha1
34  Requires: Horde_Support >= 2.0.0  Requires: php-horde-Horde_Support >= 2.0.0
35  Requires: Horde_Support < 3.0.0alpha1  Requires: php-horde-Horde_Support < 3.0.0alpha1
36  Requires: Horde_Util >= 2.0.0  Requires: php-horde-Horde_Util >= 2.0.0
37  Requires: Horde_Util < 3.0.0alpha1  Requires: php-horde-Horde_Util < 3.0.0alpha1
38  Requires: php-pear(PEAR) >= 1.7.0            Requires: php-pear(PEAR) >= 1.7.0          
39  Requires: php-channel(pear.horde.org)    Requires: php-channel(pear.horde.org)  
40  BuildArch: noarch  BuildArch: noarch
41    BuildRequires: php-horde-Horde-Role
42    #BuildRequires: php-phpunit-PHPUnit
43  Provides:       %{name} = %{version}  Provides:       %{name} = %{version}
44    
45  %description  %description
46  Libraries for implementing an ActiveSync server.  Libraries for implementing an ActiveSync server.
47    
48  %prep  %prep
49  %setup -c -T  %setup -q -c
50  pear -v -c pearrc \  
51          -d php_dir=%{peardir} \  cd %{pear_name}-%{version}
52          -d doc_dir=%{pear_docdir} \  
53          -d bin_dir=%{_bindir} \  # Don't install .po and .pot files
54          -d data_dir=%{peardir}/data \  # Remove checksum for .mo, as we regenerate them
55          -d test_dir=%{peardir}/tests \  sed -e '/%{pear_name}.po/d' \
56          -d ext_dir=%{_libdir} \      -e '/Horde_Other.po/d' \
57          -d horde_dir=%{pear_hordedir} \      -e '/%{pear_name}.mo/s/md5sum="[^"]*"//' \
58          -s      ../package.xml >%{name}.xml
59    touch -r ../package.xml %{name}.xml
60    
61    
62  %build  %build
63    cd %{pear_name}-%{version}
64    
65  %install  # Regenerate the locales
66  rm -rf %{buildroot}  for po in $(find locale -name \*.po)
67  pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0}  do
68               msgfmt $po -o $(dirname $po)/$(basename $po .po).mo
69  # Clean up unnecessary files  done
 rm pearrc  
 rm %{buildroot}/%{peardir}/.filemap  
 rm %{buildroot}/%{peardir}/.lock  
 rm -rf %{buildroot}/%{peardir}/.registry  
 rm -rf %{buildroot}%{peardir}/.channels  
 rm %{buildroot}%{peardir}/.depdb  
 rm %{buildroot}%{peardir}/.depdblock  
70    
 #mv %{buildroot}/docs .  
71    
72    %install
73    cd %{pear_name}-%{version}
74    %{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml
75    
76    # Clean up unnecessary files
77    rm -rf %{buildroot}%{pear_metadir}/.??*
78    
79  # Install XML package description  # Install XML package description
80  mkdir -p %{buildroot}%{xmldir}  mkdir -p %{buildroot}%{pear_xmldir}
81  tar -xzf %{SOURCE0} package.xml  install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir}
82  cp -p package.xml %{buildroot}%{xmldir}/Horde_ActiveSync.xml  
83    # Locales
84    for loc in locale/{??,??_??}
85    do
86        lang=$(basename $loc)
87        test -d %{buildroot}%{pear_datadir}/%{pear_name}/$loc \
88             && echo "%%lang(${lang%_*}) %{pear_datadir}/%{pear_name}/$loc"
89    done | tee ../%{pear_name}.lang
90    
91    
92    %check
93    cd %{pear_name}-%{version}/test/$(echo %{pear_name} | sed -e s:_:/:g)
94    #%{_bindir}/phpunit --verbose .
95    
96    #if which php70; then
97    #   php70 %{_bindir}/phpunit --verbose .
98    #fi
99    
 %clean  
 rm -rf %{buildroot}  
100    
101  %post  %post
102  pear install --nodeps --soft --force --register-only %{xmldir}/Horde_ActiveSync.xml >/dev/null || :  %{__pear} install --nodeps --soft --force --register-only \
103        %{pear_xmldir}/%{name}.xml >/dev/null || :
104    
105  %postun  %postun
106  if [ "$1" -eq "0" ]; then  if [ $1 -eq 0 ] ; then
107      pear uninstall --nodeps --ignore-errors --register-only pear.horde.org/Horde_ActiveSync >/dev/null || :      %{__pear} uninstall --nodeps --ignore-errors --register-only \
108            %{pear_channel}/%{pear_name} >/dev/null || :
109  fi  fi
110    
111  %files  
112  %defattr(-,root,root)  %files -f %{pear_name}.lang
113  #%doc docs/Horde_ActiveSync/*  %doc %{pear_docdir}/%{pear_name}
114  %{peardir}/*  %{pear_xmldir}/%{name}.xml
115  %{xmldir}/Horde_ActiveSync.xml  #%dir %{pear_phpdir}/Horde/Service
116    #%{pear_phpdir}/Horde/Service/ActiveSync
117    #%{pear_phpdir}/Horde/Service/ActiveSync.php
118    %dir %{pear_datadir}/%{pear_name}
119    %dir %{pear_datadir}/%{pear_name}/locale
120    %{pear_testdir}/%{pear_name}
121    #%{pear_hordedir}/themes
122    #%dir /usr/share/pear-data/Horde_ActiveSync
123    #%dir /usr/share/pear-data/Horde_ActiveSync/migration/
124    /usr/share/pear-data/Horde_ActiveSync/migration/*
125    /usr/share/pear/Horde/*
126    #/usr/share/pear/Horde/ActiveSync/*
127    
128  %changelog  %changelog
129  * Tue Jun 7 2016 John H. Bennett III <bennettj@johnbennettservices.com> - 2.34.0-1  * Tue Jun 7 2016 John H. Bennett III <bennettj@johnbennettservices.com> - 2.34.0-1


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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