]> git.pld-linux.org Git - packages/evolution.git/blobdiff - evolution.spec
- updated to 1.5
[packages/evolution.git] / evolution.spec
index bb7688ab8cefe835fdfa6279819007807e83f715..616b7c62b5824496cb7243323256883b4d18d381 100644 (file)
-Summary:       The GNOME Email/Calendar/Addressbook Suite
-Summary(pl):   Klient poczty dla GNOME/Kalendarz/Ksi±¿ka Adresowa
+
+%bcond_without ldap
+
+%define                mver            1.5
+%define                subver  5
+
+Summary:       The GNOME2 Email/Calendar/Addressbook Suite
+Summary(pl):   Klient poczty dla GNOME2/Kalendarz/Ksi±¿ka Adresowa
 Summary(pt_BR):        Cliente de email integrado com calendário e catálogo de endereços
+Summary(zh_CN):        Evolution - GNOME2¸öÈ˺͹¤×÷×éÐÅÏ¢¹ÜÀí¹¤¾ß(°üÀ¨µç×ÓÓʼþ£¬ÈÕÀúºÍµØÖ·±¡)
 Name:          evolution
-Version:       1.0.2
+Version:       %{mver}
 Release:       1
 License:       GPL
 Group:         Applications/Mail
-Source0:       ftp://ftp.gnome.org/pub/gnome/stable/sources/evolution/%{name}-%{version}.tar.bz2
-Patch0:                %{name}-nostaticdb3.patch
+Source0:       http://ftp.gnome.org/pub/gnome/sources/%{name}/%{mver}/%{name}-%{version}.tar.bz2
+# Source0-md5: cc820ffb5c9e91ad79d94e700262c418
 URL:           http://www.ximian.com/products/ximian_evolution/
-BuildRequires: GConf-devel >= 1.0.7
-BuildRequires: ORBit-devel >= 0.5.8
+BuildRequires: GConf2-devel
+BuildRequires: ORBit2-devel >= 2.8.0
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: bison
-BuildRequires: bonobo-conf-devel >= 0.11
-BuildRequires: bonobo-devel >= 1.0.15-2
-BuildRequires: cyrus-sasl-devel
-BuildRequires: db3-devel
 BuildRequires: flex
 BuildRequires: freetype-devel >= 2.0.5
-BuildRequires: gal-devel >= 0.19
-BuildRequires: gdk-pixbuf-devel >= 0.9.0
+BuildRequires: gal-devel >= 2.1.1
 BuildRequires: gettext-devel
-BuildRequires: gnome-libs-devel >= 1.2.9
-BuildRequires: gnome-print-devel >= 0.25
-BuildRequires: gnome-vfs-devel >= 1.0.1
-BuildRequires: gtk+-devel > 1.2.0
-BuildRequires: gtkhtml-devel >= 1.0.1
-BuildRequires: intltool
-BuildRequires: libglade-devel >= 0.14
-BuildRequires: libunicode-devel >= 0.4
+BuildRequires: gnome-common
+BuildRequires: gnome-pilot-devel >= 2.0.0
+BuildRequires: gnome-vfs2-devel >= 2.4.0
+BuildRequires: gtk-doc >= 1.1
+BuildRequires: gtkhtml-devel >= 3.1.4
+BuildRequires: intltool >= 0.18
+BuildRequires: libglade2-devel
+BuildRequires: libgnomeprintui-devel >= 2.4.0
+BuildRequires: libgnomeui-devel >= 2.4.0
+BuildRequires: libsoup-devel >= 2.1.2
+BuildRequires: libtool
+BuildRequires: libxml2
 BuildRequires: nspr-devel
 BuildRequires: nss-devel
-BuildRequires: oaf-devel >= 0.6.7
-BuildRequires: openldap-devel >= 2.0.0
-BuildRequires: openssl-devel
+BuildRequires: evolution-data-server >= 0.0.3
+%{?with_ldap:BuildRequires:    openldap-devel >= 2.0.0}
+BuildRequires: openssl-devel >= 0.9.7c
+BuildRequires: pilot-link-devel >= 0.11.4
+BuildRequires: pkgconfig
+BuildRequires: psmisc
 BuildRequires: python
