X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=libsoup.spec;h=903489ca1cc005314709875978f728a887a11b25;hb=a7fb9f4;hp=ef050299663a90c22df6f3b1722aff00955b2fb3;hpb=43ae02ee38e50c748ad8f34af2ab3b29f9bad477;p=packages%2Flibsoup3.git diff --git a/libsoup.spec b/libsoup.spec index ef05029..903489c 100644 --- a/libsoup.spec +++ b/libsoup.spec @@ -1,30 +1,43 @@ +# +# Conditional build: +%bcond_without apidocs # API documentation + Summary: SOAP (Simple Object Access Protocol) implementation in C Summary(pl.UTF-8): Implementacja w C SOAP (Simple Object Access Protocol) Name: libsoup -Version: 2.40.3 +Version: 2.72.0 Release: 1 License: LGPL v2+ Group: Libraries -Source0: http://ftp.gnome.org/pub/GNOME/sources/libsoup/2.40/%{name}-%{version}.tar.xz -# Source0-md5: ee111c5cf9f95b4a7aa24afe13dddb98 -URL: http://www.gnome.org/ -BuildRequires: autoconf >= 2.63 -BuildRequires: automake >= 1:1.11 +Source0: http://ftp.gnome.org/pub/GNOME/sources/libsoup/2.72/%{name}-%{version}.tar.xz +# Source0-md5: 859380b76b51fb55d720daea3c76c945 +Patch0: %{name}-path-override.patch +URL: https://wiki.gnome.org/Projects/libsoup BuildRequires: docbook-dtd412-xml -BuildRequires: gettext-devel -BuildRequires: glib2-devel >= 1:2.33.1 +BuildRequires: gettext-tools +BuildRequires: glib2-devel >= 1:2.58 BuildRequires: gobject-introspection-devel >= 0.10.0 -BuildRequires: gtk-doc >= 1.10 -BuildRequires: intltool >= 0.35.0 -BuildRequires: libgnome-keyring-devel -BuildRequires: libtool >= 2:2.0 +%{?with_apidocs:BuildRequires: gtk-doc >= 1.20} +BuildRequires: heimdal-devel +BuildRequires: libbrotli-devel +BuildRequires: libpsl-devel >= 0.20.0 BuildRequires: libxml2-devel >= 1:2.6.31 +BuildRequires: meson >= 0.50 +BuildRequires: ninja >= 1.5 BuildRequires: pkgconfig +BuildRequires: rpmbuild(macros) >= 1.736 BuildRequires: sqlite3-devel +BuildRequires: sysprof-devel >= 3.38 BuildRequires: tar >= 1:1.22 +BuildRequires: vala BuildRequires: xz -Requires: glib-networking -Requires: glib2 >= 1:2.33.1 +BuildRequires: zlib-devel +Requires: glib2 >= 1:2.58 +Requires: libpsl >= 0.20.0 +# for TLS support +Suggests: glib-networking +# ntlm_auth for NTLM support +Suggests: samba-winbind BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -44,7 +57,7 @@ Summary: Include files etc to develop SOAP applications Summary(pl.UTF-8): Pliki nagłówkowe, dokumentacja dla SOAP Group: Development/Libraries Requires: %{name} = %{version}-%{release} -Requires: glib2-devel >= 1:2.33.1 +Requires: glib2-devel >= 1:2.58 Requires: libxml2-devel >= 1:2.6.31 %description devel @@ -108,6 +121,9 @@ Summary: libsoup API documentation Summary(pl.UTF-8): Dokumentacja API libsoup Group: Documentation Requires: gtk-doc-common +%if "%{_rpmversion}" >= "4.6" +BuildArch: noarch +%endif %description apidocs libsoup API documentation. @@ -115,32 +131,40 @@ libsoup API documentation. %description apidocs -l pl.UTF-8 Dokumentacja API libsoup. +%package -n vala-libsoup +Summary: libsoup API for Vala language +Summary(pl.UTF-8): API libsoup dla języka Vala +Group: Development/Libraries +Requires: %{name}-devel = %{version}-%{release} +Requires: vala +%if "%{_rpmversion}" >= "4.6" +BuildArch: noarch +%endif + +%description -n vala-libsoup +libsoup API for Vala language. + +%description -n vala-libsoup -l pl.UTF-8 +API libsoup dla języka Vala. + %prep %setup -q +%patch0 -p1 %build -%{__gtkdocize} -%{__intltoolize} -%{__libtoolize} -%{__aclocal} -%{__autoconf} -%{__autoheader} -%{__automake} -%configure \ - --enable-gtk-doc \ - --with-html-dir=%{_gtkdocdir} \ - --without-apache-httpd \ - --disable-tls-check \ - --disable-silent-rules -%{__make} +%meson build \ + %{?with_apidocs:-Dgtk_doc=true} \ + -Dntlm=enabled \ + -Dntlm_auth=/usr/bin/ntlm_auth \ + -Dtests=false \ + -Dtls_check=false + +%ninja_build -C build %install rm -rf $RPM_BUILD_ROOT -%{__make} install \ - DESTDIR=$RPM_BUILD_ROOT - -%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la +%ninja_install -C build %find_lang libsoup @@ -188,6 +212,13 @@ rm -rf $RPM_BUILD_ROOT %defattr(644,root,root,755) %{_libdir}/libsoup-gnome-2.4.a +%if %{with apidocs} %files apidocs %defattr(644,root,root,755) %{_gtkdocdir}/libsoup-2.4 +%endif + +%files -n vala-libsoup +%defattr(644,root,root,755) +%{_datadir}/vala/vapi/libsoup-2.4.deps +%{_datadir}/vala/vapi/libsoup-2.4.vapi