Группа :: Коммуникации
Пакет: conduit
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
# TODO
# - build extensions for nautilus, eog, totem
# - may be add support opensync (upstream?)
# webkit or xulrunner
%define webengine webkit
%define ver_major 0.3
%def_disable static
%add_python_req_skip hildon
%def_disable nautilus
%def_disable eog
%def_disable totem
Name: conduit
Version: %ver_major.16
Release: alt1
Summary: Synchronization solution for GNOME
License: GPLv2
Group: Communications
Url: http://www.conduit-project.org/
Packager: GNOME Maintainers Team <gnome at packages.altlinux.org>
Source: %gnome_ftp/%name/%ver_major/%name-%version.tar
# Use system python-gdata
Patch0: conduit-0.3.10-systemgdata.patch
Requires: python-module-gdata >= 1.1.0
BuildRequires: python-module-gdata >= 1.1.0
BuildPreReq: rpm-build-gnome
BuildRequires: gnome-doc-utils-xslt intltool python-devel python-module-dbus python-module-pygoocanvas python-module-pygtk python-module-vobject python-modules-encodings python-modules-sqlite3
%if %webengine == webkit
BuildRequires: python-module-pywebkitgtk
%add_python_req_skip gtkmozembed
%else
BuildRequires: python-module-pygnome-gtkmozembed
%add_python_req_skip webkit
%endif
BuildRequires: gnome-doc-utils
BuildRequires: glib2-devel
%description
Conduit is a synchronization solution for GNOME which allows the user
to take their emails, files, bookmarks, and any other type of personal
information and synchronize that data with another computer, an online
service, or even another electronic device.
Conduit manages the synchronization and conversion of data into other
formats. For example, conduit allows you to synchronize your tomboy
notes to a file on a remote computer, synchronize your emails to your
mobile phone, synchronize your bookmarks to delicious, gmail, or even
your own webserver, and more.
%prep
%setup -q
%patch0 -p1 -b .gdata
# correct start_conduit.py for the changes made above
perl -pi -e 's.\"GnomeVfs\".\"GIO\".' conduit/defs.py.in
%if %webengine == webkit
perl -pi -e 's.\"gtkmozembed\".\"webkit\".' conduit/defs.py.in
%endif
# get rid of any shebangs
for file in `find conduit/{dataproviders,hildonui,modules} -type f -print`; do
sed -i '/#!/d' $file
done
# dataprovider files install to the wrong directory - fix that
find conduit/{dataproviders,modules} -type f -name Makefile.am | \
xargs sed -i 's/\$(libdir)/$(pythondir)/'
sed -i 's/ at MODULEDIR at / at PYTHONDIR at \/%{name}\/modules/' conduit/defs.py.in
%build
gnome-doc-prepare --copy --force
ACLOCAL="aclocal -I ./m4" %autoreconf
%configure \
%if_enabled nautilus
--enable-nautilus-extension \
--with-nautilus-extension-dir=%nautilus_extdir \
%endif
%if_enabled eog
--enable-eog-plugin \
--with-eog-plugin-dir=%_libdir/eog/plugins \
%endif
%if_enabled totem
--enable-totem-plugin \
--with-totem-plugin-dir=%_libdir/totem/plugins \
%endif
--disable-scrollkeeper
%make
%install
%make_install install DESTDIR=%buildroot
# conduit wrapper is unneeded because we're using WebKig and not mozembed.
# also conduit wrapper no longer needed with Gecko 1.9/Firefox 3
(cd %buildroot%_bindir && mv conduit.real conduit)
# don't need devel package
rm -f %buildroot%_pkgconfigdir/%name.pc
%find_lang --with-gnome %name
%files -f %name.lang
%doc AUTHORS NEWS README TODO
%_bindir/*
%python_sitelibdir/%name
#_prefix/lib/%name
%_datadir/%name
%_datadir/applications/%name.desktop
%_datadir/dbus-1/services/org.%name.service
%_iconsdir/hicolor/*/*/*.png
%_iconsdir/hicolor/*/*/*.svg
%changelog
…
Полный changelog можно просмотреть здесь
# - build extensions for nautilus, eog, totem
# - may be add support opensync (upstream?)
# webkit or xulrunner
%define webengine webkit
%define ver_major 0.3
%def_disable static
%add_python_req_skip hildon
%def_disable nautilus
%def_disable eog
%def_disable totem
Name: conduit
Version: %ver_major.16
Release: alt1
Summary: Synchronization solution for GNOME
License: GPLv2
Group: Communications
Url: http://www.conduit-project.org/
Packager: GNOME Maintainers Team <gnome at packages.altlinux.org>
Source: %gnome_ftp/%name/%ver_major/%name-%version.tar
# Use system python-gdata
Patch0: conduit-0.3.10-systemgdata.patch
Requires: python-module-gdata >= 1.1.0
BuildRequires: python-module-gdata >= 1.1.0
BuildPreReq: rpm-build-gnome
BuildRequires: gnome-doc-utils-xslt intltool python-devel python-module-dbus python-module-pygoocanvas python-module-pygtk python-module-vobject python-modules-encodings python-modules-sqlite3
%if %webengine == webkit
BuildRequires: python-module-pywebkitgtk
%add_python_req_skip gtkmozembed
%else
BuildRequires: python-module-pygnome-gtkmozembed
%add_python_req_skip webkit
%endif
BuildRequires: gnome-doc-utils
BuildRequires: glib2-devel
%description
Conduit is a synchronization solution for GNOME which allows the user
to take their emails, files, bookmarks, and any other type of personal
information and synchronize that data with another computer, an online
service, or even another electronic device.
Conduit manages the synchronization and conversion of data into other
formats. For example, conduit allows you to synchronize your tomboy
notes to a file on a remote computer, synchronize your emails to your
mobile phone, synchronize your bookmarks to delicious, gmail, or even
your own webserver, and more.
%prep
%setup -q
%patch0 -p1 -b .gdata
# correct start_conduit.py for the changes made above
perl -pi -e 's.\"GnomeVfs\".\"GIO\".' conduit/defs.py.in
%if %webengine == webkit
perl -pi -e 's.\"gtkmozembed\".\"webkit\".' conduit/defs.py.in
%endif
# get rid of any shebangs
for file in `find conduit/{dataproviders,hildonui,modules} -type f -print`; do
sed -i '/#!/d' $file
done
# dataprovider files install to the wrong directory - fix that
find conduit/{dataproviders,modules} -type f -name Makefile.am | \
xargs sed -i 's/\$(libdir)/$(pythondir)/'
sed -i 's/ at MODULEDIR at / at PYTHONDIR at \/%{name}\/modules/' conduit/defs.py.in
%build
gnome-doc-prepare --copy --force
ACLOCAL="aclocal -I ./m4" %autoreconf
%configure \
%if_enabled nautilus
--enable-nautilus-extension \
--with-nautilus-extension-dir=%nautilus_extdir \
%endif
%if_enabled eog
--enable-eog-plugin \
--with-eog-plugin-dir=%_libdir/eog/plugins \
%endif
%if_enabled totem
--enable-totem-plugin \
--with-totem-plugin-dir=%_libdir/totem/plugins \
%endif
--disable-scrollkeeper
%make
%install
%make_install install DESTDIR=%buildroot
# conduit wrapper is unneeded because we're using WebKig and not mozembed.
# also conduit wrapper no longer needed with Gecko 1.9/Firefox 3
(cd %buildroot%_bindir && mv conduit.real conduit)
# don't need devel package
rm -f %buildroot%_pkgconfigdir/%name.pc
%find_lang --with-gnome %name
%files -f %name.lang
%doc AUTHORS NEWS README TODO
%_bindir/*
%python_sitelibdir/%name
#_prefix/lib/%name
%_datadir/%name
%_datadir/applications/%name.desktop
%_datadir/dbus-1/services/org.%name.service
%_iconsdir/hicolor/*/*/*.png
%_iconsdir/hicolor/*/*/*.svg
%changelog
…
Полный changelog можно просмотреть здесь