-BuildRequires: scrollkeeper
+BuildRequires: scrollkeeper >= 0.1.4
+Requires(post,postun): /sbin/ldconfig
+Requires(post,postun): /usr/bin/scrollkeeper-update
+Requires(post):                GConf2
+Requires:      GConf2
+Requires:      bonobo-activation
+Requires:      gal >= 2.1.1
+Requires:      gtkhtml >= 3.1.4
+Requires:      libglade2
+Requires:      psmisc
 Requires:      scrollkeeper >= 0.1.4
-Requires:      bonobo >= 1.0.14
-Requires:      GConf >= 1.0.7
-Requires:      oaf >= 0.6.7
-Requires:      libglade >= 0.17
-Requires:      gtkhtml >= 1.0.0-2
-Prereq:                /sbin/ldconfig
-Prereq:                scrollkeeper
+Obsoletes:     evolution2
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define         _prefix         /usr/X11R6
-%define                _mandir         %{_prefix}/man
-%define                _omf_dest_dir   %(scrollkeeper-config --omfdir)
-
 %description
-Evolution is the GNOME mailer, calendar, contact manager and
+Evolution is the GNOME2 mailer, calendar, contact manager and
 communications tool. The tools which make up Evolution will be tightly
 integrated with one another and act as a seamless personal
 information-management tool.
 
 %description -l pl
-Evolution to program pocztowy GNOME, kalendarz, ksi±¿ka adresowa i
+Evolution to program pocztowy GNOME2, kalendarz, ksi±¿ka adresowa i
 narzêdzie komunikacyjne.
 
 %description -l pt_BR
-Evolution é um cliente de email para o GNOME com calendário e outras
+Evolution é um cliente de email para o GNOME2 com calendário e outras
 ferramentas interessantes.
 
 %package devel
 Summary:       Header files for evolution
 Summary(pl):   Pliki nag³ówkowe i dokumentacja
 Summary(pt_BR):        Bibliotecas e arquivos de inclusão para desenvolvimento
+Summary(zh_CN):        Evolution×é¼þ¿ª·¢¿â
 Group:         Development/Libraries
+Requires:      %{name} = %{version}
 Requires:      cyrus-sasl-devel
 Requires:      freetype-devel
-Requires:      gal-devel
-Requires:      gdk-pixbuf-devel
-Requires:      gnome-libs-devel
-Requires:      gnome-print-devel
-Requires:      gnome-vfs-devel
-Requires:      gtkhtml-devel
-Requires:      libglade-devel
-Requires:      libunicode-devel
+Requires:      gal-devel >= 2.1.1
+Requires:      gnome-vfs2-devel >= 2.4.0
+Requires:      gtkhtml-devel >= 3.1.4
+Requires:      libglade2-devel >= 2.0.1
+Requires:      libgnomeprintui-devel >= 2.4.0
+Requires:      libgnomeui-devel >= 2.4.0
+Requires:      libsoup-devel >= 2.1.2
 Requires:      nspr-devel
 Requires:      nss-devel
-Requires:      oaf-devel
-Requires:      openldap-devel
-Requires:      openssl-devel
-Requires:      %{name} = %{version}
+%{?with_ldap:Requires: openldap-devel >= 2.0.0}
+Requires:      openssl-devel >= 0.9.7c
+Obsoletes:     evolution2-devel
 
 %description devel
 This package contains the files necessary to develop applications
 using Evolution's libraries.
 
-%description -l pl devel
+%description devel -l pl
 Pakiet zawiera pliki potrzebne do rozwoju aplikacji u¿ywaj±cych
 bibliotek programu Evolution.
 
-%description -l pt_BR devel
+%description devel -l pt_BR
 Este pacote contém os arquivos necessários para desenvolvimento de
 aplicações utilizando as bibliotecas do Evolution.
 
