author | chrisk |
Mon, 31 Aug 2009 12:02:58 +0000 | |
changeset 16427 | 63d81b085adb |
parent 13227 | 367c74a9a733 |
child 16434 | f21f22550fe9 |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package startup-notification |
|
3 |
# |
|
4 |
# Copyright (c) 2005 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 |
# |
|
13227
367c74a9a733
Changes ownership of spec files and patches from alo to padraig
padraig
parents:
12147
diff
changeset
|
8 |
# Owner: padraig |
9397 | 9 |
# |
16427 | 10 |
|
11 |
%define OSR gnome.org:0 |
|
12 |
||
9397 | 13 |
Name: startup-notification |
14 |
License: LGPL |
|
15 |
Group: System/Libraries |
|
9590 | 16 |
Version: 0.9 |
9397 | 17 |
Release: 1 |
18 |
Distribution: Java Desktop System |
|
19 |
Vendor: Sun Microsystems, Inc. |
|
20 |
Summary: Startup Notification Library |
|
9590 | 21 |
Source: http://ftp.gnome.org/pub/GNOME/sources/startup-notification/0.9/%{name}-%{version}.tar.bz2 |
9397 | 22 |
URL: http://www.gnome.org |
23 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
24 |
Docdir: %{_defaultdocdir}/%{name} |
|
25 |
Autoreqprov: on |
|
26 |
Prereq: /sbin/ldconfig |
|
27 |
||
28 |
%description |
|
29 |
The startup-notification library contains a reference implementation of the startup notification |
|
30 |
protocol, as defined on http://www.freedesktop.org. |
|
31 |
||
32 |
%package devel |
|
33 |
Summary: Startup Notification Development Library |
|
34 |
Group: Development/Libraries |
|
35 |
||
36 |
%description devel |
|
37 |
The startup-notification library contains a reference implementation of the startup notification |
|
38 |
protocol, as defined on http://www.freedesktop.org. |
|
39 |
||
40 |
%prep |
|
41 |
%setup -q |
|
42 |
||
43 |
%build |
|
44 |
%ifos linux |
|
45 |
if [ -x /usr/bin/getconf ]; then |
|
46 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
47 |
fi |
|
48 |
%else |
|
49 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
50 |
%endif |
|
51 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
52 |
CPUS=1 |
|
53 |
fi |
|
54 |
||
55 |
CFLAGS="$RPM_OPT_FLAGS " \ |
|
56 |
./configure --prefix=%{_prefix} \ |
|
57 |
--sysconfdir=%{_sysconfdir} |
|
58 |
make -j $CPUS |
|
59 |
||
60 |
%install |
|
61 |
make DESTDIR=$RPM_BUILD_ROOT install |
|
62 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a |
|
63 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la |
|
64 |
||
12147 | 65 |
#%check |
66 |
make check |
|
67 |
||
9397 | 68 |
%post |
69 |
/sbin/ldconfig |
|
70 |
||
71 |
%postun |
|
72 |
/sbin/ldconfig |
|
73 |
||
74 |
%clean |
|
75 |
rm -rf $RPM_BUILD_ROOT |
|
76 |
||
77 |
%files |
|
78 |
%defattr(-,root,root) |
|
79 |
%{_libdir}/libstartup-notification*so.* |
|
80 |
||
81 |
%files devel |
|
82 |
%defattr(-, root, root) |
|
83 |
%{_libdir}/pkgconfig/*.pc |
|
84 |
%{_libdir}/libstartup-notification*so |
|
85 |
%{_includedir}/startup-notification-1.0/* |
|
86 |
||
87 |
%changelog |
|
12147 | 88 |
* Wed Apr 16 2008 - [email protected] |
89 |
- Add 'make check' call after %install. |
|
90 |
||
9590 | 91 |
* Mon Mar 20 2007 - [email protected] |
92 |
- Bump to 0.9. Remove upstream patch, 01-__FUNCTION__. |
|
93 |
||
9397 | 94 |
* Fri May 06 2005 - [email protected] |
95 |
- Bump to 0.8 |
|
96 |
||
97 |
* Wed Jul 07 2004 - [email protected] |
|
98 |
- ported to rpm4 |
|
99 |
||
100 |
* Wed Jul 07 2004 - [email protected] |
|
101 |
- added "-j $CPUS" to make to speed up builds |
|
102 |
||
103 |
* Sun Feb 15 2004 - <[email protected]> |
|
104 |
- add patch to change __FUNCTION__ to __func__ for Forte compatibility |
|
105 |
||
106 |
* Thu Aug 14 2003 - <[email protected]> |
|
107 |
- move lib*.so to -devel, remove *.a, *.la |
|
108 |
||
109 |
* Thu May 13 2003 - [email protected] |
|
110 |
- Created new spec file for startup-notification |
|
111 |