diff options
author | Ross Golder <rossg@src.gnome.org> | 2000-05-28 02:42:38 +0800 |
---|---|---|
committer | Ross Golder <rossg@src.gnome.org> | 2000-05-28 02:42:38 +0800 |
commit | 20286800b56812b598fa2baffb8c2fb16c2c2876 (patch) | |
tree | 305567851df7f8eb9262da6d702a0b5e8ed340f9 | |
parent | fa30d9dc099ff50575b2a93e82a856b8edf44cc1 (diff) | |
download | gsoc2013-evolution-20286800b56812b598fa2baffb8c2fb16c2c2876.tar gsoc2013-evolution-20286800b56812b598fa2baffb8c2fb16c2c2876.tar.gz gsoc2013-evolution-20286800b56812b598fa2baffb8c2fb16c2c2876.tar.bz2 gsoc2013-evolution-20286800b56812b598fa2baffb8c2fb16c2c2876.tar.lz gsoc2013-evolution-20286800b56812b598fa2baffb8c2fb16c2c2876.tar.xz gsoc2013-evolution-20286800b56812b598fa2baffb8c2fb16c2c2876.tar.zst gsoc2013-evolution-20286800b56812b598fa2baffb8c2fb16c2c2876.zip |
Added spec file for 'rpm -tb evolution-x.y.tar.gz' ability.
svn path=/trunk/; revision=3230
-rw-r--r-- | Makefile.am | 6 | ||||
-rw-r--r-- | configure.in | 1 | ||||
-rw-r--r-- | evolution.spec.in | 124 |
3 files changed, 130 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 2d7330a8bb..96a2b253c9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -7,7 +7,8 @@ EXTRA_DIST = \ README \ HACKING \ MAINTAINERS \ - NEWS + NEWS \ + evolution.spec.in SUBDIRS = \ intl \ @@ -30,3 +31,6 @@ SUBDIRS = \ default_user \ tools \ po + +dist-hook: evolution.spec + cp evolution.spec $(distdir) diff --git a/configure.in b/configure.in index c0e6d4cf2a..69eb16417c 100644 --- a/configure.in +++ b/configure.in @@ -421,6 +421,7 @@ AC_CONFIG_SUBDIRS(libical) AC_OUTPUT([ Makefile +evolution.spec macros/Makefile intl/Makefile po/Makefile.in diff --git a/evolution.spec.in b/evolution.spec.in new file mode 100644 index 0000000000..38f8d855f9 --- /dev/null +++ b/evolution.spec.in @@ -0,0 +1,124 @@ +# Note this is NOT a relocatable thing :) +%define name evolution +%define ver @VERSION@ +%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: System Environment/Libraries +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 +* 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 + +CFLAGS="$RPM_OPT_FLAGS" ./configure $MYARCH_FLAGS --prefix=%{prefix} \ + --sysconfdir=%{sysconfdir} + +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/evolution +%{prefix}/bin/evolution-mail +%{prefix}/bin/evolution-addressbook +%{prefix}/bin/evolution-calendar +%{prefix}/bin/wombat +%{prefix}/bin/killev +%{prefix}/lib/lib*.so.* +%{prefix}/lib/evolution/camel-providers/*/lib*.so.* +#%{prefix}/lib/evolution/camel-providers/*/*.url +%{prefix}/share/evolution/default_user/local/* + +%defattr(0644, bin, bin) +%{prefix}/share/evolution/glade/*.glade +%{prefix}/share/evolution/filtertypes.xml +%{prefix}/share/evolution/default_user/shortcuts.xml + +%defattr (0444, bin, bin) +%{prefix}/share/locale/*/LC_MESSAGES/* +%{prefix}/share/gnome/help/gnomecal/* +%{prefix}/share/images/evolution/*.png +%{sysconfdir}/CORBA/servers/* + +%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/*/*.so +%{prefix}/lib/evolution/camel-providers/*/*.la + +%defattr(0444, bin, bin) +%{prefix}/include/*.h +%{prefix}/include/camel/*.h +%{prefix}/include/composer/*.h +%{prefix}/include/ename/*.h +%{prefix}/include/evolution/ebook/*.h +%{prefix}/include/evolution/cal-util/*.h +%{prefix}/include/evolution/cal-client/*.h +%{prefix}/share/idl/*.idl |