author | gman |
Thu, 30 Sep 2010 21:37:28 +0000 | |
branch | gnome-2-30 |
changeset 20130 | c7dfc176dcbd |
parent 18066 | 1847ff0f1078 |
child 20107 | c9bb1ac4aebe |
permissions | -rw-r--r-- |
11516 | 1 |
# |
2 |
# spec file for package gmime |
|
3 |
# |
|
18066 | 4 |
# Copyright (c) 2010 Sun Microsystems, Inc. |
11516 | 5 |
# This file and all modifications and additions to the pristine |
6 |
# package are under the same license as the package itself. |
|
7 |
# |
|
16434 | 8 |
%define owner jerrytan |
11516 | 9 |
# |
10 |
||
17852 | 11 |
%define OSR LFI#105446 (gnome Exec. summary):n/a |
16430 | 12 |
|
11516 | 13 |
Name: gmime |
18066 | 14 |
License: LGPLv2.1 |
11516 | 15 |
Group: System/Libraries |
18066 | 16 |
Version: 2.5.3 |
11516 | 17 |
Release: 4 |
18 |
Distribution: Java Desktop System |
|
17864 | 19 |
Vendor: Gnome Community |
11516 | 20 |
Summary: Libraries and binaries to parse and index mail messages |
17483 | 21 |
Source: http://download.gnome.org/sources/gmime/2.5/%{name}-%{version}.tar.bz2 |
11516 | 22 |
URL: http://spruce.sourceforge.net/gmime/ |
23 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
24 |
Docdir: %{_defaultdocdir}/doc |
|
25 |
Autoreqprov: on |
|
26 |
Prereq: /sbin/ldconfig |
|
27 |
||
17306 | 28 |
Patch1: libgmime-01-fixxref-modules.diff |
18066 | 29 |
Patch2: libgmime-02-configure.diff |
17306 | 30 |
|
11516 | 31 |
BuildRequires: autoconf |
32 |
BuildRequires: automake |
|
33 |
BuildRequires: glib2-devel >= 1:2.12.1 |
|
34 |
BuildRequires: gtk-doc >= 1.0 |
|
35 |
BuildRequires: libtool |
|
36 |
BuildRequires: pkgconfig |
|
37 |
BuildRequires: zlib-devel |
|
38 |
||
39 |
%description |
|
40 |
This library allows you to manipulate MIME messages. |
|
41 |
||
42 |
%package devel |
|
11686
4e757f992933
some minor change to remove "gtk_doc" since no needed
jerrytan
parents:
11621
diff
changeset
|
43 |
Summary: Header files for developing applications with libgmime |
11516 | 44 |
Group: Development/Libraries |
45 |
Requires: %{name} = %{version} |
|
46 |
Requires: glib2-devel >= 1:2.11.4 |
|
47 |
Requires: gtk-doc-common |
|
48 |
Requires: zlib-devel |
|
49 |
||
50 |
%description devel |
|
51 |
Header files develop libgmime applications. |
|
52 |
||
53 |
||
54 |
%prep |
|
55 |
%setup -q |
|
17306 | 56 |
%patch1 -p1 |
18066 | 57 |
%patch2 -p1 |
11516 | 58 |
|
59 |
%build |
|
60 |
%ifos linux |
|
61 |
if [ -x /usr/bin/getconf ]; then |
|
62 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
63 |
fi |
|
64 |
%else |
|
65 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
66 |
%endif |
|
67 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
68 |
CPUS=1 |
|
69 |
fi |
|
70 |
||
16629 | 71 |
libtoolize --copy --force |
11516 | 72 |
aclocal $ACLOCAL_FLAGS |
73 |
autoheader |
|
74 |
automake -a -c -f |
|
75 |
autoconf |
|
76 |
||
77 |
CFLAGS="$RPM_OPT_FLAGS" \ |
|
78 |
./configure --prefix=%{_prefix} \ |
|
79 |
--mandir=%{_mandir} \ |
|
80 |
--libdir=%{_libdir} \ |
|
81 |
--libexecdir=%{_libexecdir} \ |
|
82 |
--sysconfdir=%{_sysconfdir} \ |
|
83 |
%gtk_doc_option |
|
84 |
||
17477 | 85 |
#make -j $CPUS |
86 |
make |
|
11516 | 87 |
|
88 |
%install |
|
89 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
90 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' |
|
91 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';' |
|
92 |
||
93 |
%clean |
|
94 |
rm -rf $RPM_BUILD_ROOT |
|
95 |
||
96 |
%post -p /sbin/ldconfig |
|
97 |
%postun -p /sbin/ldconfig |
|
98 |
||
99 |
%files |
|
100 |
%defattr(-,root,root) |
|
101 |
%doc AUTHORS ChangeLog README TODO |
|
102 |
%attr(755,root,root) %{_libdir}/libgmime-2.0.so.*.*.* |
|
103 |
%attr(755,root,root) %ghost %{_libdir}/libgmime-2.0.so.2 |
|
11535 | 104 |
|
11516 | 105 |
%files devel |
106 |
%defattr(-,root,root) |
|
107 |
%doc PORTING |
|
108 |
%attr(755,root,root) %{_bindir}/gmime-config |
|
109 |
%attr(755,root,root) %{_libdir}/libgmime-2.0.so |
|
110 |
%attr(755,root,root) %{_libdir}/gmimeConf.sh |
|
111 |
%{_libdir}/pkgconfig/gmime-2.0.pc |
|
112 |
%{_includedir}/gmime-2.0 |
|
113 |
%{_datadir}/gtk-doc/html/gmime |
|
114 |
||
11533
60bee7e6619c
* base-specs/gmime.spec: Add /usr/share to prototype definition in spec file.
pale
parents:
11516
diff
changeset
|
115 |
|
60bee7e6619c
* base-specs/gmime.spec: Add /usr/share to prototype definition in spec file.
pale
parents:
11516
diff
changeset
|
116 |
|
11516 | 117 |
%changelog |
18066 | 118 |
* Wed Jun 02 2010 - [email protected] |
119 |
- Bump to 2.5.3. |
|
17547 | 120 |
* Sun Feb 14 2010 - [email protected] |
121 |
- Bump to 2.5.1. |
|
17306 | 122 |
* Tue Jan 12 2010 - [email protected] |
123 |
- Add libgmime-01-fixxref-modules to fix build issue. |
|
12864 | 124 |
* Mon Jul 21 2008 - [email protected] |
125 |
- Bump to 2.2.22. |
|
12619 | 126 |
* Fri Jun 06 2008 - [email protected] |
127 |
- Revert to 2.2.21 as tracker does not yet support 2.3.x. |
|
12571 | 128 |
* Tue Jun 03 2008 - [email protected] |
129 |
- Bump to 2.3.1. |
|
12549 | 130 |
* Fri May 30 2008 - [email protected] |
12571 | 131 |
- Bump to 2.3.0. |
12355 | 132 |
* Mon May 26 2008 - [email protected] |
133 |
- Bump to 2.2.21. Remove upstream patch, 01-bitregion-crash. |
|
12248 | 134 |
* Sun May 04 2008 - [email protected] |
18066 | 135 |
- Bump to 2.2.19. |
12228 | 136 |
* Thu Apr 30 2008 - [email protected] |
18066 | 137 |
- fix 6689345. |
11936 | 138 |
* Thu Mar 27 2008 - [email protected] |
139 |
- Bump to 2.2.18. |
|
11621 | 140 |
* Tue Feb 12 2008 - [email protected] |
141 |
- Bump to 2.2.17. |
|
11583 | 142 |
* Sun Feb 03 2008 - [email protected] |
143 |
- Bump to 2.2.16. |
|
11542
8e476f230291
* SUNWgmime.spec: remove %if without_gtk_doc validation
pale
parents:
11535
diff
changeset
|
144 |
* Tue 29 Jan 2008 - patrick.ale@gmail |
8e476f230291
* SUNWgmime.spec: remove %if without_gtk_doc validation
pale
parents:
11535
diff
changeset
|
145 |
- Revert change since this is not correct. |
11535 | 146 |
* Sun 27 Jan 2008 - [email protected] |
147 |
- Revert change and remove /usr/share from |
|
18066 | 148 |
build area. |
11533
60bee7e6619c
* base-specs/gmime.spec: Add /usr/share to prototype definition in spec file.
pale
parents:
11516
diff
changeset
|
149 |
* Sat 26 Jan 2008 - [email protected] |
18066 | 150 |
- Add /usr/share to the prototype. |
11516 | 151 |
* Thu Jan 24 2008 - [email protected] |
152 |
- Remove mono stuff. |
|
153 |
* Thu Jan 03 2008 - [email protected] |
|
18066 | 154 |
- Bump to 2.2.15. |
11516 | 155 |
* Wed Jan 02 2008 - [email protected] |
18066 | 156 |
- spilit from SUNWgmime.spec. |