]> git.pld-linux.org Git - packages/GConf2.git/blobdiff - GConf2.spec
- updated to 2.20.1
[packages/GConf2.git] / GConf2.spec
index 42428a4641a9c2dc7a277e084c59ef4dcd1e2581..6677a26b04eeb2bb64d10634a2e4cd24c32b391d 100644 (file)
@@ -6,36 +6,38 @@
 %bcond_without static_libs     # don't build static libraries
 #
 Summary:       GNOME2 configuration database system
-Summary(pl):   System konfiguracyjnej bazy danych dla GNOME 2
-Summary(pt_BR):        Sistema de Configuração do GNOME 2
-Summary(ru):   óÉÓÔÅÍÁ ËÏÎÆÉÇÕÒÁÃÉÉ GNOME 2
+Summary(pl.UTF-8):     System konfiguracyjnej bazy danych dla GNOME 2
+Summary(pt_BR.UTF-8):  Sistema de Configuração do GNOME 2
+Summary(ru.UTF-8):     Система конфигурации GNOME 2
 Name:          GConf2
-Version:       2.14.0
-Release:       5
-License:       LGPL
+Version:       2.20.1
+Release:       1
+License:       LGPL v2+
 Group:         X11/Applications
-Source0:       http://ftp.gnome.org/pub/gnome/sources/GConf/2.14/GConf-%{version}.tar.bz2
-# Source0-md5: d07c2efcaf477cf34225c604a04b6271
-Source1:       %{name}-merge-tree.xinit
+Source0:       http://ftp.gnome.org/pub/GNOME/sources/GConf/2.20/GConf-%{version}.tar.bz2
+# Source0-md5: 646fc896c6282a8f103365af0fa2e303
 Patch0:                %{name}-NO_MAJOR_VERSION.patch
 Patch1:                %{name}-path.patch
+Patch2:                %{name}-reload.patch
 URL:           http://www.gnome.org/
-BuildRequires: ORBit2-devel >= 1:2.14.0
+BuildRequires: ORBit2-devel >= 1:2.14.9
 BuildRequires: autoconf
 BuildRequires: automake >= 1:1.7
 BuildRequires: gettext-devel
-BuildRequires: glib2-devel >= 1:2.11.2
-BuildRequires: gtk+2-devel >= 2:2.9.2
-BuildRequires: gtk-doc >= 1.4-2
+BuildRequires: glib2-devel >= 1:2.14.1
+BuildRequires: gtk+2-devel >= 2:2.12.0
+BuildRequires: gtk-doc >= 1.8
+BuildRequires: intltool >= 0.36.2
 BuildRequires: libtool
-BuildRequires: libxml2-devel >= 1:2.6.25
+BuildRequires: libxml2-devel >= 1:2.6.30
 BuildRequires: openldap-devel
 BuildRequires: perl-base
 BuildRequires: pkgconfig
-BuildRequires: popt-devel
 BuildRequires: rpmbuild(macros) >= 1.197
-Requires:      ORBit2 >= 1:2.14.0
-Requires:      glib2 >= 1:2.11.2
+Requires(post):        findutils
+Requires:      ORBit2 >= 1:2.14.9
+Requires:      glib2 >= 1:2.14.1
+Obsoletes:     GConf2-xinitrc
 Obsoletes:     libGConf2
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -45,54 +47,78 @@ Windows registry but lots better. :-) It's being written for the
 GNOME2 desktop but does not require GNOME2; configure should notice if
 GNOME2 is not installed and compile the basic GConf2 library anyway.
 
-%description -l pl
+%description -l pl.UTF-8
 GConf2 jest systemem konfiguracyjnej bazy danych, funkcjonalnie
 podobnej do rejestru Windows, ale o wiele lepszej :-). Jest pisana dla
 desktopu GNOME2, ale nie wymaga GNOME2; skrypt configure powinien
-wykryæ brak GNOME2 i skompilowaæ tylko wersjê podstawow± GConf2.
+wykryć brak GNOME2 i skompilować tylko wersję podstawową GConf2.
 
