1 | %define version 0.8.0 |
---|
2 | %define release SNAP |
---|
3 | |
---|
4 | Summary: IDL parsing library |
---|
5 | Name: libIDL |
---|
6 | Version: %{version} |
---|
7 | Release: %{release} |
---|
8 | Source: %{name}-%PACKAGE_VERSION.tar.gz |
---|
9 | Vendor: Andrew T. Veliath <andrewtv@usa.net> |
---|
10 | Copyright: LGPL |
---|
11 | Group: Libraries |
---|
12 | Prereq: /sbin/install-info |
---|
13 | Prefix: /usr |
---|
14 | Docdir: %prefix/doc |
---|
15 | BuildRoot: /var/tmp/%{name}-%{version}-root |
---|
16 | |
---|
17 | %changelog |
---|
18 | * Fri Oct 12 2001 Ross Golder <ross@golder.org> |
---|
19 | - Updated filenames and paths for libIDL2 |
---|
20 | * Mon Sep 24 2001 Mark McLoughlin <mark@skynet.ie> |
---|
21 | - use LIBIDL_VERSION instead of LIBIDL_LIBRARY_VERSION |
---|
22 | * Fri Nov 28 1998 Andrew T. Veliath <andrewtv@usa.net> |
---|
23 | - Initial version |
---|
24 | |
---|
25 | %description |
---|
26 | libIDL is a small library for creating parse trees of CORBA v2.2 |
---|
27 | compliant Interface Definition Language (IDL) files, which is a |
---|
28 | specification for defining interfaces which can be used between |
---|
29 | different CORBA implementations. |
---|
30 | |
---|
31 | %package devel |
---|
32 | Summary: Header files and libraries needed for libIDL development |
---|
33 | Group: Development/Libraries |
---|
34 | Requires: %{name} = %{version} |
---|
35 | |
---|
36 | %description devel |
---|
37 | This package includes the header files and libraries needed for |
---|
38 | developing programs using libIDL. |
---|
39 | |
---|
40 | %prep |
---|
41 | %setup |
---|
42 | |
---|
43 | %build |
---|
44 | CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr |
---|
45 | make |
---|
46 | |
---|
47 | %install |
---|
48 | rm -rf $RPM_BUILD_ROOT |
---|
49 | make install prefix=$RPM_BUILD_ROOT/%prefix |
---|
50 | gzip -9 $RPM_BUILD_ROOT/%prefix/info/*.info |
---|
51 | |
---|
52 | %post -p /sbin/ldconfig |
---|
53 | %postun -p /sbin/ldconfig |
---|
54 | |
---|
55 | %post devel |
---|
56 | /sbin/install-info %prefix/info/libIDL2.info.gz %prefix/info/dir |
---|
57 | |
---|
58 | %preun devel |
---|
59 | if [ $1 = 0 ]; then |
---|
60 | /sbin/install-info --delete %prefix/info/libIDL2.info.gz %prefix/info/dir |
---|
61 | fi |
---|
62 | |
---|
63 | %clean |
---|
64 | rm -rf $RPM_BUILD_ROOT |
---|
65 | |
---|
66 | %files |
---|
67 | %defattr(-,root,root) |
---|
68 | %doc COPYING ChangeLog AUTHORS |
---|
69 | %doc README* NEWS BUGS tstidl.c |
---|
70 | %prefix/lib/lib*.so.*.* |
---|
71 | |
---|
72 | %files devel |
---|
73 | %defattr(-,root,root) |
---|
74 | %prefix/bin/libIDL-config-2 |
---|
75 | #%prefix/lib/*.sh |
---|
76 | %prefix/lib/pkgconfig/*.pc |
---|
77 | %prefix/lib/lib*.a |
---|
78 | %prefix/lib/lib*.so |
---|
79 | %prefix/info/libIDL2.info.gz |
---|
80 | %prefix/include/libIDL-2.0/libIDL/*.h |
---|
81 | #%prefix/share/aclocal/* |
---|