author | fujiwara |
Thu, 19 Jan 2006 06:23:41 +0000 | |
changeset 6613 | 2643799d1f8e |
parent 6215 | 2653e6560475 |
child 8564 | df62c23d2955 |
permissions | -rw-r--r-- |
5518 | 1 |
# |
2 |
# spec file for package libIDL |
|
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 |
# |
|
9 | 8 |
Name: libIDL |
156 | 9 |
License: LGPL |
10 |
Group: System/Libraries |
|
5529
9133a916e53a
* *.spec: More bumping to latest versions for 2.11 work.
dc144907
parents:
5518
diff
changeset
|
11 |
Version: 0.8.6 |
5518 | 12 |
Release: 1 |
13 |
Distribution: Java Desktop System |
|
575 | 14 |
Vendor: Sun Microsystems, Inc. |
182 | 15 |
Summary: IDL parsing library |
1642 | 16 |
Source: http://ftp.gnome.org/pub/GNOME/sources/libIDL/0.8/libIDL-%{version}.tar.bz2 |
1432 | 17 |
Source1: libIDL-2.3.gz |
176 | 18 |
URL: http://www.gnome.org |
19 |
Docdir: %{_defaultdocdir}/doc |
|
9 | 20 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
156 | 21 |
AutoReqProv: on |
1080 | 22 |
Prereq: /sbin/ldconfig |
156 | 23 |
|
3628 | 24 |
%define glib2_version 2.4.0 |
182 | 25 |
%define pkgconfig_version 0.15.0 |
26 |
||
27 |
Requires: glib2 >= %{glib2_version} |
|
28 |
BuildRequires: glib2-devel >= %{glib2_version} |
|
29 |
BuildRequires: pkgconfig >= %{pkgconfig_version} |
|
9 | 30 |
|
31 |
%description |
|
32 |
libIDL is a small library for creating parse trees of CORBA v2.2 |
|
33 |
compliant Interface Definition Language (IDL) files, which is a |
|
34 |
specification for defining interfaces which can be used between |
|
35 |
different CORBA implementations. |
|
36 |
||
37 |
%package devel |
|
182 | 38 |
Summary: IDL parsing library development libraries and header files. |
39 |
Group: Development/Languages/Other |
|
176 | 40 |
Requires: %{name} = %{version} |
182 | 41 |
Requires: glib2-devel >= %{glib2_version} |
9 | 42 |
|
43 |
%description devel |
|
44 |
libIDL is a small library for creating parse trees of CORBA v2.2 |
|
45 |
compliant Interface Definition Language (IDL) files, which is a |
|
46 |
specification for defining interfaces which can be used between |
|
47 |
different CORBA implementations. |
|
48 |
||
49 |
%prep |
|
50 |
%setup -q |
|
51 |
||
4121 | 52 |
%ifos solaris |
4271 | 53 |
%ifarch amd64 sparcv9 |
4121 | 54 |
cd .. |
55 |
cp -rp libIDL-%{version} libIDL-%{version}-64 |
|
6613 | 56 |
cd libIDL-%{version} |
4121 | 57 |
%endif |
4127 | 58 |
%endif |
4121 | 59 |
|
60 |
||
4455 | 61 |
|
9 | 62 |
%build |
3263 | 63 |
%ifos linux |
64 |
if [ -x /usr/bin/getconf ]; then |
|
65 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
66 |
fi |
|
67 |
%else |
|
3846 | 68 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
3263 | 69 |
%endif |
70 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
71 |
CPUS=1 |
|
72 |
fi |
|
73 |
||
4121 | 74 |
CONFLAGS="--prefix=%{_prefix} --infodir=%{_infodir}" |
75 |
||
76 |
%ifos solaris |
|
4271 | 77 |
%ifarch amd64 sparcv9 |
4121 | 78 |
CPUS=$(($CPUS*4)) |
79 |
||
80 |
cd ../libIDL-%version-64 |
|
81 |
||
82 |
export CFLAGS="$CFLAGS64" |
|
83 |
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH64" |
|
4365 | 84 |
export CC=${CC64:-$CC} |
85 |
save_PATH="$PATH" |
|
86 |
ccdir=`dirname $CC` |
|
87 |
export PATH=$ccdir:$PATH |
|
4121 | 88 |
|
89 |
./configure $CONFLAGS \ |
|
90 |
--bindir=%{_bindir}/%{_arch64} \ |
|
91 |
--libdir=%{_libdir}/%{_arch64} \ |
|
92 |
--libexecdir=%{_libexecdir}/%{_arch64} \ |
|
93 |
--sysconfdir=%{_sysconfdir}/%{_arch64} |
|
94 |
||
95 |
make -j $CPUS |
|
96 |
||
97 |
cd ../libIDL-%version |
|
98 |
||
4365 | 99 |
export CFLAGS="$CFLAGS32" |
100 |
export RPM_OPT_FLAGS="$CFLAGS" |
|
4121 | 101 |
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH32" |
4365 | 102 |
export CC=${CC32:-$CC} |
103 |
export PATH="$save_PATH" |
|
4121 | 104 |
|
105 |
%endif |
|
4127 | 106 |
%endif |
4121 | 107 |
|
176 | 108 |
CFLAGS="$RPM_OPT_FLAGS" \ |
4121 | 109 |
./configure $CONFLAGS \ |
110 |
--sysconfdir=%{_sysconfdir} |
|
3263 | 111 |
make -j $CPUS |
9 | 112 |
|
113 |
%install |
|
4121 | 114 |
|
115 |
%ifos solaris |
|
4271 | 116 |
%ifarch amd64 sparcv9 |
4121 | 117 |
cd ../libIDL-%version-64 |
118 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
6215 | 119 |
rm -f $RPM_BUILD_ROOT%{_bindir}/%{_arch64}/libIDL-config-2 |
4121 | 120 |
cd ../libIDL-%version |
121 |
%endif |
|
4127 | 122 |
%endif |
4121 | 123 |
|
176 | 124 |
make DESTDIR=$RPM_BUILD_ROOT install |
1432 | 125 |
install -d $RPM_BUILD_ROOT/usr/share/man/man3 |
126 |
install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT/usr/share/man/man3 |
|
3628 | 127 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a |
128 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la |
|
9 | 129 |
|
130 |
%clean |
|
131 |
rm -rf $RPM_BUILD_ROOT |
|
132 |
||
176 | 133 |
%post |
134 |
/sbin/ldconfig |
|
156 | 135 |
|
176 | 136 |
%postun |
137 |
/sbin/ldconfig |
|
156 | 138 |
|
9 | 139 |
%files |
140 |
%defattr(-,root,root) |
|
1058 | 141 |
%{_libdir}/*.so.* |
9 | 142 |
|
143 |
%files devel |
|
144 |
%defattr(-,root,root) |
|
156 | 145 |
%{_bindir}/* |
146 |
%{_libdir}/pkgconfig/*.pc |
|
1058 | 147 |
%{_libdir}/*.so |
156 | 148 |
%{_includedir}/* |
1432 | 149 |
%{_mandir}/man3/* |
3628 | 150 |
%{_infodir}/*.info.gz |
9 | 151 |
|
152 |
%changelog |
|
5529
9133a916e53a
* *.spec: More bumping to latest versions for 2.11 work.
dc144907
parents:
5518
diff
changeset
|
153 |
* Mon Aug 15 2005 - [email protected] |
9133a916e53a
* *.spec: More bumping to latest versions for 2.11 work.
dc144907
parents:
5518
diff
changeset
|
154 |
- Bump to 0.8.6. |
9133a916e53a
* *.spec: More bumping to latest versions for 2.11 work.
dc144907
parents:
5518
diff
changeset
|
155 |
|
5518 | 156 |
* Fri May 06 2005 - [email protected] |
157 |
- Bump to 0.8.5 |
|
158 |
||
4365 | 159 |
* Fri Oct 29 2004 - [email protected] |
160 |
- use $CC64 for the 64-bit build if defined |
|
161 |
||
4121 | 162 |
* Sat Oct 2 2004 - [email protected] |
163 |
- Create 64bit libraries for Solaris |
|
164 |
||
3628 | 165 |
* Thu Jul 08 2004 - [email protected] |
166 |
- ported to rpm4 |
|
167 |
||
3263 | 168 |
* Wed Jul 07 2004 - [email protected] |
169 |
- added "-j $CPUS" to make to speed up builds |
|
170 |
||
1551 | 171 |
* Wed Jan 28 2004 - <[email protected]> 0.8.3-1 |
172 |
- Upgrade to 0.8.3 |
|
173 |
||
1432 | 174 |
* Mon Dec 15 2003 - <[email protected]> |
175 |
- Add back the man pages. |
|
176 |
||
1058 | 177 |
* Thu Aug 14 2003 - <[email protected]> |
178 |
- move lib*.so to -devel, remove *.a, *.la |
|
179 |
||
912 | 180 |
* Fri Aug 01 2003 - <[email protected]> 0.8.2-1 |
181 |
- Upgrade to 0.8.2 |
|
182 |
||
183 |
* Tue May 20 2003 - <[email protected]> |
|
156 | 184 |
- initial Sun release |