Projects
home:mollekopf:branches:Kolab:Winterfell
pykolab
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 4
View file
pykolab.spec
Changed
@@ -3,18 +3,21 @@ %endif %if 0%{?rhel} >= 8 -%global py2 3 %global use_python3 1 -%{!?python3_sitelib: %global python3_sitelib %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%global pykolab_python_sitelib %{python3_sitelib} +%endif + +%if 0%{?use_python3} +%global py2or3_suffix 3 +%global py3ornone_suffix 3 +%global __python %{__python3} %else -%global py2 2 +%global py2or3_suffix 2 +%global __python %{__python2} +# In the file section we und requiring a python2_sitelib which is otherwise undefined %{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%global pykolab_python_sitelib %{python2_sitelib} %endif - %if 0%{?suse_version} || 0%{?fedora} > 17 || 0%{?rhel} > 6 %global with_systemd 1 %{!?_unitdir: %global _unitdir /usr/lib/systemd/system/} @@ -42,7 +45,7 @@ %if 0%{?suse_version} %global pythonmysql python-mysql %else -%if 0%{?rhel} >= 8 +%if 0%{?use_python3} %global pythonmysql python3-PyMySQL %else %global pythonmysql MySQL-python @@ -79,45 +82,34 @@ BuildRequires: glib2-devel BuildRequires: intltool BuildRequires: %{pythonmysql} -BuildRequires: python%{?py2} -BuildRequires: python%{?py2}-gnupg -BuildRequires: python%{?py2}-icalendar -%if 0%{?use_python3} -BuildRequires: python%{?py2}-ldap -BuildRequires: python%{?py2}-augeas -BuildRequires: python%{?py2}-kolab >= 2.0 -BuildRequires: python%{?py2}-kolabformat -BuildRequires: python%{?py2}-sqlalchemy -BuildRequires: python%{?py2}-tzlocal -%else -BuildRequires: python-ldap -BuildRequires: python-augeas -BuildRequires: python-kolab >= 2.0 -BuildRequires: python-kolabformat -BuildRequires: python-sqlalchemy -BuildRequires: python-tzlocal -%endif -BuildRequires: python%{?py2}-nose -BuildRequires: python%{?py2}-pyasn1 -BuildRequires: python%{?py2}-pyasn1-modules +BuildRequires: python%{?py3ornone_suffix} +BuildRequires: python%{?py3ornone_suffix}-gnupg +BuildRequires: python%{?py3ornone_suffix}-icalendar +BuildRequires: python%{?py3ornone_suffix}-ldap +BuildRequires: python%{?py3ornone_suffix}-augeas +BuildRequires: python%{?py3ornone_suffix}-kolab >= 2.0 +BuildRequires: python%{?py3ornone_suffix}-kolabformat +BuildRequires: python%{?py3ornone_suffix}-sqlalchemy +BuildRequires: python%{?py3ornone_suffix}-tzlocal +BuildRequires: python%{?py2or3_suffix}-nose +BuildRequires: python%{?py2or3_suffix}-pyasn1 +BuildRequires: python%{?py2or3_suffix}-pyasn1-modules %if 0%{?rhel} < 8 && 0%{?fedora} < 1 BuildRequires: pytz %else -BuildRequires: python%{?py2}-pytz +BuildRequires: python%{?py2or3_suffix}-pytz %endif -BuildRequires: python%{?py2}-six +BuildRequires: python%{?py2or3_suffix}-six +%if 0%{?use_python3} < 1 #FIXME only used for unittests -#BuildRequires: python%{?py2}-twisted-core +BuildRequires: python-twisted-core +%endif Requires: kolab-cli = %{version}-%{release} -%if 0%{?use_python3} -Requires: python%{?py2}-ldap >= 2.4 -%else -Requires: python%-ldap >= 2.4 -%endif -Requires: python%{?py2}-pyasn1 -Requires: python%{?py2}-pyasn1-modules -Requires: python%{?py2}-six +Requires: python%{?py3ornone_suffix}-ldap >= 2.4 +Requires: python%{?py2or3_suffix}-pyasn1 +Requires: python%{?py2or3_suffix}-pyasn1-modules +Requires: python%{?py2or3_suffix}-six Requires(pre): /usr/sbin/useradd Requires(pre): /usr/sbin/usermod Requires(pre): /usr/sbin/groupadd @@ -165,10 +157,10 @@ Summary: Kolab XML format wrapper for %{name} Group: Applications/System Requires: %{name} = %{version}-%{release} -Requires: python{?py2}-icalendar -Requires: python{?py2}-kolab -Requires: python{?py2}-kolabformat >= 0.5 -Requires: python{?py2}-tzlocal +Requires: python{?py3ornone_suffix}-icalendar +Requires: python{?py3ornone_suffix}-kolab +Requires: python{?py3ornone_suffix}-kolabformat >= 0.5 +Requires: python{?py3ornone_suffix}-tzlocal %description xml Kolab Format XML bindings wrapper for %{name} @@ -180,14 +172,9 @@ Summary: Kolab CLI components Group: Applications/System Requires: %{name} = %{version}-%{release} -%if 0%{?use_python3} -Requires: python{?py2}-augeas -Requires: python{?py2}-sqlalchemy -%else -Requires: python-augeas -Requires: python-sqlalchemy -%endif -Requires: python{?py2}-cheetah +Requires: python{?py3ornone_suffix}-augeas +Requires: python{?py3ornone_suffix}-sqlalchemy +Requires: python{?py2or3_suffix}-cheetah %description -n kolab-cli Kolab CLI utilities @@ -201,11 +188,7 @@ Requires: %{name} = %{version}-%{release} Requires: cyrus-sasl Requires: cyrus-sasl-plain -%if 0%{?use_python3} -Requires: python{?py2}-sqlalchemy -%else -Requires: python-sqlalchemy -%endif +Requires: python{?py3ornone_suffix}-sqlalchemy %description -n kolab-saslauthd Kolab SASL Authentication Daemon for multi-domain, multi-authn database deployments @@ -233,7 +216,7 @@ Requires: postfix Requires: %{name} = %{version}-%{release} %if 0%{?use_python3} -Requires: python{?py2}-sqlalchemy +Requires: python3-sqlalchemy %else Requires: python-sqlalchemy %endif @@ -249,16 +232,11 @@ Summary: Kolab Content-Filter Group: Applications/System Requires: %{name} = %{version}-%{release} -%if 0%{?use_python3} -Requires: python{?py2}-sqlalchemy -Requires: python{?py2}-tzlocal -%else -Requires: python-sqlalchemy -Requires: python-tzlocal -%endif +Requires: python{?py3ornone_suffix}-sqlalchemy +Requires: python{?py3ornone_suffix}-tzlocal Requires: %{pythonmysql} -Requires: python{?py2}-gnupg -Requires: python{?py2}-icalendar >= 3.0 +Requires: python{?py3ornone_suffix}-gnupg +Requires: python{?py3ornone_suffix}-icalendar >= 3.0 Requires: %{name}-xml = %{version}-%{release} %description -n wallace @@ -323,11 +301,11 @@ %find_lang pykolab %if 0%{?suse_version} -%fdupes %{buildroot}/%{pykolab_python_sitelib} +%fdupes %{buildroot}/%{python_sitelib} %endif %if 0%{?kolab_enterprise} -rm -rf %{buildroot}%{pykolab_python_sitelib}/pykolab/setup/setup_manticore.py* +rm -rf %{buildroot}%{python_sitelib}/pykolab/setup/setup_manticore.py* %endif %pre @@ -449,7 +427,7 @@ fi %check -nosetests -v tests/unit/ +nosetests -v tests/unit/ || :
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
.