Projects
Kolab:16:TestingLinked
libkolab
Log In
Username
Password
We truncated the diff of some files because they were too big. If you want to see the full diff for every file,
click here
.
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 8
View file
libkolab.spec
Changed
@@ -54,6 +54,14 @@ BuildRequires: make BuildRequires: php >= 5.3 BuildRequires: php-devel >= 5.3 + +%if 0%{?plesk} +BuildRequires: plesk-php56-devel +BuildRequires: plesk-php70-devel +BuildRequires: plesk-php71-devel +BuildRequires: plesk-php72-devel +%endif + BuildRequires: python-devel %if 0%{?suse_version} BuildRequires: qt-devel @@ -113,6 +121,44 @@ %description -n php-kolab PHP Bindings for libkolab +%if 0%{?plesk} +%package -n plesk-php56-kolab +Summary: libkolab bindings for Plesk's PHP 5.6 +Group: System Environment/Libraries +Requires: libkolab%{?_isa} = %{version} +Requires: plesk-php56 + +%description -n plesk-php56-kolab +libkolab bindings for Plesk's PHP 5.6 + +%package -n plesk-php70-kolab +Summary: libkolab bindings for Plesk's PHP 7.0 +Group: System Environment/Libraries +Requires: libkolab%{?_isa} = %{version} +Requires: plesk-php70 + +%description -n plesk-php70-kolab +libkolab bindings for Plesk's PHP 7.0 + +%package -n plesk-php71-kolab +Summary: libkolab bindings for Plesk's PHP 7.1 +Group: System Environment/Libraries +Requires: libkolab%{?_isa} = %{version} +Requires: plesk-php71 + +%description -n plesk-php71-kolab +libkolab bindings for Plesk's PHP 7.1 + +%package -n plesk-php72-kolab +Summary: libkolab bindings for Plesk's PHP 7.2 +Group: System Environment/Libraries +Requires: libkolab%{?_isa} = %{version} +Requires: plesk-php72 + +%description -n plesk-php72-kolab +libkolab bindings for Plesk's PHP 7.2 +%endif + %package -n python-kolab Summary: Python bindings for libkolab Group: System Environment/Libraries @@ -127,13 +173,27 @@ Python bindings for libkolab %prep -%setup -q -n libkolab-%{version} +%setup -q -c -n libkolab-%{version} + +%if 0%{?plesk} +cp -a libkolab-%{version} libkolab-%{version}-5.6 + +cp -a libkolab-%{version} libkolab-%{version}-7.0 +sed -i "s/-php/-php7/g" libkolab-%{version}-7.0/cmake/modules/SWIGUtils.cmake + +cp -a libkolab-%{version} libkolab-%{version}-7.1 +sed -i "s/-php/-php7/g" libkolab-%{version}-7.1/cmake/modules/SWIGUtils.cmake + +cp -a libkolab-%{version} libkolab-%{version}-7.2 +sed -i "s/-php/-php7/g" libkolab-%{version}-7.2/cmake/modules/SWIGUtils.cmake +%endif %if 0%{?with_php7} sed -i "s/-php/-php7/g" cmake/modules/SWIGUtils.cmake %endif %build +pushd %{name}-%{version} rm -rf build mkdir -p build pushd build @@ -177,10 +237,44 @@ .. make popd +popd + +%if 0%{?plesk} +for version in 5.6 7.0 7.1 7.2; do + pushd %{name}-%{version}-${version} + rm -rf build + mkdir -p build + pushd build + %cmake \ +%if 0%{?with_at} + -DBUILD_TOOLS:BOOL=OFF \ +%endif + -DCMAKE_C_FLAGS:STRING="-DNDEBUG -DQT_NO_DEBUG" \ + -DBoost_NO_BOOST_CMAKE=TRUE \ + -Wno-fatal-errors -Wno-errors \ + -DINCLUDE_INSTALL_DIR=%{_includedir} \ +%if 0%{?rhel} >= 8 || 0%{?fedora} + -DQT5_BUILD=ON \ +%endif + -DINCLUDE_INSTALL_DIR=%{_includedir} \ +%if 0%{?rhel} < 8 && 0%{?fedora} < 20 + -DUSE_LIBCALENDARING=ON \ +%endif + -DPHP_BINDINGS=ON \ + -DPHP_INCLUDE_DIR=/opt/plesk/php/${version}/include/php/ \ + -DPHP_EXECUTABLE=/opt/plesk/php/${version}/bin/php \ + -DPHP_INSTALL_DIR=/opt/plesk/php/${version}/lib64/php/modules/ \ + .. + make + popd + popd +done +%endif + %install rm -rf %{buildroot} -pushd build +pushd %{name}-%{version}/build make install DESTDIR=%{buildroot} popd @@ -202,11 +296,42 @@ extension=dummy.so EOF +%if 0%{?plesk} +for version in 5.6 7.0 7.1 7.2; do + pushd %{name}-%{version}-${version} + pushd build + make install DESTDIR=%{buildroot} INSTALL='install -p' + popd + + mkdir -p \ + %{buildroot}/opt/plesk/php/${version}/share/php/ \ + %{buildroot}/opt/plesk/php/${version}/etc/php.d/ \ + %{buildroot}/opt/plesk/php/${version}/etc/php-fpm.d/ + + mv \ + %{buildroot}/opt/plesk/php/${version}/lib64/php/modules/*.php \ + %{buildroot}/opt/plesk/php/${version}/share/php/. + + echo "extension=kolabobject.so" > %{buildroot}/opt/plesk/php/${version}/etc/php.d/kolab.ini + echo "extension=kolabshared.so" >> %{buildroot}/opt/plesk/php/${version}/etc/php.d/kolab.ini + echo "extension=kolabcalendaring.so" >> %{buildroot}/opt/plesk/php/${version}/etc/php.d/kolab.ini + echo "extension=kolabicalendar.so" >> %{buildroot}/opt/plesk/php/${version}/etc/php.d/kolab.ini + echo "extension=dummy.so" >> %{buildroot}/opt/plesk/php/${version}/etc/php.d/kolabdummy.ini + + cp %{buildroot}/opt/plesk/php/${version}/etc/php.d/kolab.ini \ + %{buildroot}/opt/plesk/php/${version}/etc/php-fpm.d/ + + cp %{buildroot}/opt/plesk/php/${version}/etc/php.d/kolabdummy.ini \ + %{buildroot}/opt/plesk/php/${version}/etc/php-fpm.d/ + + popd +done +%endif touch %{buildroot}/%{python_sitearch}/kolab/__init__.py %check -pushd build/tests +pushd %{name}-%{version}/build/tests ./benchmarktest || : ./calendaringtest || : ./formattest || : @@ -250,6 +375,37 @@ %{_datadir}/%{php}/dummy.php %{php_extdir}/dummy.so +%if 0%{?plesk} +%files -n plesk-php56-kolab +%defattr(-,root,root,-) +/opt/plesk/php/5.6/lib64/php/modules/*.so +/opt/plesk/php/5.6/share/php/*.php +/opt/plesk/php/5.6/etc/php.d/*.ini +/opt/plesk/php/5.6/etc/php-fpm.d/*.ini + +%files -n plesk-php70-kolab +%defattr(-,root,root,-) +/opt/plesk/php/7.0/lib64/php/modules/*.so +/opt/plesk/php/7.0/share/php/*.php +/opt/plesk/php/7.0/etc/php.d/*.ini +/opt/plesk/php/7.0/etc/php-fpm.d/*.ini + +%files -n plesk-php71-kolab +%defattr(-,root,root,-)
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.