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