]> git.pld-linux.org Git - packages/gajim.git/blobdiff - gajim.spec
- current snap
[packages/gajim.git] / gajim.spec
index 2ce42fe4f22034f0ee376cc34f49d9451727aaf5..0c33e5ba87cd21984d812c52894918a6588cf188 100644 (file)
@@ -1,31 +1,26 @@
-# TODO
-# - use /usr/share/locale
-#
+%define                _snap   20060903
+%define                _snap_with_dashes 2006-09-03
 Summary:       A Jabber client written in PyGTK
 Summary(pl):   Klient Jabbera napisany w PyGTK
 Name:          gajim
-Version:       0.8.1
-Release:       1
-License:       GPL
+Version:       0.11
+Release:       0.%{_snap}.1
+License:       GPL v2
 Group:         Applications/Communications
-Source0:       http://gajim.org/downloads/%{name}-%{version}.tar.bz2
-# Source0-md5: d4cbbd64078b9c93fdd1492c27dbcdab
-Patch0:                %{name}-makefile.patch
-Patch1:                %{name}-run.patch
-Patch2:                %{name}-remote.patch
-Patch3:                %{name}-dbus_version.patch
+Source0:       http://www.gajim.org/downloads/snap/%{name}-%{_snap_with_dashes}.tar.gz
+# Source0-md5: d324a61bf57d12298cfeac8f9f34a2e4
 URL:           http://www.gajim.org/
-BuildRequires: gtkspell-devel
 BuildRequires: gettext-devel
-BuildRequires: python-pygtk-devel
+BuildRequires: gtkspell-devel
+BuildRequires: intltool
+BuildRequires: python-pygtk-devel >= 2.8.0
+BuildRequires: rpmbuild(macros) >= 1.177
+BuildRequires: rpm-pythonprov
+BuildRequires: xorg-lib-libXScrnSaver-devel
 %pyrequires_eq python-modules
 %pyrequires_eq python
-Requires:      python-dbus
 Requires:      python-dns
-Requires:      python-gnome-extras-egg >= 2.10.0
-Requires:      python-gnome-extras-gtkspell >= 2.10.0
-Requires:      python-pygtk-glade >= 2.6.0
-Requires:      python-pygtk-gtk >= 2.6.0
+Requires:      python-pygtk-glade >= 2.8.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -41,14 +36,12 @@ dla u
 dzia³a z nim ³adnie.
 
 %prep
-%setup -q
-%patch0 -p1
-%patch1 -p1
-%patch2 -p1
-%patch3 -p1
+%setup -q -n %{name}-0.10
 
 %build
+%{__make} clean
 %{__make} \
+       CC="%{__cc}" \
        PREFIX=%{_prefix} \
        LIBDIR=/%{_lib}
 
@@ -61,11 +54,22 @@ rm -rf $RPM_BUILD_ROOT
        DESTDIR=$RPM_BUILD_ROOT
 
 rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/{setup_win32.pyo}
+rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
+
+%find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
+%post
+%banner %{name} -e << EOF
+For full functionality, you need to install:
+- python-dbus (for gajim-remote and notification-daemon support)
+- python-gnome-gconf (for xmpp url-handler in GNOME)
+- python-sqlite (for logs)
+EOF
+
+%files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc AUTHORS README Changelog
 %attr(755,root,root) %{_bindir}/*
This page took 0.080475 seconds and 4 git commands to generate.