-%description -l pt_BR
-Gconf2 é o sistema de banco de dados de configuração do GNOME2.
+%description -l pt_BR.UTF-8
+Gconf2 é o sistema de banco de dados de configuração do GNOME2.
+
+%package apidocs
+Summary:       GConf2 API documentation
+Summary(pl.UTF-8):     Dokumentacja API GConf2
+Group:         Documentation
+Requires:      gtk-doc-common
+
+%description apidocs
+GConf2 API documentation.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API GConf2.
 
 %package devel
 Summary:       GConf2 includes, etc
-Summary(pl):   Pliki nag³ówkowe GConf2
-Summary(pt_BR):        Sistema de Configuração do GNOME2 - arquivos para desenvolvimento
+Summary(pl.UTF-8):     Pliki nagłówkowe GConf2
+Summary(pt_BR.UTF-8):  Sistema de Configuração do GNOME2 - arquivos para desenvolvimento
 Group:         X11/Development/Libraries
 Requires:      %{name} = %{version}-%{release}
-Requires:      ORBit2-devel >= 1:2.14.0
+Requires:      ORBit2-devel >= 1:2.14.9
 Requires:      gtk-doc-common
-Requires:      libxml2-devel >= 1:2.6.25
+Requires:      libxml2-devel >= 1:2.6.30
 Obsoletes:     libGConf2-devel
 
 %description devel
 GConf2 includes etc.
 
-%description devel -l pl
-Pliki nag³ówkowe GConf2.
+%description devel -l pl.UTF-8
+Pliki nagłówkowe GConf2.
 
-%description devel -l pt_BR
-Sistema de Configuração do GNOME2 - arquivos para desenvolvimento.
+%description devel -l pt_BR.UTF-8
+Sistema de Configuração do GNOME2 - arquivos para desenvolvimento.
 
 %package static
 Summary:       GConf2 static libraries
-Summary(pl):   Biblioteki statyczne GConf2
-Summary(pt_BR):        Bibliotecas estáticas para desenvolvimento com gconf2
+Summary(pl.UTF-8):     Biblioteki statyczne GConf2
+Summary(pt_BR.UTF-8):  Bibliotecas estáticas para desenvolvimento com gconf2
 Group:         X11/Development/Libraries
 Requires:      %{name}-devel = %{version}-%{release}
 
 %description static
 GConf2 static libraries.
 
-%description static -l pl
+%description static -l pl.UTF-8
 Biblioteki statyczne GConf2.
 
-%description static -l pt_BR
-Bibliotecas estáticas para desenvolvimento com gconf
+%description static -l pt_BR.UTF-8
+Bibliotecas estáticas para desenvolvimento com gconf
+
+%package examples
+Summary:       GConf2 - example programs
+Summary(pl.UTF-8):     GConf2 - przykładowe programy
+Group:         X11/Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description examples
+GConf2 - example programs.
+
+%description examples -l pl.UTF-8
+GConf2 - przykładowe programy.
 
 %package backend-evoldap
 Summary:       Evolution Data Sources LDAP backend for GConf
-Summary(pl):   Backend LDAP ¼róde³ danych Evolution dla GConfa
+Summary(pl.UTF-8):     Backend LDAP źródeł danych Evolution dla GConfa
 Group:         Libraries
 Requires:      %{name} = %{version}-%{release}
 
@@ -104,23 +130,25 @@ incoming/outgoing mail server addresses and addressbook/calendar
 addresses in the user's LDAP entry, Evolution will be automatically
 configured to use these addresses.
 
-%description backend-evoldap -l pl
-To jest backend GConfa specjalnego przeznaczenia, pozwalaj±cy na
-konfigurowanie domy¶lnych kont pocztowych, ksi±¿ek adresowych i
-kalendarzy dla Evolution przy u¿yciu wpisu LDAP dla ka¿dego
-u¿ytkownika. Poprzez ustawienie ka¿demu u¿ytkownikowi adres pocztowy,
-adresy serwerów poczty przychodz±cej/wychodz±cej oraz adresy ksi±¿ki
+%description backend-evoldap -l pl.UTF-8
+To jest backend GConfa specjalnego przeznaczenia, pozwalający na
+konfigurowanie domyślnych kont pocztowych, książek adresowych i
+kalendarzy dla Evolution przy użyciu wpisu LDAP dla każdego
+użytkownika. Poprzez ustawienie każdemu użytkownikowi adres pocztowy,
+adresy serwerów poczty przychodzącej/wychodzącej oraz adresy książki
 adresowej i kalendarza w jego wpisie LDAP, Evolution zostanie
