gmime.spec revision 18234
16913N/A#
16913N/A# spec file for package gmime
16913N/A#
16913N/A# Copyright (c) 2008 Sun Microsystems, Inc.
16913N/A# This file and all modifications and additions to the pristine
16913N/A# package are under the same license as the package itself.
16913N/A#
16913N/A%define owner jerrytan
16913N/A#
16913N/A
16913N/A%define OSR gnome.org:0
16913N/A
16913N/AName: gmime
16913N/ALicense: LGPL v2.1
17033N/AGroup: System/Libraries
17033N/AVersion: 2.5.0
17148N/ARelease: 4
17033N/ADistribution: Java Desktop System
17033N/AVendor: Sun Microsystems, Inc.
17033N/ASummary: Libraries and binaries to parse and index mail messages
16913N/ASource: http://download.gnome.org/sources/gmime/2.5/%{name}-%{version}.tar.bz2
16913N/AURL: http://spruce.sourceforge.net/gmime/
16913N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
16913N/ADocdir: %{_defaultdocdir}/doc
17033N/AAutoreqprov: on
16913N/APrereq: /sbin/ldconfig
16913N/A
16913N/APatch1: libgmime-01-fixxref-modules.diff
16913N/A
16913N/ABuildRequires: autoconf
16913N/ABuildRequires: automake
16913N/ABuildRequires: glib2-devel >= 1:2.12.1
16913N/ABuildRequires: gtk-doc >= 1.0
16913N/ABuildRequires: libtool
16913N/ABuildRequires: pkgconfig
16913N/ABuildRequires: zlib-devel
16913N/A
16913N/A%description
16913N/AThis library allows you to manipulate MIME messages.
16913N/A
16913N/A%package devel
16913N/ASummary: Header files for developing applications with libgmime
16913N/AGroup: Development/Libraries
16913N/ARequires: %{name} = %{version}
16913N/ARequires: glib2-devel >= 1:2.11.4
16913N/ARequires: gtk-doc-common
16913N/ARequires: zlib-devel
16913N/A
16961N/A%description devel
16913N/AHeader files develop libgmime applications.
16913N/A
16913N/A
16913N/A%prep
16913N/A%setup -q
16913N/A%patch1 -p1
16913N/A
16913N/A%build
16913N/A%ifos linux
16913N/Aif [ -x /usr/bin/getconf ]; then
16913N/A CPUS=`getconf _NPROCESSORS_ONLN`
16913N/Afi
16913N/A%else
16913N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
16913N/A%endif
16913N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
16913N/A CPUS=1
16913N/Afi
16913N/A
16913N/Alibtoolize --copy --force
16913N/Aaclocal $ACLOCAL_FLAGS
16913N/Aautoheader
16913N/Aautomake -a -c -f
16913N/Aautoconf
16913N/A
16913N/ACFLAGS="$RPM_OPT_FLAGS" \
16913N/A./configure --prefix=%{_prefix} \
16913N/A --mandir=%{_mandir} \
16913N/A --libdir=%{_libdir} \
16913N/A --libexecdir=%{_libexecdir} \
17148N/A --sysconfdir=%{_sysconfdir} \
17148N/A %gtk_doc_option
16961N/A
16961N/A#make -j $CPUS
16913N/Amake
16913N/A
%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
* Tue Jan 12 2010 - christian.kelly@sun.com
- Add libgmime-01-fixxref-modules to fix build issue.
* Mon Jul 21 2008 - damien.carbery@sun.com
- Bump to 2.2.22.
* Fri Jun 06 2008 - damien.carbery@sun.com
- Revert to 2.2.21 as tracker does not yet support 2.3.x.
* Tue Jun 03 2008 - jerry.tan@sun.com
- Bump to 2.3.1.
* Fri May 30 2008 - jerry.tan@sun.com
- Bump to 2.3.0.
* 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