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