[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Move Evolution to Extras?



Dnia 04-04-2006, wto o godzinie 14:47 -0400, Jesse Keating napisał(a):
> On Tue, 2006-04-04 at 11:32 -0700, Ian Burrell wrote:
> > I put in a bug (178155) a while ago with a patch split the conduits
> > into an evolution-pilot subpackage. 
> 
> While thats nice, it doesn't help in this regard.  It is a subpackage of
> the main evolution source rpm.  That means that the source rpm cannot go
> outside the Fedora build system.  Not until we made modifications to how
> packages are brought in and how we look at the distribution.

Patch for current evolution.spec for doing this in attachment.

Attached patch also fixes few other (sometimes very stupid) things in
this spec:
- remove "Require: libinotify" rule (remember: not versioned libraries
  dependencies are *allways* autogenerated by rpm on build stage),
- replace run sequence autotools by single "autoreconf -f" in %build,
- use --disable-schemas-install in configure parameters instead
  "excercises" in %install,
- remove INSTALL from %doc (God .. now we have in system resources few
  hundrets minus one the same automake INSTALL document),
- replace all --with-<foo>=no and --enable-<bar>=no by better redable
  --without-<foo> and --disable-<bar>,
- use --dissable-static instead waste time in %build for generate static
  libraries only for prune them in %install,
- use single command (rm) for remove all .la files (all without using
  additionaly command like xargs and find),
- cleanups: s,$RPM_BUILD_ROOT/%{_,$RPM_BUILD_ROOT%{_,

kloczek

Index: evolution.spec
===================================================================
RCS file: /cvs/dist/devel/evolution/evolution.spec,v
retrieving revision 1.134
diff -u -r1.134 evolution.spec
--- evolution.spec	14 Mar 2006 06:57:34 -0000	1.134
+++ evolution.spec	4 Apr 2006 19:10:42 -0000
@@ -121,10 +121,6 @@
 Requires: libgnomeprint22 >= %{libgnomeprint22_version}
 Requires: gnome-vfs2 >= %{gnomevfs2_version}
 
-%if %{libnotify_support}
-Requires: libnotify
-%endif
-
 Obsoletes: libgal2 <= %{last_libgal2_version}
 
 BuildRequires: gtkhtml3-devel >= %{gtkhtml_version}
@@ -206,6 +202,16 @@
 %description devel
 Development files needed for building things which link against evolution.
 
+%package pilot
+Summary:	Evolution conduits for gnome-pilot
+Summary(pl):	Dodatki do wymiany danych z gnome-pilot
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description pilot
+This package contains conduits needed by gnome-pilot to synchronize
+your Palm with Evolution.
+
 %prep
 %setup -q
 # these are in CVS already on the 1-4-branch
@@ -305,24 +311,19 @@
 fi
 %endif
 
-# Rerun autotools since we patched configure.in (patch for new-mail-notify plugin) and some Makefile.am files (conduit paths):
-aclocal
-autoheader
-automake
-libtoolize
-intltoolize --force
-autoconf
-
-# Configuration:
+autoreconf -f
 %configure \
-  --enable-gtk-doc=yes \
-  --enable-ipv6 \
-  --enable-file-locking=fcntl --enable-dot-locking=no \
-  --with-sub-version=" (%{version}-%{release})" \
-  --with-kde-applnk-path=no \
-  --enable-file-chooser=yes \
-  %ldap_flags %pilot_flags %krb5_flags %nntp_flags %ssl_flags %exchange_flags \
-  --enable-plugins=all
+	--disable-dot-locking \
+	--disable-schemas-install \
+	--disable-static \
+	--enable-file-chooser \
+	--enable-file-locking=fcntl \
+	--enable-gtk-doc \
+	--enable-ipv6 \
+	--enable-plugins=all
+	--without-kde-applnk-path \
+	--with-sub-version=" (%{version}-%{release})" \
+	%ldap_flags %pilot_flags %krb5_flags %nntp_flags %ssl_flags %exchange_flags \
 export tagname=CC
 
 # Do the make, with various flags:
@@ -332,24 +333,10 @@
 make %{?_smp_mflags} LIBTOOL=%{_bindir}/libtool CFLAGS="$CFLAGS -UGNOME_DISABLE_DEPRECATED"
 %endif
 
-#cat /dev/null > default_user/local/Inbox/mbox
-
 %install
 rm -rf $RPM_BUILD_ROOT
-export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
 export tagname=CC
 make LIBTOOL=%{_bindir}/libtool DESTDIR=$RPM_BUILD_ROOT install
-unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
-
-# remove libtool archives for importers and the like
-find $RPM_BUILD_ROOT/%{_libdir}/evolution -name '*.la' -exec rm {} \;
-
-# remove statically built libraries:
-find $RPM_BUILD_ROOT/%{_libdir}/evolution -name '*.a' -exec rm {} \;
-
-# pilot conduits static and libtool bits should go away too
-rm -f $RPM_BUILD_ROOT/%{_libdir}/gnome-pilot/conduits/*.a
-rm -f $RPM_BUILD_ROOT/%{_libdir}/gnome-pilot/conduits/*.la
 
 # remove additional things we don't want
 %if ! %{inline_audio_support}
@@ -357,23 +344,22 @@
            $RPM_BUILD_ROOT%{evo_plugin_dir}/liborg-gnome-audio-inline.so
 %endif
 
-# scrollkeeper gets handled in %post
-rm -rf $RPM_BUILD_ROOT/var/scrollkeeper
-
 # evolution is the preferred email app
-ln -sf ../desktop-menu-patches/redhat-evolution-mail.desktop $RPM_BUILD_ROOT/%{_datadir}/applications/
-ln -sf ../desktop-menu-patches/redhat-evolution-calendar.desktop $RPM_BUILD_ROOT/%{_datadir}/applications/
-ln -sf ../desktop-menu-patches/redhat-evolution-contacts.desktop $RPM_BUILD_ROOT/%{_datadir}/applications/
-ln -sf ../desktop-menu-patches/redhat-evolution-tasks.desktop $RPM_BUILD_ROOT/%{_datadir}/applications/
+ln -sf ../desktop-menu-patches/redhat-evolution-mail.desktop $RPM_BUILD_ROOT%{_datadir}/applications/
+ln -sf ../desktop-menu-patches/redhat-evolution-calendar.desktop $RPM_BUILD_ROOT%{_datadir}/applications/
+ln -sf ../desktop-menu-patches/redhat-evolution-contacts.desktop $RPM_BUILD_ROOT%{_datadir}/applications/
+ln -sf ../desktop-menu-patches/redhat-evolution-tasks.desktop $RPM_BUILD_ROOT%{_datadir}/applications/
 
 # remove upstream desktop file; use the symlinks from above (#103826)
-rm -f $RPM_BUILD_ROOT/%{_datadir}/applications/evolution.desktop
+rm -f $RPM_BUILD_ROOT%{_datadir}/applications/evolution.desktop
 
 rm -f $RPM_BUILD_ROOT%{_datadir}/mime-info/evolution.keys
 rm -f $RPM_BUILD_ROOT%{_datadir}/mime-info/evolution.mime
 
+rm -f $RPM_BUILD_ROOT%{_libdir}/*{,/*}/*.la
+
 # evolution link
-ln -sf ./evolution-%{evo_major} $RPM_BUILD_ROOT/%{_bindir}/evolution
+ln -sf ./evolution-%{evo_major} $RPM_BUILD_ROOT%{_bindir}/evolution
 
 for serverfile in $RPM_BUILD_ROOT%{_libdir}/bonobo/servers/*.server; do
     sed -i -e 's|location *= *"/usr/lib\(64\)*/|location="/usr/$LIB/|' $serverfile
@@ -398,7 +384,7 @@
 
 %files -f %{name}-%{evo_major}.lang
 %defattr(-, root, root)
-%doc AUTHORS COPYING ChangeLog INSTALL NEWS README
+%doc AUTHORS COPYING ChangeLog NEWS README
 
 # GConf schemas:
 %{_sysconfdir}/gconf/schemas/apps-evolution-mail-prompts-checkdefault-%{evo_major}.schemas 
@@ -477,23 +463,6 @@
 %{_libexecdir}/evolution/%{evo_major}/evolution-alarm-notify
 %{_libexecdir}/evolution/%{evo_major}/killev
 
-# Various conduits for gnome-pilot:
-%if %{pilot_support}
-%dir %{_libdir}/evolution/%{evo_major}/conduits
-
-%{_libdir}/evolution/%{evo_major}/conduits/libeaddress_conduit.so
-%{_libdir}/gnome-pilot/conduits/e-address-%{evo_major}.conduit
-
-%{_libdir}/evolution/%{evo_major}/conduits/libecalendar_conduit.so
-%{_libdir}/gnome-pilot/conduits/e-calendar-%{evo_major}.conduit
-
-%{_libdir}/evolution/%{evo_major}/conduits/libememo_conduit.so
-%{_libdir}/gnome-pilot/conduits/e-memo-%{evo_major}.conduit
-
-%{_libdir}/evolution/%{evo_major}/conduits/libetodo_conduit.so
-%{_libdir}/gnome-pilot/conduits/e-todo-%{evo_major}.conduit
-%endif
-
 # The plugin directory:
 %dir %{evo_plugin_dir}
 
@@ -634,6 +602,13 @@
 %{_libdir}/evolution/%{evo_major}/libfilter.so
 %{_libdir}/evolution/%{evo_major}/libmenus.so
 
+%if %{pilot_support}
+%files pilot
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/evolution/conduits/*.so
+%{_datadir}/gnome-pilot/conduits/*
+%endif
+
 %changelog
 * Mon Mar 13 2006 Ray Strode <rstrode redhat com> - 2.6.0-1
 - 2.6.0

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]