12258N/A#
12258N/A# spec file for package gmime
12258N/A#
20836N/A# Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
12258N/A# This file and all modifications and additions to the pristine
12258N/A# package are under the same license as the package itself.
12258N/A#
20836N/A
20836N/A%define owner gheet
12258N/A#
12258N/A
18603N/A%define OSR LFI#105446 (gnome Exec. summary):n/a
17181N/A
12258N/AName: gmime
18817N/ALicense: LGPLv2.1
12258N/AGroup: System/Libraries
18817N/AVersion: 2.5.3
12258N/ARelease: 4
12258N/ADistribution: Java Desktop System
18615N/AVendor: Gnome Community
12258N/ASummary: Libraries and binaries to parse and index mail messages
18234N/ASource: http://download.gnome.org/sources/gmime/2.5/%{name}-%{version}.tar.bz2
12258N/AURL: http://spruce.sourceforge.net/gmime/
12258N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
12258N/ADocdir: %{_defaultdocdir}/doc
12258N/AAutoreqprov: on
12258N/APrereq: /sbin/ldconfig
12258N/A
18057N/APatch1: libgmime-01-fixxref-modules.diff
18817N/APatch2: libgmime-02-configure.diff
18057N/A
12258N/ABuildRequires: autoconf
12258N/ABuildRequires: automake
12258N/ABuildRequires: glib2-devel >= 1:2.12.1
12258N/ABuildRequires: gtk-doc >= 1.0
12258N/ABuildRequires: libtool
12258N/ABuildRequires: pkgconfig
12258N/ABuildRequires: zlib-devel
12258N/A
12258N/A%description
12258N/AThis library allows you to manipulate MIME messages.
12258N/A
12258N/A%package devel
12428N/ASummary: Header files for developing applications with libgmime
12258N/AGroup: Development/Libraries
12258N/ARequires: %{name} = %{version}
12258N/ARequires: glib2-devel >= 1:2.11.4
12258N/ARequires: gtk-doc-common
12258N/ARequires: zlib-devel
12258N/A
12258N/A%description devel
12258N/AHeader files develop libgmime applications.
12258N/A
12258N/A
12258N/A%prep
12258N/A%setup -q
18057N/A%patch1 -p1
18817N/A%patch2 -p1
12258N/A
12258N/A%build
12258N/A%ifos linux
12258N/Aif [ -x /usr/bin/getconf ]; then
12258N/A CPUS=`getconf _NPROCESSORS_ONLN`
12258N/Afi
12258N/A%else
12258N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
12258N/A%endif
12258N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
12258N/A CPUS=1
12258N/Afi
12258N/A
17380N/Alibtoolize --copy --force
12258N/Aaclocal $ACLOCAL_FLAGS
12258N/Aautoheader
12258N/Aautomake -a -c -f
12258N/Aautoconf
12258N/A
12258N/ACFLAGS="$RPM_OPT_FLAGS" \
12258N/A./configure --prefix=%{_prefix} \
12258N/A --mandir=%{_mandir} \
12258N/A --libdir=%{_libdir} \
12258N/A --libexecdir=%{_libexecdir} \
12258N/A --sysconfdir=%{_sysconfdir} \
12258N/A %gtk_doc_option
12258N/A
18228N/A#make -j $CPUS
18228N/Amake
12258N/A
12258N/A%install
12258N/Amake install DESTDIR=$RPM_BUILD_ROOT
12258N/Afind $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
12258N/Afind $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
12258N/A
12258N/A%clean
12258N/Arm -rf $RPM_BUILD_ROOT
12258N/A
12258N/A%post -p /sbin/ldconfig
12258N/A%postun -p /sbin/ldconfig
12258N/A
12258N/A%files
12258N/A%defattr(-,root,root)
12258N/A%doc AUTHORS ChangeLog README TODO
12258N/A%attr(755,root,root) %{_libdir}/libgmime-2.0.so.*.*.*
12258N/A%attr(755,root,root) %ghost %{_libdir}/libgmime-2.0.so.2
12277N/A
12258N/A%files devel
12258N/A%defattr(-,root,root)
12258N/A%doc PORTING
12258N/A%attr(755,root,root) %{_bindir}/gmime-config
12258N/A%attr(755,root,root) %{_libdir}/libgmime-2.0.so
12258N/A%attr(755,root,root) %{_libdir}/gmimeConf.sh
12258N/A%{_libdir}/pkgconfig/gmime-2.0.pc
12258N/A%{_includedir}/gmime-2.0
12258N/A%{_datadir}/gtk-doc/html/gmime
12258N/A
12275N/A
12275N/A
12258N/A%changelog
18817N/A* Wed Jun 02 2010 - brian.cameron@oracle.com
18817N/A- Bump to 2.5.3.
18298N/A* Sun Feb 14 2010 - christian.kelly@sun.com
18298N/A- Bump to 2.5.1.
18057N/A* Tue Jan 12 2010 - christian.kelly@sun.com
18057N/A- Add libgmime-01-fixxref-modules to fix build issue.
13606N/A* Mon Jul 21 2008 - damien.carbery@sun.com
13606N/A- Bump to 2.2.22.
13361N/A* Fri Jun 06 2008 - damien.carbery@sun.com
13361N/A- Revert to 2.2.21 as tracker does not yet support 2.3.x.
13313N/A* Tue Jun 03 2008 - jerry.tan@sun.com
13313N/A- Bump to 2.3.1.
13291N/A* Fri May 30 2008 - jerry.tan@sun.com
13313N/A- Bump to 2.3.0.
13097N/A* Mon May 26 2008 - damien.carbery@sun.com
13097N/A- Bump to 2.2.21. Remove upstream patch, 01-bitregion-crash.
12990N/A* Sun May 04 2008 - halton.huo@sun.com
18817N/A- Bump to 2.2.19.
12970N/A* Thu Apr 30 2008 - rick.ju@sun.com
18817N/A- fix 6689345.
12678N/A* Thu Mar 27 2008 - damien.carbery@sun.com
12678N/A- Bump to 2.2.18.
12363N/A* Tue Feb 12 2008 - damien.carbery@sun.com
12363N/A- Bump to 2.2.17.
12325N/A* Sun Feb 03 2008 - halton.huo@sun.com
12325N/A- Bump to 2.2.16.
12284N/A* Tue 29 Jan 2008 - patrick.ale@gmail
12284N/A- Revert change since this is not correct.
12277N/A* Sun 27 Jan 2008 - patrick.ale@gmail.com
12277N/A- Revert change and remove /usr/share from
18817N/A build area.
12275N/A* Sat 26 Jan 2008 - patrick.ale@gmail.com
18817N/A- Add /usr/share to the prototype.
12258N/A* Thu Jan 24 2008 - halton.huo@sun.com
12258N/A- Remove mono stuff.
12258N/A* Thu Jan 03 2008 - halton.huo@sun.com
18817N/A- Bump to 2.2.15.
12258N/A* Wed Jan 02 2008 - halton.huo@sun.com
18817N/A- spilit from SUNWgmime.spec.