BuildRequires: perl-devel
BuildRequires: pkgconfig
BuildRequires: python-devel >= 2.2
+BuildRequires: rpmbuild(macros) >= 1.198
BuildRequires: rpm-pythonprov
-Requires: GConf2
+Requires(post,preun): GConf2
Requires: perl(DynaLoader) = %(%{__perl} -MDynaLoader -e 'print DynaLoader->VERSION')
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%prep
%setup -q
%patch0 -p1
+# xchat-pl.po needs update
#%patch1 -p1
%patch2 -p1
%patch3 -p1
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+%gconf_schema_install apps_xchat_url_handler.schemas
+
+%preun
+%gconf_schema_uninstall apps_xchat_url_handler.schemas
+
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc ChangeLog faq.html HACKING README
%dir %{_libdir}/xchat
%dir %{_libdir}/xchat/plugins
%attr(755,root,root) %{_libdir}/xchat/plugins/*
+%{_datadir}/dbus-1/services/org.xchat.service.service
%{_desktopdir}/%{name}.desktop
%{_pixmapsdir}/%{name}.png
%{_sysconfdir}/gconf/schemas/apps_xchat_url_handler.schemas