File libidl.spec of Package libidl

#
# spec file for package libidl (Version 0.8.11)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           libidl
%define _name libIDL
BuildRequires:  bison flex glib2-devel indent
Summary:        IDL Parsing Library
Version:        0.8.11
Release:        1
Source:         %{_name}-%{version}.tar.bz2
License:        LGPL v2.1 or later
Group:          System/Libraries
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
AutoReqProv:    on

%description
LibIDL is a small library for creating parse trees of CORBA
v2.2-compliant Interface Definition Language (IDL) files. IDL is a
specification for defining interfaces that can be used between
different CORBA implementations.



Authors:
--------
    Andrew T. Veliath <andrewtv@usa.net>

%package devel
License:        LGPL v2.1 or later
Summary:        Include Files and Libraries mandatory for Development.
Group:          Development/Languages/Other
Requires:       %{name} = %{version} glib2-devel
PreReq:         %install_info_prereq

%description devel
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.



Authors:
--------
    Andrew T. Veliath <andrewtv@usa.net>

%prep
%setup -q -n %{_name}-%{version}

%build
autoreconf -f -i
%configure\
	--disable-static \
	--with-pic
make %{?jobs:-j%jobs}

%install
make install DESTDIR=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}
mkdir $RPM_BUILD_ROOT%{_datadir}/idl

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%post devel
%install_info --info-dir=%{_infodir} %{_infodir}/%{_name}2.info.gz

%postun devel
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{_name}2.info.gz

%files
%defattr(-,root,root)
%doc COPYING ChangeLog AUTHORS README* NEWS BUGS tstidl.c
%{_libdir}/lib*.so.*
# generic directory for idl files
%dir %{_datadir}/idl

%files devel
%defattr(-,root,root)
%{_bindir}/%{_name}-config-2
%{_includedir}/*
%doc %{_infodir}/%{_name}2.info.gz
%{_libdir}/pkgconfig/*.pc
%{_libdir}/lib*.*a
%{_libdir}/lib*.so

%changelog
* Thu Aug 28 2008 maw@suse.de
- Update to version 1.8.11:
  + Bug fixed: bgo#474641.
* Thu Apr 10 2008 ro@suse.de
- added baselibs.conf file to build xxbit packages
  for multilib support
* Tue Jan 29 2008 rodrigo@suse.de
- Update to version 0.8.10:
  * Fix the build with glib 2.15
  * Ignore "command-line" in addition to "command line" when handling
  output from cpp
* Fri Jan 04 2008 crrodriguez@suse.de
- remove unneded buildrequires on popt-devel (not used anymore)
- fix misplaced PreReq tag
* Mon Sep 17 2007 gekker@suse.de
- Update to version 0.8.9
  * Add missing braces (Dominique Quatravaux)
* Thu Mar 29 2007 meissner@suse.de
- buildrequires flex,bison
* Thu Mar 22 2007 maw@suse.de
- Update to version 0.8.8
- b.g.o bugs fixed, including 122032.
* Tue Feb 13 2007 sbrabec@suse.cz
- Do not build unusable static libraries (#238552#c17).
* Mon Dec 11 2006 sbrabec@suse.cz
- Spec file cleanup.
* Fri Dec 08 2006 maw@suse.de
- Move to /usr.
* Fri Aug 18 2006 jhargadon@suse.de
- update to version 0.8.7
- Clean up some dead code
- Fix compiler warning
- Don't use deprecated function g_basename()
- Handle IDLN_WIDE_CHAR, IDLN_WIDE_STRING and IDLN_SRCFILE
  in IDL_tree_free()/IDL_tree_free_real()
- Wind32 fixes
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Dec 20 2005 kukuk@suse.de
- Fix filelist
* Mon Aug 01 2005 gekker@suse.de
- Update to version 0.8.6
* Wed Jun 01 2005 sbrabec@suse.cz
- Fixed devel requirements.
* Thu Feb 10 2005 gekker@suse.de
- Update version to 0.8.5
* Wed Nov 17 2004 gekker@suse.de
- Update version to 0.8.4
* Mon Mar 15 2004 sbrabec@suse.cz
- FHS 2.3 fix (mandir, infodir, #35821).
* Tue Mar 02 2004 sbrabec@suse.cz
- Fixed AC_DEFUN underquoting (bug #34763).
* Thu Feb 05 2004 hhetter@suse.de
- updated to version 0.8.3 [GNOME 2.4.2]
* Sun Jan 11 2004 adrian@suse.de
- add %%run_ldconfig
* Tue Jul 15 2003 sbrabec@suse.cz
- GNOME prefix change to /opt/gnome.
* Thu Jun 12 2003 sbrabec@suse.cz
- Updated to version 0.8.2.
* Sun Jun 01 2003 ro@suse.de
- fix info page installation
* Tue Jul 02 2002 hhetter@suse.de
- no longer require texinfo
* Tue Jun 04 2002 ro@suse.de
- fix requires for devel package
* Tue Jun 04 2002 hhetter@suse.de
- updated to 0.8.0 source frozen release
  * link against glib2
  * build fixes
* Wed May 08 2002 meissner@suse.de
- %%_lib changes
* Tue Apr 09 2002 hhetter@suse.de
- update to version 0.7.4 [gnome desktop beta3]
* Thu Jan 31 2002 hhetter@suse.de
- updated to version 0.7.3 [gnome desktop alpha2]
  * lexer.l: gcc 3.0 update
* Fri Jan 11 2002 hhetter@suse.de
- updated to version 0.7.2:
  * portability fixes
  * fix --version and --cflags output
  * build fixes
- specfile cleanup
* Wed Dec 12 2001 hhetter@suse.de
- added pkgconfig files to devel package
* Wed Dec 12 2001 hhetter@suse.de
- initial SuSE release for GNOME 2.0 platform