Re: evolution.spec, please!



In message <3B724C43 15C6FD6F kscanners com>, Toralf Lund writes:

>Why isn't there an RPM spec file for Evolution in CVS?

I don't know.  Perhaps Ximian doesn't want to maintain it.  You can try the one
I use here (optimally configured for RH 6.x but functional on 7.x):

# Note this is NOT a relocatable thing :)
%define name		evolution
%define ver		0.12
%define RELEASE		1
%define rel		%{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
%define prefix		/usr
%define sysconfdir	/etc

Name:		%name
Summary:	Integrated GNOME mail client, calendar and address book.
Version: 	%ver
Release: 	%rel
Copyright: 	GPL
Group:		Applications/Productivity
Source: 	%{name}-%{ver}.tar.gz
URL: 		http://www.gnome.org/
BuildRoot:	/var/tmp/%{name}-%{ver}-root
Docdir: 	%{prefix}/doc

%description

%package devel
Summary:	Libraries and include files for developing Evolution components
Group:		Development/Libraries
Requires:	%name = %{PACKAGE_VERSION}
Obsoletes:	%{name}-devel

%description devel
This package provides the necessary development libraries and include
files to allow you to develop evolution components.

%changelog
* Fri Oct 20 2000 John Gotts <jgotts linuxsavvy com>
- Synched to latest CVS version.

* Sun May 21 2000 Ross Golder <rossigee bigfoot com>
- created spec file

%prep
%setup

%build
%ifarch alpha
  MYARCH_FLAGS="--host=alpha-redhat-linux"
%endif

LC_ALL=""
LINGUAS=""
LANG=""
export LC_ALL LINGUAS LANG

if [ ! -f configure ]; then
CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh $MYARCH_FLAGS --prefix=%{prefix} \
	--sysconfdir=%{sysconfdir} --enable-nntp=yes \
	--with-krb5=/usr/kerberos --enable-assbarn-security \
	--with-nspr-includes=/usr/include/mozilla/nspr \
	--with-mozilla-lib-path=/usr/lib/mozilla \
	--with-db3-includes=/usr/include/db3
else
CFLAGS="$RPM_OPT_FLAGS" ./configure $MYARCH_FLAGS --prefix=%{prefix} \
	--sysconfdir=%{sysconfdir} --enable-nntp=yes \
	--with-krb5=/usr/kerberos --enable-assbarn-security \
	--with-nspr-includes=/usr/include/mozilla/nspr \
	--with-mozilla-lib-path=/usr/lib/mozilla \
	--with-db3-includes=/usr/include/db3
fi

if [ "$SMP" != "" ]; then
  (make "MAKE=make -k -j $SMP"; exit 0)
  make
else
  make
fi

%install
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT

make prefix=$RPM_BUILD_ROOT%{prefix} sysconfdir=$RPM_BUILD_ROOT%{sysconfdir} install

for FILE in "$RPM_BUILD_ROOT/bin/*"; do
	file "$FILE" | grep -q not\ stripped && strip $FILE
done

%clean
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT

%post
if ! grep %{prefix}/lib /etc/ld.so.conf > /dev/null ; then
  echo "%{prefix}/lib" >> /etc/ld.so.conf
fi
  
/sbin/ldconfig
  
%postun -p /sbin/ldconfig

%files

%defattr(0555, bin, bin)
%doc AUTHORS COPYING ChangeLog NEWS README
%{prefix}/bin/*
%{prefix}/lib/lib*.so.*
%{prefix}/lib/evolution/camel-providers/*/lib*.so*
%{prefix}/lib/evolution/evolution-mail-importers/*/lib*.so*
%{prefix}/sbin/camel-lock-helper

%defattr(0444, bin, bin)
%{prefix}/lib/evolution/camel-providers/*/*.urls
%{prefix}/share/evolution/Locations
%{prefix}/share/evolution/*.*
%{prefix}/share/evolution/default_user/*.*
%{prefix}/share/evolution/default_user/local/*/*
%{prefix}/share/evolution/ecps/*
%{prefix}/share/evolution/etspec/*
%{prefix}/share/evolution/glade/*
%{prefix}/share/evolution/views/*/*
%{prefix}/share/gnome/apps/Applications/evolution.desktop
%{prefix}/share/gnome/help/evolution/C/evolution-faq/*
%{prefix}/share/gnome/help/evolution/C/evolution-guide/*.*
%{prefix}/share/gnome/help/evolution/C/evolution-guide/stylesheet-images/*
%{prefix}/share/gnome/ui/*
%{prefix}/share/images/evolution/*.*
%{prefix}/share/images/evolution/buttons/*
%{prefix}/share/images/evolution/categories/*
%{prefix}/share/images/evolution/conduits/*
%{prefix}/share/libical/zoneinfo/*.*
%{prefix}/share/libical/zoneinfo/*/*.*
%{prefix}/share/libical/zoneinfo/*/*/*
%{prefix}/share/locale/*/LC_MESSAGES/*.mo
%{prefix}/share/mime-info/*
%{prefix}/share/oaf/*
%{prefix}/share/pixmaps/*

%files devel

%defattr(0555, bin, bin)
%{prefix}/lib/*.a
%{prefix}/lib/*.so
%{prefix}/lib/*.la
%{prefix}/lib/evolution/camel-providers/*/*.a
%{prefix}/lib/evolution/camel-providers/*/*.la
%{prefix}/lib/evolution/evolution-mail-importers/*/*.a
%{prefix}/lib/evolution/evolution-mail-importers/*/*.la

%defattr(0444, bin, bin, 0555)
%dir %{prefix}/include/camel
%dir %{prefix}/include/ename
%dir %{prefix}/include/evolution
%dir %{prefix}/include/evolution/cal-client
%dir %{prefix}/include/evolution/cal-util
%dir %{prefix}/include/evolution/ebook
%dir %{prefix}/include/evolution/importer
%dir %{prefix}/include/evolution/shell
%dir %{prefix}/include/evolution/wombat
%dir %{prefix}/include/libicalvcal
%{prefix}/include/*.*
%{prefix}/include/camel/*
%{prefix}/include/ename/*
%{prefix}/include/evolution/cal-client/*
%{prefix}/include/evolution/cal-util/*
%{prefix}/include/evolution/ebook/*
%{prefix}/include/evolution/importer/*
%{prefix}/include/evolution/shell/*
%{prefix}/include/evolution/wombat/*
%{prefix}/include/libicalvcal/*
%{prefix}/share/idl/*

Let me know if you have any trouble.

John

-- 
John GOTTS <jgotts linuxsavvy com>  http://linuxsavvy.com/staff/jgotts




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