%define version 4.1.6 %define release %mkrel 4 %define name omniorb %define lib_name_orig lib%{name} %define lib_major 4 %define lib_name %mklibname %{name} %{lib_major} %define develname %mklibname -d %{name} %{expand:%%define py_ver %(python -V 2>&1| awk '{print $2}'|cut -d. -f1-2)} %define python_compile_opt python -O -c "import compileall; compileall.compile_dir('.')" %define python_compile python -c "import compileall; compileall.compile_dir('.')" # virtual (ie empty) package to enforce naming convention Summary: Object Request Broker (ORB) from AT&T (CORBA 2.3) Name: %{name} Version: %{version} Release: %{release} License: GPLv2 Group: System/Libraries Source0: http://prdownloads.sourceforge.net/sourceforge/omniorb/omniORB-%{version}.tar.bz2 Source1: omniEvents-2_4_0-src.tar.bz2 Source2: omniORB.cfg Source3: omninames # Fix format-security build error Patch0: cccp.c.patch URL: http://omniorb.sourceforge.net/ BuildRequires: perl BuildRequires: tcl BuildRequires: tk BuildRequires: glibc-devel BuildRequires: python >= %{py_ver} BuildRequires: python-devel >= %{py_ver} BuildRequires: openssl-devel Requires(pre): rpm-helper Requires(preun): rpm-helper Provides: corba Requires: %{lib_name} = %version %description omniORB is an Object Request Broker (ORB) from AT&T which implements specification 2.3 of the Common Object Request Broker Architecture (CORBA). Warning: Before release 4.0.0, it contains OmnyORBpy, now it is a separate package. # main package (contains *.so.[major].*, and binaries) %package -n %{lib_name} Summary: Object Request Broker (ORB) from AT&T (CORBA 2.3) Group: System/Libraries Provides: %{lib_name_orig} = %{version}-%{release} %description -n %{lib_name} This package contains the library needed to run programs dynamically linked with %{lib_name_orig}. Warning: Before release 4.0.0, it contains OmnyORBpy, now it is a separate package. %package -n %{develname} Summary: Header files and libraries needed for %{name} development Group: Development/C++ Requires: %{lib_name} = %{version} Provides: %{lib_name_orig}-devel = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} Obsoletes: %{_lib}omniorbpy-devel < %{version}-%{release} Obsoletes: %{_lib}omniorb4-devel < %{version}-%{release} Obsoletes: %{_lib}omniorb-devel < %{version}-%{release} %description -n %{develname} This package includes the header files and libraries needed for developing programs using %{name}. Warning: Before release 4.0.0, it contains OmnyORBpy, now it is a separate package. # docs and examples are in a separate package %package -n %{name}-doc Summary: Documentation for omniORB Group: Development/C++ Requires: %{name} = %{version} Provides: %{lib_name_orig}-doc-%{version}-%{release} Obsoletes: %{lib_name_orig}-doc < %{version}-%{release} Obsoletes: libomniorbpy-doc < %{version}-%{release} %description -n %{name}-doc This package includes developers doc including examples. Warning: Before release 4.0.0, it contains OmnyORBpy, now it is a separate package. %package -n python-omniidl Group: Development/Python Summary: OmniOrb IDL compiler Conflicts: %{lib_name}-devel < 4.1.0 Obsoletes: %{_lib}omniorbpy2 < %{version}-%{release} %description -n python-omniidl OmniOrb IDL compiler %prep %setup -n omniORB-%{version} -q -a1 %patch0 -p0 %build # TODO Don't think we need static libs %configure2_5x --with-openssl=%{_prefix} \ --disable-static %make %install %makeinstall_std ###### directories ##### install -m 755 -d %buildroot%{_mandir}/{man1,man5} install -m 755 -d %buildroot%_sysconfdir/init.d install -m 755 -d %buildroot/var/omninames/ ##### copy files ##### install -m 644 %{SOURCE2} %buildroot%_sysconfdir install -m 755 %{SOURCE3} %buildroot%_sysconfdir/init.d/omninames install -m 644 man/man1/* %buildroot%{_mandir}/man1/ #install -m 644 man/man5/* %%buildroot%%{_mandir}/man5/ mkdir -p %buildroot/var/log/omninames chmod 755 %buildroot/%{_includedir}/{omnithread,COS,omniORB4,omniORB4/internal} mkdir -p %{buildroot}%{py_platsitedir}/%{name} pushd %{buildroot}%{py_platsitedir}/%{name} %python_compile_opt %python_compile #install *.pyc *.pyo %%{buildroot}%%{py_platsitedir}/%%{name} %post %_post_service omninames %preun %_preun_service omninames %files %doc CREDITS ReleaseNotes.txt %_bindir/* %exclude %_bindir/omniidl* %config(noreplace) %_sysconfdir/*.cfg %_sysconfdir/init.d/* %attr(644,root,man) %{_mandir}/man1/* %dir %attr(754,root,root) /var/log/omninames %files -n %{lib_name} %{_libdir}/*.so.* %files -n %{develname} %doc README* # TODO Don't think we need static libs #%%{_libdir}/*.a %{_libdir}/*.so %{_includedir}/COS/*.h %{_includedir}/COS/*.hh %{_includedir}/omniORB4/*.h %{_includedir}/omniORB4/*.hh %{_includedir}/omniORB4/internal/*.h %{_includedir}/omniconfig.h %{_includedir}/omnithread.h %{_includedir}/omnithread/* %_libdir/pkgconfig/* %files -n python-omniidl %defattr(-,root,root,755) %_bindir/omniidl* %_datadir/idl/omniORB/*.idl %_datadir/idl/omniORB/COS/*.idl %dir %py_puresitedir/omniidl %py_puresitedir/omniidl/* %dir %py_puresitedir/omniidl_be %py_puresitedir/omniidl_be/*.py* %dir %py_puresitedir/omniidl_be/cxx %py_puresitedir/omniidl_be/cxx/*.py %py_puresitedir/omniidl_be/cxx/*.pyc %py_puresitedir/omniidl_be/cxx/header %py_puresitedir/omniidl_be/cxx/skel %py_puresitedir/omniidl_be/cxx/dynskel %py_puresitedir/omniidl_be/cxx/impl %py_platsitedir/_omniidlmodule.so %_libdir/python%{py_ver}/site-packages/_omniidlmodule.so.* %files -n %{name}-doc %doc doc/* %changelog * Sun Jan 13 2013 umeabot <umeabot> 4.1.6-4.mga3 + Revision: 361846 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Mon Apr 23 2012 barjac <barjac> 4.1.6-3.mga2 + Revision: 233123 - Added lsb header to init script * Tue Jan 03 2012 barjac <barjac> 4.1.6-2.mga2 + Revision: 189896 - Fix typo * Tue Jan 03 2012 barjac <barjac> 4.1.6-1.mga2 + Revision: 189858 - New version, removed static, cleaned, removed old patches, added format security patch - imported package omniorb