gmime.spec revision 12970
13873N/A#
13873N/A# spec file for package gmime
13873N/A#
13873N/A# Copyright (c) 2008 Sun Microsystems, Inc.
13873N/A# This file and all modifications and additions to the pristine
13873N/A# package are under the same license as the package itself.
13873N/A#
13873N/A# Owner:halton
13873N/A#
13873N/A
13873N/AName: gmime
13873N/ALicense: LGPL
13873N/AGroup: System/Libraries
13873N/AVersion: 2.2.18
13873N/ARelease: 4
13873N/ADistribution: Java Desktop System
13873N/AVendor: Sun Microsystems, Inc.
13873N/ASummary: Libraries and binaries to parse and index mail messages
13873N/ASource: http://download.gnome.org/sources/gmime/2.2/%{name}-%{version}.tar.bz2
13873N/A# date:2008-04-30 owner:rickju type:branding bugster:6689345
13873N/APatch1: gmime-01-bitregion-crash.diff
13873N/AURL: http://spruce.sourceforge.net/gmime/
13873N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
13873N/ADocdir: %{_defaultdocdir}/doc
13873N/AAutoreqprov: on
13873N/APrereq: /sbin/ldconfig
13873N/A
13873N/ABuildRequires: autoconf
13873N/ABuildRequires: automake
13873N/ABuildRequires: glib2-devel >= 1:2.12.1
13873N/ABuildRequires: gtk-doc >= 1.0
13873N/ABuildRequires: libtool
13873N/ABuildRequires: pkgconfig
13873N/ABuildRequires: zlib-devel
13873N/A
13873N/A%description
13873N/AThis library allows you to manipulate MIME messages.
13873N/A
13873N/A%package devel
13873N/ASummary: Header files for developing applications with libgmime
13873N/AGroup: Development/Libraries
13873N/ARequires: %{name} = %{version}
13873N/ARequires: glib2-devel >= 1:2.11.4
13873N/ARequires: gtk-doc-common
13873N/ARequires: zlib-devel
13873N/A
13873N/A%description devel
13873N/AHeader files develop libgmime applications.
13873N/A
13873N/A
13873N/A%prep
13873N/A%setup -q
13873N/A%patch1 -p1
13873N/A
13873N/A%build
13873N/A%ifos linux
13873N/Aif [ -x /usr/bin/getconf ]; then
13873N/A CPUS=`getconf _NPROCESSORS_ONLN`
13873N/Afi
13873N/A%else
13873N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
13873N/A%endif
13873N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
13873N/A CPUS=1
13873N/Afi
13873N/A
13873N/Aaclocal $ACLOCAL_FLAGS
13873N/Aautoheader
13873N/Aautomake -a -c -f
13873N/Aautoconf
13873N/A
13873N/ACFLAGS="$RPM_OPT_FLAGS" \
13873N/A./configure --prefix=%{_prefix} \
13873N/A --mandir=%{_mandir} \
13873N/A --libdir=%{_libdir} \
13873N/A --libexecdir=%{_libexecdir} \
13873N/A --sysconfdir=%{_sysconfdir} \
13873N/A %gtk_doc_option
13873N/A
13873N/Amake -j $CPUS
13873N/A
13873N/A%install
13873N/Amake install DESTDIR=$RPM_BUILD_ROOT
13873N/Afind $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
13873N/Afind $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
13873N/A
13873N/A%clean
13873N/Arm -rf $RPM_BUILD_ROOT
13873N/A
13873N/A%post -p /sbin/ldconfig
13873N/A%postun -p /sbin/ldconfig
13873N/A
13873N/A%files
13873N/A%defattr(-,root,root)
13873N/A%doc AUTHORS ChangeLog README TODO
13873N/A%attr(755,root,root) %{_libdir}/libgmime-2.0.so.*.*.*
13873N/A%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
* 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