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