+++ /dev/null
-diff -uNr gcr-3.8.0.old/ui/gcr-certificate-exporter.c gcr-3.8.0/ui/gcr-certificate-exporter.c
---- gcr-3.8.0.old/ui/gcr-certificate-exporter.c 2013-03-25 11:18:03.000000000 +0100
-+++ gcr-3.8.0/ui/gcr-certificate-exporter.c 2013-03-25 14:56:52.352682331 +0100
-@@ -227,7 +227,7 @@
- _("Do you want to replace it with a new file?"));
- dialog = gtk_message_dialog_new_with_markup (GTK_WINDOW (self->pv->chooser_dialog),
- GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_QUESTION,
-- GTK_BUTTONS_NONE, msg);
-+ GTK_BUTTONS_NONE, "%s", msg);
- gtk_dialog_add_buttons (GTK_DIALOG (dialog),
- GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
- _("_Replace"), GTK_RESPONSE_ACCEPT, NULL);
#
# Conditional build:
%bcond_without apidocs # do not build and package API docs
+%bcond_without vala # do not build Vala API
%bcond_without static_libs # don't build static libraries
#
Summary: GObject and GUI library for high level crypto parsing and display
Summary(pl.UTF-8): Biblioteka GObject i GUI do wysokopoziomowej analizy i wyświetlania danych kryptograficznych
Name: gcr
-Version: 3.8.2
+Version: 3.10.0
Release: 1
License: LGPL v2+
Group: X11/Applications
-Source0: http://ftp.gnome.org/pub/GNOME/sources/gcr/3.8/%{name}-%{version}.tar.xz
-# Source0-md5: f5e66afcab19897a0de0590735329fb1
-Patch0: format-security-fix.patch
+Source0: http://ftp.gnome.org/pub/GNOME/sources/gcr/3.10/%{name}-%{version}.tar.xz
+# Source0-md5: 525962cc88e21a50040abff6bb92cd11
URL: http://www.gnome.org/
BuildRequires: autoconf >= 2.63
BuildRequires: automake >= 1:1.11
BuildRequires: libgcrypt-devel >= 1.2.2
BuildRequires: libtasn1-devel
BuildRequires: libtool
-BuildRequires: p11-kit-devel >= 0.6
+BuildRequires: p11-kit-devel >= 0.19.0
BuildRequires: pkgconfig
BuildRequires: rpmbuild(macros) >= 1.592
BuildRequires: tar >= 1:1.22
+%{?with_vala:BuildRequires: vala >= 2:0.20.0}
BuildRequires: xz
Requires: %{name}-libs = %{version}-%{release}
Requires(post,postun): glib2 >= 1:2.32.0
Group: Libraries
Requires: glib2 >= 1:2.32.0
Requires: libgcrypt >= 1.2.2
-Requires: p11-kit >= 0.6
+Requires: p11-kit >= 0.19.0
Obsoletes: gnome-keyring-libs < 3.3.0
%description libs
Group: Development/Libraries
Requires: %{name}-libs = %{version}-%{release}
Requires: glib2-devel >= 1:2.32.0
-Requires: p11-kit-devel >= 0.6
+Requires: p11-kit-devel >= 0.19.0
Obsoletes: gnome-keyring-devel < 3.3.0
%description devel
%description apidocs -l pl.UTF-8
Dokumentacja API bibliotek gcr i gck.
+%package -n vala-gcr
+Summary: gcr and gck API for Vala language
+Summary(pl.UTF-8): API gcr i gck dla języka Vala
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+Requires: vala >= 2:0.20.0
+
+%description -n vala-gcr
+gcr and gck API for Vala language.
+
+%description -n vala-gcr -l pl.UTF-8
+API gcr i gck dla języka Vala.
+
%prep
%setup -q
-%patch0 -p1
%build
%{__intltoolize}
%{__automake}
%configure \
%{__enable_disable apidocs gtk-doc} \
+ %{__enable_disable vala vala} \
%{__enable_disable static_libs static} \
--disable-update-mime \
--disable-update-icon-cache \
%{_gtkdocdir}/gck
%{_gtkdocdir}/gcr-3
%endif
+
+%if %{with vala}
+%files -n vala-gcr
+%defattr(644,root,root,755)
+%{_datadir}/vala/vapi/gck-1.deps
+%{_datadir}/vala/vapi/gck-1.vapi
+%{_datadir}/vala/vapi/gcr-3.deps
+%{_datadir}/vala/vapi/gcr-3.vapi
+%{_datadir}/vala/vapi/gcr-ui-3.deps
+%{_datadir}/vala/vapi/gcr-ui-3.vapi
+%endif