@@ -105,103 +113,144 @@ Summary:        Static libraries for evolution
 Summary(pl):   Biblioteki statyczne dla evolution
 Summary(pt_BR):        Bibliotecas estáticas para desenvolvimento
 Group:         Development/Libraries
-Requires:      %{name} = %{version}
+Requires:      %{name}-devel = %{version}
+Obsoletes:     evolution2-static
 
 %description static
 This package contains static libraries for Evolution.
 
-%description -l pl static
+%description static -l pl
 Pakiet zawiera statyczne biblioteki Evolution.
 
-%description -l pt_BR static
+%description static -l pt_BR
 Este pacote contém as bibliotecas estáticas para desenvolvimento de
 aplicações.
 
+%package pilot
+Summary:       Evolution conduits for gnome-pilot
+Summary(pl):   Dodatki do wymiany danych z gnome-pilot
+Group:         Development/Libraries
+Requires:      %{name} = %{version}
+Obsoletes:     evolution2-pilot
+
+%description pilot
+This package contains conduits needed by gnome-pilot to synchronize
+your Palm with Evolution.
+
+%description pilot -l pl
+Ten pakiet zawiera dodatki do synchronizacji danych Evolution z
+Palmem.
+
 %prep
-%setup -q
-%patch0 -p1
+%setup -q -a1
 
 %build
-sed -e s/AM_GNOME_GETTEXT/AM_GNU_GETTEXT/ configure.in > configure.in.tmp
-mv -f configure.in.tmp configure.in
-rm -f missing
-xml-i18n-toolize --copy --force
-libtoolize --copy --force
-gettextize --copy --force
-aclocal -I %{_aclocaldir}/gnome
-autoconf
-automake -a -c
-cd libical; autoconf; cd ..
-
-CFLAGS="%{rpmcflags} -I/usr/include/orbit-1.0"
+
+# build evolution
+glib-gettextize --copy --force
+intltoolize --copy --force
+%{__libtoolize}
+%{__aclocal} -I %{_aclocaldir}/gnome2-macros
+%{__autoheader}
+%{__autoconf}
+%{__automake}
 %configure \
-       --disable-gtk-doc \
-       --enable-pilot-conduits=no \
-       --with-openldap=yes \
-       --with-static-ldap=no \
-       --enable-nntp=yes \
-       --with-gnome-includes=%{_includedir}/gnome-vfs-1.0/ \
+       --enable-gtk-doc \
+       --enable-pilot-conduits=yes \
+       %{?with_ldap:--with-openldap=yes} \
+       %{!?with_ldap:--with-openldap=no} \
+       --without-static-ldap \
+       --enable-nntp=no \
        --enable-file-locking=fcntl --enable-dot-locking=no \
-       --with-nspr-includes="/usr/include/nspr" \
-       --with-nss-includes="/usr/include/nss" \
-       --with-nspr-libs="/usr/lib" \
-       --with-nss-libs="/usr/lib"
-%{__make}
+       --with-nspr-includes="%{_includedir}/nspr" \
+       --with-nss-includes="%{_includedir}/nss" \
+       --with-nspr-libs="%{_libdir}" \
+       --with-nss-libs="%{_libdir}" \
+       --enable-ipv6=yes \
+       --with-html-dir=%{_gtkdocdir} \
+       --with-kde-applnk-path=no
+
+# hack to rebuild *.c and *.h from *.idl (check if needed with new versions)
+# (required if you use ORBit2-devel 2.7.2)
+find -name \*.idl -exec touch {} \;
+
+%{__make} \
+       GTKHTML_DATADIR=%{_datadir}/idl
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT \
-       desktopdir=%{_applnkdir}/Network/Mail \
-       omf_dest_dir=%{_omf_dest_dir}/omf/%{name}
+       KDE_APPLNK_DIR=%{_applnkdir}/Network/Mail \
+       omf_dest_dir=%{_omf_dest_dir}/%{name} \
+       GTKHTML_DATADIR=%{_datadir}/idl
 
