Accepting request 577075 from GNOME:Factory
- Format with spec-cleaner. - Move license to %license tag. - Allow building with python3 instead of python2: + Add eds-python3.patch: find python3 as valid interpreter. + Add python3-base BuildRequires: needed during build, and we don't want to rely any longer on an implicit python interpreter being pulled in. - Drop obsolete obsoletes for 64bit and 32bit packages OBS-URL: https://build.opensuse.org/request/show/577075 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/evolution-data-server?expand=0&rev=184
This commit is contained in:
commit
7bae8fbd47
13
eds-python3.patch
Normal file
13
eds-python3.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
Index: evolution-data-server-3.26.5/CMakeLists.txt
|
||||||
|
===================================================================
|
||||||
|
--- evolution-data-server-3.26.5.orig/CMakeLists.txt
|
||||||
|
+++ evolution-data-server-3.26.5/CMakeLists.txt
|
||||||
|
@@ -296,7 +296,7 @@ if(NOT PERL)
|
||||||
|
message(FATAL_ERROR "You need perl to build ${PROJECT_NAME}")
|
||||||
|
endif(NOT PERL)
|
||||||
|
|
||||||
|
-find_program(PYTHON python)
|
||||||
|
+find_program(PYTHON python3 python2 python)
|
||||||
|
if(NOT PYTHON)
|
||||||
|
message(FATAL_ERROR "You need python to build ${PROJECT_NAME}")
|
||||||
|
endif(NOT PYTHON)
|
@ -1,3 +1,15 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 15 10:54:50 UTC 2018 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Format with spec-cleaner.
|
||||||
|
- Move license to %license tag.
|
||||||
|
- Allow building with python3 instead of python2:
|
||||||
|
+ Add eds-python3.patch: find python3 as valid interpreter.
|
||||||
|
+ Add python3-base BuildRequires: needed during build, and we
|
||||||
|
don't want to rely any longer on an implicit python interpreter
|
||||||
|
being pulled in.
|
||||||
|
- Drop obsolete obsoletes for 64bit and 32bit packages
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Feb 5 13:17:05 UTC 2018 - bjorn.lie@gmail.com
|
Mon Feb 5 13:17:05 UTC 2018 - bjorn.lie@gmail.com
|
||||||
|
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
|
|
||||||
%define with_introspection 1
|
%define with_introspection 1
|
||||||
|
|
||||||
# Shared Library soNUMs, to make it easier for updates
|
# Shared Library soNUMs, to make it easier for updates
|
||||||
# When updating the sonums, do not forget to also update baselibs.conf
|
# When updating the sonums, do not forget to also update baselibs.conf
|
||||||
%define so_camel 60
|
%define so_camel 60
|
||||||
@ -29,9 +28,8 @@
|
|||||||
%define so_edata_book 25
|
%define so_edata_book 25
|
||||||
%define so_ecal 19
|
%define so_ecal 19
|
||||||
%define so_edata_cal 28
|
%define so_edata_cal 28
|
||||||
|
|
||||||
Name: evolution-data-server
|
|
||||||
%define _evo_version 3.26
|
%define _evo_version 3.26
|
||||||
|
Name: evolution-data-server
|
||||||
Version: 3.26.5
|
Version: 3.26.5
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Evolution Data Server
|
Summary: Evolution Data Server
|
||||||
@ -40,6 +38,8 @@ Group: Development/Libraries/GNOME
|
|||||||
Url: http://www.gnome.org
|
Url: http://www.gnome.org
|
||||||
Source0: http://download.gnome.org/sources/evolution-data-server/3.26/%{name}-%{version}.tar.xz
|
Source0: http://download.gnome.org/sources/evolution-data-server/3.26/%{name}-%{version}.tar.xz
|
||||||
Source99: baselibs.conf
|
Source99: baselibs.conf
|
||||||
|
# PATCH-FIX-UPSTREAM eds-python3.patch tchvatal@suse.com -- Allow selection of py3 py2 and py to work with py3 only
|
||||||
|
Patch0: eds-python3.patch
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: db-devel
|
BuildRequires: db-devel
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@ -58,11 +58,10 @@ BuildRequires: libsoup-devel >= 2.42
|
|||||||
BuildRequires: mozilla-nss-devel
|
BuildRequires: mozilla-nss-devel
|
||||||
BuildRequires: nss-shared-helper-devel
|
BuildRequires: nss-shared-helper-devel
|
||||||
BuildRequires: openldap2-devel
|
BuildRequires: openldap2-devel
|
||||||
BuildRequires: python-devel
|
BuildRequires: pkgconfig
|
||||||
|
# For adresbook data generating
|
||||||
|
BuildRequires: python3-base
|
||||||
BuildRequires: sqlite3-devel >= 3.7.17
|
BuildRequires: sqlite3-devel >= 3.7.17
|
||||||
%if !0%{?is_opensuse}
|
|
||||||
BuildRequires: translation-update-upstream
|
|
||||||
%endif
|
|
||||||
BuildRequires: vala >= 0.22.0
|
BuildRequires: vala >= 0.22.0
|
||||||
BuildRequires: pkgconfig(gcr-base-3) >= 3.4
|
BuildRequires: pkgconfig(gcr-base-3) >= 3.4
|
||||||
BuildRequires: pkgconfig(goa-1.0) >= 3.8
|
BuildRequires: pkgconfig(goa-1.0) >= 3.8
|
||||||
@ -73,17 +72,12 @@ BuildRequires: pkgconfig(libsecret-unstable) >= 0.5
|
|||||||
BuildRequires: pkgconfig(webkit2gtk-4.0) >= 2.11.91
|
BuildRequires: pkgconfig(webkit2gtk-4.0) >= 2.11.91
|
||||||
Requires: mozilla-nss
|
Requires: mozilla-nss
|
||||||
Recommends: %{name}-lang = %{version}
|
Recommends: %{name}-lang = %{version}
|
||||||
# bug437293
|
|
||||||
%ifarch ppc64
|
|
||||||
Obsoletes: evolution-data-server-64bit
|
|
||||||
%endif
|
|
||||||
%ifarch %ix86 ppc
|
|
||||||
Obsoletes: evolution-data-server-32bit
|
|
||||||
%endif
|
|
||||||
# typelib-1_0-ECalendar-1_2 was dropped with e-d-s 3.7.3 due to libical not being introspecatble.
|
# typelib-1_0-ECalendar-1_2 was dropped with e-d-s 3.7.3 due to libical not being introspecatble.
|
||||||
Obsoletes: typelib-1_0-ECalendar-1_2 <= %{version}
|
Obsoletes: typelib-1_0-ECalendar-1_2 <= %{version}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
%{?glib2_gsettings_schema_requires}
|
%{?glib2_gsettings_schema_requires}
|
||||||
|
%if !0%{?is_opensuse}
|
||||||
|
BuildRequires: translation-update-upstream
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Evolution Data Server provides a central location for your address book
|
Evolution Data Server provides a central location for your address book
|
||||||
@ -150,7 +144,6 @@ and calendar in the GNOME Desktop.
|
|||||||
This package contains a shared system library for address book backends.
|
This package contains a shared system library for address book backends.
|
||||||
|
|
||||||
%if %{?with_introspection}
|
%if %{?with_introspection}
|
||||||
|
|
||||||
%package -n typelib-1_0-Camel-1_2
|
%package -n typelib-1_0-Camel-1_2
|
||||||
Summary: Evolution Data Server - Messaging Library, Introspection bindings
|
Summary: Evolution Data Server - Messaging Library, Introspection bindings
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
@ -217,7 +210,6 @@ and calendar in the GNOME Desktop.
|
|||||||
This package contains a shared system library.
|
This package contains a shared system library.
|
||||||
|
|
||||||
%if %{?with_introspection}
|
%if %{?with_introspection}
|
||||||
|
|
||||||
%package -n typelib-1_0-EDataServer-1_2
|
%package -n typelib-1_0-EDataServer-1_2
|
||||||
Summary: Evolution Data Server - Utilities Library, Introspection bindings
|
Summary: Evolution Data Server - Utilities Library, Introspection bindings
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
@ -254,6 +246,7 @@ Requires: libedata-book-1_2-%{so_edata_book} = %{version}
|
|||||||
Requires: libedata-cal-1_2-%{so_edata_cal} = %{version}
|
Requires: libedata-cal-1_2-%{so_edata_cal} = %{version}
|
||||||
Requires: libedataserver-1_2-%{so_edataserver} = %{version}
|
Requires: libedataserver-1_2-%{so_edataserver} = %{version}
|
||||||
Requires: libedataserverui-1_2-%{so_edataserverui} = %{version}
|
Requires: libedataserverui-1_2-%{so_edataserverui} = %{version}
|
||||||
|
Requires: openldap2-devel
|
||||||
%if %{?with_introspection}
|
%if %{?with_introspection}
|
||||||
Requires: typelib-1_0-Camel-1_2 = %{version}
|
Requires: typelib-1_0-Camel-1_2 = %{version}
|
||||||
Requires: typelib-1_0-EBook-1_2 = %{version}
|
Requires: typelib-1_0-EBook-1_2 = %{version}
|
||||||
@ -261,7 +254,6 @@ Requires: typelib-1_0-EBookContacts-1_2 = %{version}
|
|||||||
Requires: typelib-1_0-EDataServer-1_2 = %{version}
|
Requires: typelib-1_0-EDataServer-1_2 = %{version}
|
||||||
Requires: typelib-1_0-EDataServerUI-1_2 = %{version}
|
Requires: typelib-1_0-EDataServerUI-1_2 = %{version}
|
||||||
%endif
|
%endif
|
||||||
Requires: openldap2-devel
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
The Evolution Data Server development files provide the necessary
|
The Evolution Data Server development files provide the necessary
|
||||||
@ -281,8 +273,10 @@ and calendar in the GNOME Desktop.
|
|||||||
This package contains developer documentation.
|
This package contains developer documentation.
|
||||||
|
|
||||||
%lang_package
|
%lang_package
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
%if !0%{?is_opensuse}
|
%if !0%{?is_opensuse}
|
||||||
translation-update-upstream
|
translation-update-upstream
|
||||||
%endif
|
%endif
|
||||||
@ -302,7 +296,7 @@ translation-update-upstream
|
|||||||
-DENABLE_VALA_BINDINGS=OFF \
|
-DENABLE_VALA_BINDINGS=OFF \
|
||||||
-DENABLE_INTROSPECTION=OFF \
|
-DENABLE_INTROSPECTION=OFF \
|
||||||
%endif
|
%endif
|
||||||
%nil
|
%{nil}
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -311,44 +305,27 @@ make %{?_smp_mflags}
|
|||||||
%fdupes %{buildroot}
|
%fdupes %{buildroot}
|
||||||
|
|
||||||
%post -n libcamel-1_2-%{so_camel} -p /sbin/ldconfig
|
%post -n libcamel-1_2-%{so_camel} -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libcamel-1_2-%{so_camel} -p /sbin/ldconfig
|
%postun -n libcamel-1_2-%{so_camel} -p /sbin/ldconfig
|
||||||
|
|
||||||
%post -n libebackend-1_2-%{so_ebackend} -p /sbin/ldconfig
|
%post -n libebackend-1_2-%{so_ebackend} -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libebackend-1_2-%{so_ebackend} -p /sbin/ldconfig
|
%postun -n libebackend-1_2-%{so_ebackend} -p /sbin/ldconfig
|
||||||
|
|
||||||
%post -n libebook-1_2-%{so_ebook} -p /sbin/ldconfig
|
%post -n libebook-1_2-%{so_ebook} -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libebook-1_2-%{so_ebook} -p /sbin/ldconfig
|
%postun -n libebook-1_2-%{so_ebook} -p /sbin/ldconfig
|
||||||
|
|
||||||
%post -n libebook-contacts-1_2-%{so_ebook_contacts} -p /sbin/ldconfig
|
%post -n libebook-contacts-1_2-%{so_ebook_contacts} -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libebook-contacts-1_2-%{so_ebook_contacts} -p /sbin/ldconfig
|
%postun -n libebook-contacts-1_2-%{so_ebook_contacts} -p /sbin/ldconfig
|
||||||
|
|
||||||
%post -n libecal-1_2-%{so_ecal} -p /sbin/ldconfig
|
%post -n libecal-1_2-%{so_ecal} -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libecal-1_2-%{so_ecal} -p /sbin/ldconfig
|
%postun -n libecal-1_2-%{so_ecal} -p /sbin/ldconfig
|
||||||
|
|
||||||
%post -n libedata-book-1_2-%{so_edata_book} -p /sbin/ldconfig
|
%post -n libedata-book-1_2-%{so_edata_book} -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libedata-book-1_2-%{so_edata_book} -p /sbin/ldconfig
|
%postun -n libedata-book-1_2-%{so_edata_book} -p /sbin/ldconfig
|
||||||
|
|
||||||
%post -n libedata-cal-1_2-%{so_edata_cal} -p /sbin/ldconfig
|
%post -n libedata-cal-1_2-%{so_edata_cal} -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libedata-cal-1_2-%{so_edata_cal} -p /sbin/ldconfig
|
%postun -n libedata-cal-1_2-%{so_edata_cal} -p /sbin/ldconfig
|
||||||
|
|
||||||
%post -n libedataserver-1_2-%{so_edataserver} -p /sbin/ldconfig
|
%post -n libedataserver-1_2-%{so_edataserver} -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libedataserver-1_2-%{so_edataserver} -p /sbin/ldconfig
|
%postun -n libedataserver-1_2-%{so_edataserver} -p /sbin/ldconfig
|
||||||
|
|
||||||
%post -n libedataserverui-1_2-%{so_edataserverui} -p /sbin/ldconfig
|
%post -n libedataserverui-1_2-%{so_edataserverui} -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libedataserverui-1_2-%{so_edataserverui} -p /sbin/ldconfig
|
%postun -n libedataserverui-1_2-%{so_edataserverui} -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%license COPYING
|
||||||
%doc COPYING ChangeLog NEWS TODO
|
%doc ChangeLog NEWS TODO
|
||||||
%{_datadir}/evolution-data-server/
|
%{_datadir}/evolution-data-server/
|
||||||
%{_datadir}/GConf/gsettings/evolution-data-server.convert
|
%{_datadir}/GConf/gsettings/evolution-data-server.convert
|
||||||
%{_datadir}/glib-2.0/schemas/org.gnome.Evolution.DefaultSources.gschema.xml
|
%{_datadir}/glib-2.0/schemas/org.gnome.Evolution.DefaultSources.gschema.xml
|
||||||
@ -370,69 +347,52 @@ make %{?_smp_mflags}
|
|||||||
%{_userunitdir}/evolution-user-prompter.service
|
%{_userunitdir}/evolution-user-prompter.service
|
||||||
|
|
||||||
%files -n libcamel-1_2-%{so_camel}
|
%files -n libcamel-1_2-%{so_camel}
|
||||||
%defattr(-, root, root)
|
|
||||||
%{_libdir}/libcamel-1.2.so.%{so_camel}*
|
%{_libdir}/libcamel-1.2.so.%{so_camel}*
|
||||||
|
|
||||||
%files -n libebackend-1_2-%{so_ebackend}
|
%files -n libebackend-1_2-%{so_ebackend}
|
||||||
%defattr(-, root, root)
|
|
||||||
%{_libdir}/libebackend-1.2.so.%{so_ebackend}*
|
%{_libdir}/libebackend-1.2.so.%{so_ebackend}*
|
||||||
|
|
||||||
%files -n libebook-1_2-%{so_ebook}
|
%files -n libebook-1_2-%{so_ebook}
|
||||||
%defattr(-, root, root)
|
|
||||||
%{_libdir}/libebook-1.2.so.%{so_ebook}*
|
%{_libdir}/libebook-1.2.so.%{so_ebook}*
|
||||||
|
|
||||||
%files -n libebook-contacts-1_2-%{so_ebook_contacts}
|
%files -n libebook-contacts-1_2-%{so_ebook_contacts}
|
||||||
%defattr(-, root, root)
|
|
||||||
%{_libdir}/libebook-contacts-1.2.so.%{so_ebook_contacts}*
|
%{_libdir}/libebook-contacts-1.2.so.%{so_ebook_contacts}*
|
||||||
|
|
||||||
%files -n libecal-1_2-%{so_ecal}
|
%files -n libecal-1_2-%{so_ecal}
|
||||||
%defattr(-, root, root)
|
|
||||||
%{_libdir}/libecal-1.2.so.%{so_ecal}*
|
%{_libdir}/libecal-1.2.so.%{so_ecal}*
|
||||||
|
|
||||||
%files -n libedata-book-1_2-%{so_edata_book}
|
%files -n libedata-book-1_2-%{so_edata_book}
|
||||||
%defattr(-, root, root)
|
|
||||||
%{_libdir}/libedata-book-1.2.so.%{so_edata_book}*
|
%{_libdir}/libedata-book-1.2.so.%{so_edata_book}*
|
||||||
|
|
||||||
%if %{?with_introspection}
|
%if %{?with_introspection}
|
||||||
|
|
||||||
%files -n typelib-1_0-Camel-1_2
|
%files -n typelib-1_0-Camel-1_2
|
||||||
%defattr(-, root, root)
|
|
||||||
%{_libdir}/girepository-1.0/Camel-1.2.typelib
|
%{_libdir}/girepository-1.0/Camel-1.2.typelib
|
||||||
|
|
||||||
%files -n typelib-1_0-EBook-1_2
|
%files -n typelib-1_0-EBook-1_2
|
||||||
%defattr(-, root, root)
|
|
||||||
%{_libdir}/girepository-1.0/EBook-1.2.typelib
|
%{_libdir}/girepository-1.0/EBook-1.2.typelib
|
||||||
|
|
||||||
%files -n typelib-1_0-EBookContacts-1_2
|
%files -n typelib-1_0-EBookContacts-1_2
|
||||||
%defattr(-, root, root)
|
|
||||||
%{_libdir}/girepository-1.0/EBookContacts-1.2.typelib
|
%{_libdir}/girepository-1.0/EBookContacts-1.2.typelib
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files -n libedata-cal-1_2-%{so_edata_cal}
|
%files -n libedata-cal-1_2-%{so_edata_cal}
|
||||||
%defattr(-, root, root)
|
|
||||||
%{_libdir}/libedata-cal-1.2.so.%{so_edata_cal}*
|
%{_libdir}/libedata-cal-1.2.so.%{so_edata_cal}*
|
||||||
|
|
||||||
%files -n libedataserver-1_2-%{so_edataserver}
|
%files -n libedataserver-1_2-%{so_edataserver}
|
||||||
%defattr(-, root, root)
|
|
||||||
%{_libdir}/libedataserver-1.2.so.%{so_edataserver}*
|
%{_libdir}/libedataserver-1.2.so.%{so_edataserver}*
|
||||||
|
|
||||||
%files -n libedataserverui-1_2-%{so_edataserverui}
|
%files -n libedataserverui-1_2-%{so_edataserverui}
|
||||||
%defattr(-, root, root)
|
|
||||||
%{_libdir}/libedataserverui-1.2.so.%{so_edataserverui}*
|
%{_libdir}/libedataserverui-1.2.so.%{so_edataserverui}*
|
||||||
|
|
||||||
%if %{?with_introspection}
|
%if %{?with_introspection}
|
||||||
|
|
||||||
%files -n typelib-1_0-EDataServer-1_2
|
%files -n typelib-1_0-EDataServer-1_2
|
||||||
%defattr(-, root, root)
|
|
||||||
%{_libdir}/girepository-1.0/EDataServer-1.2.typelib
|
%{_libdir}/girepository-1.0/EDataServer-1.2.typelib
|
||||||
|
|
||||||
%files -n typelib-1_0-EDataServerUI-1_2
|
%files -n typelib-1_0-EDataServerUI-1_2
|
||||||
%defattr(-, root, root)
|
|
||||||
%{_libdir}/girepository-1.0/EDataServerUI-1.2.typelib
|
%{_libdir}/girepository-1.0/EDataServerUI-1.2.typelib
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-, root, root)
|
|
||||||
%{_includedir}/evolution-data-server/
|
%{_includedir}/evolution-data-server/
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
%{_libdir}/pkgconfig/*.pc
|
%{_libdir}/pkgconfig/*.pc
|
||||||
@ -445,7 +405,6 @@ make %{?_smp_mflags}
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%defattr(-, root, root)
|
|
||||||
%{_datadir}/gtk-doc/html/*
|
%{_datadir}/gtk-doc/html/*
|
||||||
|
|
||||||
%files lang -f evolution-data-server.lang
|
%files lang -f evolution-data-server.lang
|
||||||
|
Loading…
Reference in New Issue
Block a user