%global snapdate 20111112 %global githash ebd4a9bf6a %define libidl_version 0.8.2-1 %define glib2_version 2.2.0 Summary: A high-performance CORBA Object Request Broker Name: mate-corba Version: 1.0.0 Release: 1.%{snapdate}git%{githash}%{?dist} Source: %{name}-%{githash}.tar.xz Group: System Environment/Daemons License: LGPLv2+ and GPLv2+ URL: https://github.com/Perberos/Mate-Desktop-Environment BuildRequires: libIDL-devel >= %{libidl_version} BuildRequires: glib2-devel >= %{glib2_version} BuildRequires: pkgconfig >= 0.14 BuildRequires: libtool BuildRequires: autoconf BuildRequires: automake BuildRequires: gtk-doc # Fedora-specific script for packaging: Source1000: mate-corba-get-snapshot.sh # To generate tarball for Source0: # sh mate-corba-snapshot.sh %{githash} # handle ref leaks in the a11y stack more gracefully Patch0: mate-corba-2.14.3-ref-leaks.patch %description mate-corba is a high-performance CORBA (Common Object Request Broker Architecture) ORB (object request broker). It allows programs to send requests and receive replies from other programs, regardless of the locations of the two programs. CORBA is an architecture that enables communication between program objects, regardless of the programming language they're written in or the operating system they run on. You will need to install this package and mate-corba-devel if you want to write programs that use CORBA technology. %package devel Summary: Development libraries, header files and utilities for mate-corba Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: indent Requires: libIDL-devel >= %{libidl_version} Requires: glib2-devel >= %{glib2_version} # we install a pc file Requires: pkgconfig # we install an automake macro Requires: automake %description devel mate-corba is a high-performance CORBA (Common Object Request Broker Architecture) ORB (object request broker) with support for the C language. This package contains the header files, libraries and utilities necessary to write programs that use CORBA technology. %prep %setup -q -n %{name}-%{githash} %patch0 -p1 -b .ref-leaks %build ## the shipped libtool is broken wrt. multilib libtoolize --force --copy aclocal autoconf %configure --disable-gtk-doc --enable-purify --disable-static make %{?_smp_mflags} %install make install DESTDIR=$RPM_BUILD_ROOT rm -f $RPM_BUILD_ROOT%{_libdir}/*.la rm -f $RPM_BUILD_ROOT%{_libdir}/matecorba-2.0/*.*a # fix multilib conflict caused by matecorba-config.h %ifarch x86_64 s390x ia64 ppc64 alpha sparc64 %define wordsize 64 %else %define wordsize 32 %endif mv $RPM_BUILD_ROOT%{_includedir}/matecorba-2.0/matecorba/matecorba-config.h \ $RPM_BUILD_ROOT%{_includedir}/matecorba-2.0/matecorba/matecorba-config-%{wordsize}.h cat >$RPM_BUILD_ROOT%{_includedir}/matecorba-2.0/matecorba/matecorba-config.h < #if __WORDSIZE == 32 # include "matecorba-config-32.h" #elif __WORDSIZE == 64 # include "matecorba-config-64.h" #else # error "unexpected value for __WORDSIZE macro" #endif #endif EOF %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc AUTHORS COPYING README TODO %{_libdir}/*.so.* %dir %{_libdir}/matecorba-2.0 %{_libdir}/matecorba-2.0/*.so* %files devel %defattr(-,root,root,-) %{_libdir}/*.so # this is needed by libbonobo %{_libdir}/libname-matecorba-server-2.a %{_libdir}/pkgconfig/* %{_bindir}/matecorba-idl-2 %{_bindir}/matecorba-typelib-dump %{_bindir}/matecorba2-config %{_bindir}/matecorba-ior-decode-2 %{_includedir}/* %{_datadir}/aclocal/* %{_datadir}/idl/matecorba-2.0 %{_bindir}/matecorba-linc-cleanup-sockets %{_datadir}/gtk-doc %changelog * Sun Nov 13 2011 Eric Smith - 1.0.0-1.20111112gitebd4a9bf6a - mate-corba spec based on Fedora 14 ORBit-2.14.19-1 spec