gmime.spec revision 13097
13598N/A#
13598N/A# spec file for package gmime
13598N/A#
13598N/A# Copyright (c) 2008 Sun Microsystems, Inc.
13598N/A# This file and all modifications and additions to the pristine
13598N/A# package are under the same license as the package itself.
13598N/A#
16714N/A# Owner:halton
13598N/A#
13611N/A
13598N/AName: gmime
13598N/ALicense: LGPL
13598N/AGroup: System/Libraries
13611N/AVersion: 2.2.21
13598N/ARelease: 4
13611N/ADistribution: Java Desktop System
13598N/AVendor: Sun Microsystems, Inc.
16714N/ASummary: Libraries and binaries to parse and index mail messages
13598N/ASource: http://download.gnome.org/sources/gmime/2.2/%{name}-%{version}.tar.bz2
14049N/AURL: http://spruce.sourceforge.net/gmime/
14049N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
13611N/ADocdir: %{_defaultdocdir}/doc
13611N/AAutoreqprov: on
13598N/APrereq: /sbin/ldconfig
13598N/A
13598N/ABuildRequires: autoconf
13598N/ABuildRequires: automake
13598N/ABuildRequires: glib2-devel >= 1:2.12.1
14049N/ABuildRequires: gtk-doc >= 1.0
13598N/ABuildRequires: libtool
13598N/ABuildRequires: pkgconfig
13598N/ABuildRequires: zlib-devel
13598N/A
13598N/A%description
13598N/AThis library allows you to manipulate MIME messages.
13598N/A
13598N/A%package devel
13598N/ASummary: Header files for developing applications with libgmime
13598N/AGroup: Development/Libraries
13598N/ARequires: %{name} = %{version}
13598N/ARequires: glib2-devel >= 1:2.11.4
13598N/ARequires: gtk-doc-common
13598N/ARequires: zlib-devel
13598N/A
13598N/A%description devel
13598N/AHeader files develop libgmime applications.
13598N/A
13598N/A
13598N/A%prep
13598N/A%setup -q
13598N/A
13598N/A%build
13598N/A%ifos linux
16714N/Aif [ -x /usr/bin/getconf ]; then
16714N/A CPUS=`getconf _NPROCESSORS_ONLN`
14049N/Afi
14049N/A%else
14049N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
13611N/A%endif
13611N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
13611N/A CPUS=1
13611N/Afi
13598N/A
13598N/Aaclocal $ACLOCAL_FLAGS
13598N/Aautoheader
automake -a -c -f
autoconf
CFLAGS="$RPM_OPT_FLAGS" \
./configure --prefix=%{_prefix} \
--mandir=%{_mandir} \
--libdir=%{_libdir} \
--libexecdir=%{_libexecdir} \
--sysconfdir=%{_sysconfdir} \
%gtk_doc_option
make -j $CPUS
%install
make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog README TODO
%attr(755,root,root) %{_libdir}/libgmime-2.0.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libgmime-2.0.so.2
%files devel
%defattr(-,root,root)
%doc PORTING
%attr(755,root,root) %{_bindir}/gmime-config
%attr(755,root,root) %{_libdir}/libgmime-2.0.so
%attr(755,root,root) %{_libdir}/gmimeConf.sh
%{_libdir}/pkgconfig/gmime-2.0.pc
%{_includedir}/gmime-2.0
%{_datadir}/gtk-doc/html/gmime
%changelog
* Mon May 26 2008 - damien.carbery@sun.com
- Bump to 2.2.21. Remove upstream patch, 01-bitregion-crash.
* Sun May 04 2008 - halton.huo@sun.com
- Bump to 2.2.19
* Thu Apr 30 2008 - rick.ju@sun.com
- fix 6689345
* Thu Mar 27 2008 - damien.carbery@sun.com
- Bump to 2.2.18.
* Tue Feb 12 2008 - damien.carbery@sun.com
- Bump to 2.2.17.
* Sun Feb 03 2008 - halton.huo@sun.com
- Bump to 2.2.16.
* Tue 29 Jan 2008 - patrick.ale@gmail
- Revert change since this is not correct.
* Sun 27 Jan 2008 - patrick.ale@gmail.com
- Revert change and remove /usr/share from
build area
* Sat 26 Jan 2008 - patrick.ale@gmail.com
- Add /usr/share to the prototype
* Thu Jan 24 2008 - halton.huo@sun.com
- Remove mono stuff.
* Thu Jan 03 2008 - halton.huo@sun.com
- Bump to 2.2.15
* Wed Jan 02 2008 - halton.huo@sun.com
- spilit from SUNWgmime.spec