author | mattman |
Wed, 18 Feb 2009 15:07:13 +0000 | |
changeset 15143 | d2d90ead6862 |
parent 14724 | 5242844cbdd3 |
permissions | -rw-r--r-- |
14661 | 1 |
# |
2 |
# spec file for package telepathy-glib |
|
3 |
# |
|
4 |
# Copyright 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 |
# |
|
15143
d2d90ead6862
* SUNWtgnome-tsoljdsdevmgr.spec : Update Owner format string
mattman
parents:
14724
diff
changeset
|
8 |
# Owner: rickju |
14661 | 9 |
# |
10 |
||
11 |
Name: telepathy-glib |
|
12 |
License: GPL |
|
13 |
Group: Applications/Internet |
|
14724 | 14 |
Version: 0.7.19 |
14661 | 15 |
Release: 1 |
16 |
Distribution: Java Desktop System |
|
17 |
Vendor: Sun Microsystems, Inc. |
|
18 |
Summary: A GLib-based helper library for clients and connection managers |
|
19 |
Source: http://telepathy.freedesktop.org/releases/%{name}/%{name}-%{version}.tar.gz |
|
20 |
# date:2008-11-04 owner:rickju type:branding bugster:6710470 |
|
21 |
Patch1: telepathy-glib-01-struct.diff |
|
22 |
URL: http://telepathy.freedesktop.org/wiki/Telepathy%20GLib |
|
23 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
24 |
Docdir: %{_defaultdocdir}/telepathy-glib |
|
25 |
Autoreqprov: on |
|
26 |
Prereq: /sbin/ldconfig |
|
27 |
||
28 |
#BuildPreReq: openssl-devel >= 0.9.8a, ncurses-devel |
|
29 |
#BuildRequires: openssl-devel >= %{openssl_version} |
|
30 |
||
31 |
%description |
|
32 |
GLib-based helper library for clients and connection managers |
|
33 |
||
34 |
%package devel |
|
35 |
Summary: A GLib-based helper library for clients and connection managers |
|
36 |
Group: System/GUI/GNOME |
|
37 |
Autoreqprov: on |
|
38 |
Requires: %name = %version |
|
39 |
||
40 |
%prep |
|
41 |
%setup -q |
|
42 |
%patch1 -p1 |
|
43 |
||
44 |
%build |
|
45 |
%ifos linux |
|
46 |
if [ -x /usr/bin/getconf ]; then |
|
47 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
48 |
fi |
|
49 |
%else |
|
50 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
51 |
%endif |
|
52 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
53 |
CPUS=1 |
|
54 |
fi |
|
55 |
||
14724 | 56 |
rm -rf m4/lt*.m4 |
57 |
rm -rf m4/libtool.m4 |
|
58 |
||
14661 | 59 |
CFLAGS="$RPM_OPT_FLAGS" \ |
60 |
./autogen.sh --prefix=%{_prefix} \ |
|
61 |
--mandir=%{_mandir} \ |
|
62 |
--libdir=%{_libdir} \ |
|
63 |
--sysconfdir=%{_sysconfdir} |
|
64 |
||
65 |
make -j $CPUS |
|
66 |
||
67 |
%install |
|
68 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
69 |
rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la |
|
70 |
rm -rf $RPM_BUILD_ROOT%{_libdir}/*.a |
|
71 |
||
72 |
%clean |
|
73 |
rm -rf $RPM_BUILD_ROOT |
|
74 |
||
75 |
%post -p /sbin/ldconfig |
|
76 |
%postun -p /sbin/ldconfig |
|
77 |
||
78 |
%files |
|
79 |
%defattr(-, root, root) |
|
80 |
%{_libdir}/lib*.so.* |
|
81 |
%{_datadir}/gtk-doc/*/*/* |
|
82 |
||
83 |
%files devel |
|
84 |
%defattr(-, root, root) |
|
85 |
%{_libdir}/pkgconfig/*.pc |
|
86 |
%attr(755, root, root) %{_includedir}/telepathy-1.0/* |
|
87 |
||
88 |
%changelog |
|
14724 | 89 |
* Tus Dec 08 2008 - [email protected] |
90 |
- bump to 0.7.19 |
|
14661 | 91 |
* Wed Nov 05 2008 - [email protected] |
92 |
- Initial spec-file created |