]> git.pld-linux.org Git - packages/GConf2.git/blobdiff - GConf2.spec
- python3 patch from Debian
[packages/GConf2.git] / GConf2.spec
index 42d21e202030843f9b2081a5f6b02a7e56107dd5..3aba1d8114593ab15cc7bdf1326018ebe017aa8d 100644 (file)
@@ -2,6 +2,7 @@
 # - update documentation to follow changes introduced in Patch0
 #
 # Conditional build:
+%bcond_with    apidocs         # build apidocs (broken with new gtk-doc)
 %bcond_without static_libs     # don't build static libraries
 
 Summary:       GNOME2 configuration database system
@@ -10,7 +11,7 @@ Summary(pt_BR.UTF-8): Sistema de Configuração do GNOME 2
 Summary(ru.UTF-8):     Система конфигурации GNOME 2
 Name:          GConf2
 Version:       3.2.6
-Release:       2
+Release:       8
 License:       LGPL v2+
 Group:         X11/Applications
 Source0:       http://ftp.gnome.org/pub/GNOME/sources/GConf/3.2/GConf-%{version}.tar.xz
@@ -18,18 +19,19 @@ Source0:    http://ftp.gnome.org/pub/GNOME/sources/GConf/3.2/GConf-%{version}.tar.x
 Patch0:                %{name}-NO_MAJOR_VERSION.patch
 Patch1:                %{name}-reload.patch
 Patch2:                workaround-crash.patch
-URL:           http://www.gnome.org/
+Patch3:                python3.patch
+URL:           https://projects-old.gnome.org/gconf/
 BuildRequires: ORBit2-devel >= 1:2.14.9
 BuildRequires: autoconf >= 2.60
 BuildRequires: automake >= 1:1.9
 BuildRequires: dbus-devel >= 1.0.0
 BuildRequires: dbus-glib-devel >= 0.74
 BuildRequires: docbook-dtd412-xml
-BuildRequires: gettext-devel
+BuildRequires: gettext-tools
 BuildRequires: glib2-devel >= 1:2.31.0
 BuildRequires: gobject-introspection-devel >= 0.10.0
 BuildRequires: gtk+3-devel >= 3.0.0
-BuildRequires: gtk-doc >= 1.8
+%{?with_apidocs:BuildRequires: gtk-doc >= 1.8}
 BuildRequires: intltool >= 0.40.0
 BuildRequires: libtool
 BuildRequires: libxml2-devel >= 1:2.6.30
@@ -38,7 +40,7 @@ BuildRequires:        perl-base
 BuildRequires: pkgconfig
 BuildRequires: polkit-devel >= 0.92
 BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.197
+BuildRequires: rpmbuild(macros) >= 1.527
 BuildRequires: tar >= 1:1.22
 BuildRequires: xz
 Requires(post):        findutils
@@ -125,6 +127,7 @@ Summary:    GConf2 API documentation
 Summary(pl.UTF-8):     Dokumentacja API GConf2
 Group:         Documentation
 Requires:      gtk-doc-common
+BuildArch:     noarch
 
 %description apidocs
 GConf2 API documentation.
@@ -172,9 +175,10 @@ automatycznie skonfigurowane do używania tych adresów.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
-%{__gtkdocize}
+%{?with_apidocs:%{__gtkdocize}}
 %{__glib_gettextize}
 %{__intltoolize}
 %{__libtoolize}
@@ -185,7 +189,7 @@ automatycznie skonfigurowane do używania tych adresów.
 %configure \
        --disable-silent-rules \
        %{!?with_static_libs:--disable-static} \
-       --enable-gtk-doc \
+       %{__enable_disable apidocs gtk-doc} \
        --with-html-dir=%{_gtkdocdir}
 
 %{__make}
@@ -203,7 +207,12 @@ cp examples/*.schemas $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 %find_lang %{name}
 
 # no *.{la,a} for modules - shut up check-files
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/{GConf2,gio/modules}/lib*.{la,a}
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/{GConf2,gio/modules}/lib*.la
+%if %{with static_libs}
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/{GConf2,gio/modules}/lib*.a
+%endif
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libgconf-2.la
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -233,7 +242,7 @@ exit 0
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS NEWS README
+%doc AUTHORS ChangeLog NEWS README TODO
 %attr(755,root,root) %{_bindir}/gconf-merge-tree
 %attr(755,root,root) %{_bindir}/gsettings-data-convert
 %attr(755,root,root) %{_bindir}/gsettings-schema-convert
@@ -270,9 +279,7 @@ exit 0
 
 %files devel
 %defattr(644,root,root,755)
-%doc ChangeLog TODO
 %attr(755,root,root) %{_libdir}/libgconf-2.so
-%{_libdir}/libgconf-2.la
 %{_includedir}/gconf2
 %{_aclocaldir}/gconf-2.m4
 %{_pkgconfigdir}/gconf-2.0.pc
@@ -284,9 +291,11 @@ exit 0
 %{_libdir}/libgconf-2.a
 %endif
 
+%if %{with apidocs}
 %files apidocs
 %defattr(644,root,root,755)
 %{_gtkdocdir}/gconf
+%endif
 
 %files examples
 %defattr(644,root,root,755)
This page took 0.059005 seconds and 4 git commands to generate.