19693
|
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
|
19211
|
11 |
Version: 0.8.5
|
|
12 |
Release: 1
|
19693
|
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
|
|
56 |
%endif
|
4127
|
57 |
%endif
|
4121
|
58 |
|
|
59 |
|
4455
|
60 |
|
9
|
61 |
%build
|
3263
|
62 |
%ifos linux
|
|
63 |
if [ -x /usr/bin/getconf ]; then
|
|
64 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
65 |
fi
|
|
66 |
%else
|
3846
|
67 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
3263
|
68 |
%endif
|
|
69 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
70 |
CPUS=1
|
|
71 |
fi
|
|
72 |
|
4121
|
73 |
CONFLAGS="--prefix=%{_prefix} --infodir=%{_infodir}"
|
|
74 |
|
|
75 |
%ifos solaris
|
4271
|
76 |
%ifarch amd64 sparcv9
|
4121
|
77 |
CPUS=$(($CPUS*4))
|
|
78 |
|
|
79 |
cd ../libIDL-%version-64
|
|
80 |
|
|
81 |
export CFLAGS="$CFLAGS64"
|
|
82 |
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH64"
|
4365
|
83 |
export CC=${CC64:-$CC}
|
|
84 |
save_PATH="$PATH"
|
|
85 |
ccdir=`dirname $CC`
|
|
86 |
export PATH=$ccdir:$PATH
|
4121
|
87 |
|
|
88 |
./configure $CONFLAGS \
|
|
89 |
--bindir=%{_bindir}/%{_arch64} \
|
|
90 |
--libdir=%{_libdir}/%{_arch64} \
|
|
91 |
--libexecdir=%{_libexecdir}/%{_arch64} \
|
|
92 |
--sysconfdir=%{_sysconfdir}/%{_arch64}
|
|
93 |
|
|
94 |
make -j $CPUS
|
|
95 |
|
|
96 |
cd ../libIDL-%version
|
|
97 |
|
4365
|
98 |
export CFLAGS="$CFLAGS32"
|
|
99 |
export RPM_OPT_FLAGS="$CFLAGS"
|
4121
|
100 |
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH32"
|
4365
|
101 |
export CC=${CC32:-$CC}
|
|
102 |
export PATH="$save_PATH"
|
4121
|
103 |
|
|
104 |
%endif
|
4127
|
105 |
%endif
|
4121
|
106 |
|
176
|
107 |
CFLAGS="$RPM_OPT_FLAGS" \
|
4121
|
108 |
./configure $CONFLAGS \
|
|
109 |
--sysconfdir=%{_sysconfdir}
|
3263
|
110 |
make -j $CPUS
|
9
|
111 |
|
|
112 |
%install
|
4121
|
113 |
|
|
114 |
%ifos solaris
|
4271
|
115 |
%ifarch amd64 sparcv9
|
4121
|
116 |
cd ../libIDL-%version-64
|
|
117 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
118 |
cd ../libIDL-%version
|
|
119 |
%endif
|
4127
|
120 |
%endif
|
4121
|
121 |
|
176
|
122 |
make DESTDIR=$RPM_BUILD_ROOT install
|
1432
|
123 |
install -d $RPM_BUILD_ROOT/usr/share/man/man3
|
|
124 |
install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT/usr/share/man/man3
|
3628
|
125 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
126 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
9
|
127 |
|
|
128 |
%clean
|
|
129 |
rm -rf $RPM_BUILD_ROOT
|
|
130 |
|
176
|
131 |
%post
|
|
132 |
/sbin/ldconfig
|
156
|
133 |
|
176
|
134 |
%postun
|
|
135 |
/sbin/ldconfig
|
156
|
136 |
|
9
|
137 |
%files
|
|
138 |
%defattr(-,root,root)
|
1058
|
139 |
%{_libdir}/*.so.*
|
9
|
140 |
|
|
141 |
%files devel
|
|
142 |
%defattr(-,root,root)
|
156
|
143 |
%{_bindir}/*
|
|
144 |
%{_libdir}/pkgconfig/*.pc
|
1058
|
145 |
%{_libdir}/*.so
|
156
|
146 |
%{_includedir}/*
|
1432
|
147 |
%{_mandir}/man3/*
|
3628
|
148 |
%{_infodir}/*.info.gz
|
9
|
149 |
|
|
150 |
%changelog
|
19212
|
151 |
* Fri May 06 2005 - [email protected]
|
19211
|
152 |
- Bump to 0.8.5
|
|
153 |
|
4365
|
154 |
* Fri Oct 29 2004 - [email protected]
|
|
155 |
- use $CC64 for the 64-bit build if defined
|
|
156 |
|
4121
|
157 |
* Sat Oct 2 2004 - [email protected]
|
|
158 |
- Create 64bit libraries for Solaris
|
|
159 |
|
3628
|
160 |
* Thu Jul 08 2004 - [email protected]
|
|
161 |
- ported to rpm4
|
|
162 |
|
3263
|
163 |
* Wed Jul 07 2004 - [email protected]
|
|
164 |
- added "-j $CPUS" to make to speed up builds
|
|
165 |
|
1551
|
166 |
* Wed Jan 28 2004 - <[email protected]> 0.8.3-1
|
|
167 |
- Upgrade to 0.8.3
|
|
168 |
|
1432
|
169 |
* Mon Dec 15 2003 - <[email protected]>
|
|
170 |
- Add back the man pages.
|
|
171 |
|
1058
|
172 |
* Thu Aug 14 2003 - <[email protected]>
|
|
173 |
- move lib*.so to -devel, remove *.a, *.la
|
|
174 |
|
912
|
175 |
* Fri Aug 01 2003 - <[email protected]> 0.8.2-1
|
|
176 |
- Upgrade to 0.8.2
|
|
177 |
|
|
178 |
* Tue May 20 2003 - <[email protected]>
|
156
|
179 |
- initial Sun release
|