-gzip -9nf AUTHORS ChangeLog NEWS
+# strip doesn't pass these files and they aren't necessary, so remove them
+# probably this should be done differently, but I have no idea
+rm -f $RPM_BUILD_ROOT%{_libdir}/evolution/%{mver}/*/*.a
+rm -f $RPM_BUILD_ROOT%{_libdir}/evolution/%{mver}/libemiscwidgets.a
+rm -f $RPM_BUILD_ROOT%{_libdir}/gnome-pilot/*/*.{a,la}
 
-%find_lang %{name} --with-gnome --all-name
+%find_lang %{name} --all-name
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/ldconfig
 /usr/bin/scrollkeeper-update
+%gconf_schema_install
 
 %postun
 /sbin/ldconfig
 /usr/bin/scrollkeeper-update
 
-%files -f %{name}.lang
+%files -f evolution.lang
 %defattr(644,root,root,755)
-%doc *.gz
+%doc AUTHORS ChangeLog NEWS* README
 %attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_sbindir}/*
 %attr(755,root,root) %{_libdir}/evolution/*/*/*.so*
-%attr(755,root,root) %{_libdir}/*.so.*.*.*
+%attr(755,root,root) %{_libdir}/evolution/%{mver}/*.so.*
+%attr(755,root,root) %{_libdir}/evolution/%{mver}/camel/*
+%attr(755,root,root) %{_libdir}/evolution/%{mver}/evolution-alarm-notify
+%attr(755,root,root) %{_libdir}/evolution/%{mver}/killev
 %dir %{_libdir}/evolution
-%dir %{_libdir}/evolution/*
-%dir %{_libdir}/evolution/*/*
-%{_mandir}/man1/*
-%{_libdir}/evolution/camel-providers/*/*.urls
-%{_datadir}/evolution
-%{_datadir}/oaf/*.oaf
-%{_datadir}/gnome/ui
-%{_datadir}/gnome/html/*
-%{_datadir}/images
+%dir %{_libdir}/evolution/%{mver}
+%dir %{_libdir}/evolution/%{mver}/camel*
+%dir %{_libdir}/evolution/%{mver}/components
+%dir %{_libdir}/evolution-mbox-upgrade
+%{_libdir}/bonobo/servers/*
+%{_libdir}/evolution/%{mver}/camel-providers/*.urls
+%dir %{_datadir}/evolution
+%dir %{_datadir}/evolution/%{mver}
+%{_datadir}/evolution/%{mver}/*.xml
+%{_datadir}/evolution/%{mver}/default_user
+%{_datadir}/evolution/%{mver}/ecps
+%{_datadir}/evolution/%{mver}/etspec
+%{_datadir}/evolution/%{mver}/glade
+%{_datadir}/evolution/%{mver}/images
+%{_datadir}/evolution/%{mver}/ui
+%{_datadir}/evolution/%{mver}/views
 %{_datadir}/mime-info/*
-%{_datadir}/libical-evolution
-%{_datadir}/idl/*.idl
-%{_omf_dest_dir}/omf/%{name}
-%{_applnkdir}/Network/Mail/*
+%{_datadir}/idl/*
+%{_desktopdir}/*
 %{_pixmapsdir}/*
+%{_sysconfdir}/gconf/schemas/*
+%{_omf_dest_dir}/%{name}
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/*.??
-%attr(755,root,root) %{_libdir}/evolution/*/*/*.la
+%attr(755,root,root) %{_libdir}/evolution/%{mver}/*.so
+%{_libdir}/evolution/%{mver}/*.la
+%{_libdir}/evolution/*/*/*.la
 %{_includedir}/*
+%{_pkgconfigdir}/*
 
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/*.a
-%{_libdir}/evolution/*/*/*.a
+
+%files pilot
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/evolution/%{mver}/conduits/*
+%{_datadir}/gnome-pilot/conduits/*
This page took 0.041094 seconds and 4 git commands to generate.