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