-automatycznie skonfigurowane do u¿ywania tych adresów.
+automatycznie skonfigurowane do używania tych adresów.
 
 %prep
 %setup -q -n GConf-%{version}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 %{__gtkdocize}
 %{__glib_gettextize}
+%{__intltoolize}
 %{__libtoolize}
 %{__aclocal}
 %{__autoheader}
@@ -135,14 +163,12 @@ automatycznie skonfigurowane do u
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_sysconfdir}{/gconf/schemas,/X11/xinit/xinitrc.d}
+install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_sysconfdir}/gconf/schemas}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/X11/xinit/xinitrc.d/GConf2-merge-tree
-
-rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
+cp examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %find_lang %{name}
 
@@ -152,16 +178,30 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/GConf2/lib*.{la,a}
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post  -p /sbin/ldconfig
+%post
+/sbin/ldconfig
+umask 022
+for GCONF_DIR in %{_sysconfdir}/gconf/gconf.xml.mandatory %{_sysconfdir}/gconf/gconf.xml.defaults ;
+    do
+    GCONF_TREE=$GCONF_DIR/%gconf-tree.xml
+    if [ ! -f "$GCONF_TREE" ]; then
+       gconf-merge-tree "$GCONF_DIR"
+        chmod 644 "$GCONF_TREE"
+        find "$GCONF_DIR" -mindepth 1 -maxdepth 1 -type d -exec rm -rf \{\} \;
+        rm -f "$GCONF_DIR/%gconf.xml"
+    fi
+done
+           
 %postun        -p /sbin/ldconfig
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc AUTHORS NEWS README
-%attr(755,root,root) %{_bindir}/gconf*
+%attr(755,root,root) %{_bindir}/gconf-merge-tree
+%attr(755,root,root) %{_bindir}/gconftool-2
 %attr(755,root,root) %{_libdir}/gconf-sanity-check-2
 %attr(755,root,root) %{_libdir}/gconfd-2
-%attr(755,root,root) %{_libdir}/lib*.so.*.*
+%attr(755,root,root) %{_libdir}/libgconf-2.so.*.*.*
 %dir %{_libdir}/GConf2
 %attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-oldxml.so
 %attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-xml.so
@@ -170,28 +210,34 @@ rm -rf $RPM_BUILD_ROOT
 %{_sysconfdir}/gconf/gconf.xml.*
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gconf/path
 %dir %{_sysconfdir}/gconf/schemas
-%attr(755,root,root) %{_sysconfdir}/X11/xinit/xinitrc.d/*
 %dir %{_datadir}/GConf
 %dir %{_datadir}/GConf/schema
 %{_datadir}/sgml/gconf
-%{_mandir}/man1/*
+%{_mandir}/man1/gconftool-2.1*
+
+%files apidocs
+%defattr(644,root,root,755)
+%{_gtkdocdir}/gconf
 
 %files devel
 %defattr(644,root,root,755)
 %doc ChangeLog TODO
-%attr(755,root,root) %{_libdir}/lib*.so
-%{_libdir}/lib*.la
+%attr(755,root,root) %{_libdir}/libgconf-2.so
+%{_libdir}/libgconf-2.la
 %{_includedir}/gconf2
-%{_aclocaldir}/*.m4
-%{_pkgconfigdir}/*.pc
-%{_gtkdocdir}/gconf
+%{_aclocaldir}/gconf-2.m4
+%{_pkgconfigdir}/gconf-2.0.pc
 
 %if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/lib*.a
+%{_libdir}/libgconf-2.a
 %endif
 
+%files examples
+%defattr(644,root,root,755)
+%{_examplesdir}/%{name}-%{version}
+
 %files backend-evoldap
 %defattr(644,root,root,755)
 %doc backends/README.evoldap
This page took 0.2606 seconds and 4 git commands to generate.