# Define pkgdocdir for releases that don't define it already %{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}} %global _perldocdir %{_docdir}/perl-qpid-messaging-%{version} %global pythonx python2 %{!?__python2:%global __python2 %{__python}} %{!?__python2:%global python2_sitelib %{python_sitelib}} %{!?__python2:%global python2_sitearch %{python_sitearch}} %{!?__python2:%global pythonx python} %global _pythondocdir %{_docdir}/%{pythonx}-qpid-messaging-%{version} # We ship a .pc file but don't need to depend on pkg-config %global __requires_exclude pkg-config %global __provides_exclude_from ^(%{python2_sitearch}/.*\\.so|%{_libdir}/.libqmf*)$ %global proton_min_ver 0.24.0 Name: qpid-cpp Version: 1.39.0 Release: 0%{?dist} Summary: Libraries for Qpid C++ client applications License: ASL 2.0 URL: http://qpid.apache.org Source0: http://www.apache.org/dist/qpid/cpp/%{version}/%{name}-%{version}.tar.gz Source1: licenses.xml %global _pkglicensedir %{_licensedir}/%{name}-%{version} %{!?_licensedir:%global license %doc} %{!?_licensedir:%global _pkglicensedir %{_pkgdocdir}} %global _rdma 0 %if (0%{?rhel} && 0%{?rhel} == 6) %ifnarch s390 s390x %global _rdma 1 %endif %else %ifnarch %{arm} %global _rdma 1 %endif %endif BuildRequires: boost-devel BuildRequires: boost-filesystem BuildRequires: boost-program-options BuildRequires: cmake BuildRequires: cyrus-sasl BuildRequires: cyrus-sasl-devel BuildRequires: cyrus-sasl-lib %if (0%{?rhel} && 0%{?rhel} < 7) BuildRequires: db4-devel %endif BuildRequires: doxygen BuildRequires: gcc-c++ BuildRequires: libaio-devel %if 0%{?fedora} BuildRequires: libdb4-cxx-devel %endif %if (0%{?rhel} && 0%{?rhel} == 7) BuildRequires: libdb-cxx-devel %endif %if %{_rdma} BuildRequires: libibverbs-devel BuildRequires: librdmacm-devel %endif BuildRequires: libuuid-devel BuildRequires: make BuildRequires: nspr-devel BuildRequires: nss-devel %if 0%{?fedora} BuildRequires: perl-devel BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl-generators %endif BuildRequires: pkgconfig BuildRequires: %{pythonx} BuildRequires: %{pythonx}-devel BuildRequires: %{pythonx}-setuptools BuildRequires: qpid-proton-c-devel >= %{proton_min_ver} BuildRequires: ruby BuildRequires: ruby-devel BuildRequires: swig %if 0%{?fedora} < 28 || (0%{?rhel} && 0%{?rhel} < 7) BuildRequires: xerces-c-devel BuildRequires: xqilla-devel %endif # Filter bogus libcqpid_perl.so() Provides, this is intentional rpm-build # feature, bug #1309664 %global __provides_exclude_from %{?__provides_exclude_from:%{__provides_exclude_from}|}^%{perl_vendorarch}/auto/.*\\.so$ %description Run-time libraries for AMQP client applications developed using Qpid C++. Clients exchange messages with an AMQP message broker using the AMQP protocol. %package client Summary: Libraries for Qpid C++ client applications %if 0%{?fedora} Provides: qpid(cpp-client)%{?_isa} = %{version}-%{release} %endif Obsoletes: %{name}-client-ssl Requires: boost-filesystem Requires: boost-program-options Requires: boost-system Requires: qpid-proton-c%{?_isa} >= %{proton_min_ver} %if (0%{?rhel} && 0%{?rhel} < 7) Requires: initscripts Requires(post):/sbin/chkconfig Requires(preun):/sbin/chkconfig Requires(preun):/sbin/service Requires(postun):/sbin/service %endif %description client Run-time libraries for AMQP client applications developed using Qpid C++. Clients exchange messages with an AMQP message broker using the AMQP protocol. %files client %defattr(-,root,root,-) %license %{_pkglicensedir}/LICENSE.txt %license %{_pkglicensedir}/licenses.xml %doc NOTICE.txt %doc README.md %doc INSTALL.txt %{_libdir}/libqpidcommon.so.* %{_libdir}/libqpidclient.so.* %{_libdir}/libqpidtypes.so.* %{_libdir}/libqpidmessaging.so.* %dir %{_libdir}/qpid %if %{_rdma} %dir %{_libdir}/qpid/client %exclude %{_libdir}/qpid/client/rdmaconnector.so* %endif %dir %{_sysconfdir}/qpid %config(noreplace) %{_sysconfdir}/qpid/qpidc.conf %post client -p /sbin/ldconfig %postun client -p /sbin/ldconfig %package client-devel Summary: Header files, documentation and testing tools for developing Qpid C++ clients %if 0%{?fedora} Provides: qpid(cpp-client-devel)%{?_isa} = %{version}-%{release} Requires: qpid(cpp-client)%{?_isa} = %{version}-%{release} %endif Requires: %{name}-client = %{version}-%{release} Requires: boost-devel Requires: boost-filesystem Requires: boost-program-options Requires: libuuid-devel Requires: %{pythonx} %description client-devel Libraries and header files for developing AMQP clients in C++ using Qpid. Qpid implements the AMQP messaging specification. %files client-devel %defattr(-,root,root,-) %dir %{_includedir}/qpid %{_includedir}/qpid/*.h %{_includedir}/qpid/qpid.i %{_includedir}/qpid/swig_perl_typemaps.i %{_includedir}/qpid/swig_python_typemaps.i %{_includedir}/qpid/swig_ruby_typemaps.i %{_includedir}/qpid/client %{_includedir}/qpid/framing %{_includedir}/qpid/sys %{_includedir}/qpid/messaging %{_includedir}/qpid/types %{_libdir}/libqpidcommon.so %{_libdir}/libqpidclient.so %{_libdir}/libqpidtypes.so %{_libdir}/libqpidmessaging.so %{_libdir}/pkgconfig/qpid.pc %{_libdir}/cmake/Qpid/QpidConfig.cmake %{_libdir}/cmake/Qpid/QpidConfigVersion.cmake %{_datadir}/qpid/examples/messaging %defattr(755,root,root,-) %{_libexecdir}/qpid/tests/qpid-perftest %{_libexecdir}/qpid/tests/qpid-topic-listener %{_libexecdir}/qpid/tests/qpid-topic-publisher %{_libexecdir}/qpid/tests/qpid-latency-test %{_libexecdir}/qpid/tests/qpid-client-test %{_libexecdir}/qpid/tests/qpid-txtest %{_libexecdir}/qpid/tests/qpid-ping %{_libexecdir}/qpid/tests/qpid-txtest2 %{_libexecdir}/qpid/tests/receiver %{_libexecdir}/qpid/tests/sender %{_bindir}/qpid-send %{_bindir}/qpid-receive %post client-devel -p /sbin/ldconfig %postun client-devel -p /sbin/ldconfig %package client-docs Summary: AMQP client development documentation BuildArch: noarch Obsoletes: %{name}-client-devel-docs %description client-docs This package includes the AMQP clients development documentation in HTML format for easy browsing. %files client-docs %defattr(-,root,root,-) %doc %{_pkgdocdir} %license %{_pkglicensedir}/LICENSE.txt %license %{_pkglicensedir}/licenses.xml %package server Summary: An AMQP message broker daemon %if 0%{?fedora} Provides: qpid(cpp-server)%{?_isa} = %{version}-%{release} Requires: qpid(cpp-client)%{?_isa} = %{version}-%{release} %endif Requires: %{name}-client = %{version}-%{release} Requires: cyrus-sasl Requires: qpid-proton-c%{?_isa} >= %{proton_min_ver} %if 0%{?fedora} || (0%{?rhel} && 0%{?rhel} >= 7) Requires(post): systemd Requires(preun): systemd Requires(postun): systemd %endif Obsoletes: %{name}-server-ssl Obsoletes: %{name}-server-devel %description server A message broker daemon that receives stores and routes messages using the open AMQP messaging protocol. %files server %defattr(-,root,root,-) %{_libdir}/libqpidbroker.so* %{_sbindir}/qpidd %if 0%{?fedora} || (0%{?rhel} && 0%{?rhel} >= 7) %{_unitdir}/qpidd.service %else %{_initrddir}/qpidd %endif %config(noreplace) %{_sysconfdir}/qpid/qpidd.conf %config(noreplace) %{_sysconfdir}/sasl2/qpidd.conf %dir %{_libdir}/qpid/daemon %{_libdir}/qpid/daemon/amqp.so %attr(755, qpidd, qpidd) %dir %{_localstatedir}/lib/qpidd %attr(755, qpidd, qpidd) %dir %{_localstatedir}/run/qpidd %doc %{_mandir}/man1/* %pre server # Only needed for Fedora & Epel builds rm -fr /var/run/qpidd # getent group qpidd >/dev/null || groupadd -r qpidd getent passwd qpidd >/dev/null || \ useradd -r -M -g qpidd -d %{_localstatedir}/lib/qpidd -s /sbin/nologin \ -c "Owner of Qpidd Daemons" qpidd exit 0 %post server %if (0%{?rhel} && 0%{?rhel} < 7) # This adds the proper /etc/rc*.d links for the script /sbin/chkconfig --add qpidd /sbin/ldconfig %else %systemd_post qpidd.service %endif %preun server %if (0%{?rhel} && 0%{?rhel} < 7) # Check that this is actual deinstallation, not just removing for upgrade. if [ $1 = 0 ]; then /sbin/service qpidd stop >/dev/null 2>&1 || : /sbin/chkconfig --del qpidd fi %else %systemd_preun qpidd.service %endif %postun server %if (0%{?rhel} && 0%{?rhel} < 7) if [ "$1" -ge "1" ]; then /sbin/service qpidd condrestart >/dev/null 2>&1 || : fi %else %systemd_postun_with_restart qpidd.service %endif /sbin/ldconfig %package server-ha Summary: Provides extensions to the AMQP message broker to provide high availability %if 0%{?fedora} Provides: qpid(cpp-server-ha)%{?_isa} = %{version}-%{release} Requires: qpid(cpp-server)%{?_isa} = %{version}-%{release} %endif Requires: %{name}-server = %{version}-%{release} Requires: %{name}-client = %{version}-%{release} Obsoletes: %{name}-server-cluster %if 0%{?fedora} || (0%{?rhel} && 0%{?rhel} >= 7) # for systemd Requires(post): systemd-units Requires(preun): systemd-units Requires(postun): systemd-units %endif %description server-ha %{summary}. %files server-ha %defattr(-,root,root,-) %if 0%{?fedora} || (0%{?rhel} && 0%{?rhel} >= 7) %{_unitdir}/qpidd-primary.service %else %{_initrddir}/qpidd-primary %endif %{_libdir}/qpid/daemon/ha.so %post server-ha %if 0%{?fedora} || (0%{?rhel} && 0%{?rhel} >= 7) %systemd_post qpidd-primary.service %else /sbin/chkconfig --add qpidd-primary %endif /sbin/ldconfig %preun server-ha %if 0%{?fedora} || (0%{?rhel} && 0%{?rhel} >= 7) %systemd_preun qpidd-primary.service %else if [ $1 = 0 ]; then /sbin/service qpidd-primary stop > /dev/null 2>&1 || : /sbin/chkconfig --del qpidd-primary fi %endif %postun server-ha %if 0%{?fedora} || (0%{?rhel} && 0%{?rhel} >= 7) %systemd_postun_with_restart qpidd-primary.service %else if [ $1 -ge 1 ]; then /sbin/service qpidd-primary condrestart >/dev/null 2>&1 || : fi %endif /sbin/ldconfig %if %{_rdma} %package client-rdma Summary: RDMA Protocol support (including Infiniband) for Qpid clients %if 0%{?fedora} Provides: qpid(cpp-client-rdma)%{?_isa} = %{version}-%{release} Requires: qpid(cpp-client)%{?_isa} = %{version}-%{release} %endif Requires: %{name}-client = %{version}-%{release} %description client-rdma A client plugin and support library to support RDMA protocols (including Infiniband) as the transport for Qpid messaging. %files client-rdma %defattr(-,root,root,-) %{_libdir}/librdmawrap.so* %{_libdir}/qpid/client/rdmaconnector.so* %config(noreplace) %{_sysconfdir}/qpid/qpidc.conf %post client-rdma -p /sbin/ldconfig %postun client-rdma -p /sbin/ldconfig %package server-rdma Summary: RDMA Protocol support (including Infiniband) for the Qpid daemon %if 0%{?fedora} Provides: qpid(cpp-server-rdma)%{?_isa} = %{version}-%{release} Requires: qpid(cpp-server)%{?_isa} = %{version}-%{release} Requires: qpid(cpp-client-rdma)%{?_isa} = %{version}-%{release} %endif Requires: %{name}-server = %{version}-%{release} Requires: %{name}-client = %{version}-%{release} Requires: %{name}-client-rdma = %{version}-%{release} %description server-rdma A Qpid daemon plugin to support RDMA protocols (including Infiniband) as the transport for AMQP messaging. %files server-rdma %defattr(-,root,root,-) %{_libdir}/qpid/daemon/rdma.so %post server-rdma -p /sbin/ldconfig %postun server-rdma -p /sbin/ldconfig %endif %if 0%{?fedora} < 28 || (0%{?rhel} && 0%{?rhel} < 7) %package server-xml Summary: XML extensions for the Qpid daemon %if 0%{?fedora} Provides: qpid(cpp-server-xml)%{?_isa} = %{version}-%{release} Requires: qpid(cpp-server)%{?_isa} = %{version}-%{release} %endif Requires: %{name}-server = %{version}-%{release} Requires: xqilla Requires: xerces-c %description server-xml A Qpid daemon plugin to support extended XML-based routing of AMQP messages. %files server-xml %{_libdir}/qpid/daemon/xml.so %post server-xml -p /sbin/ldconfig %postun server-xml -p /sbin/ldconfig %endif %package server-linearstore Summary: Red Hat persistence extension to the Qpid messaging sytem %if 0%{?fedora} Provides: qpid(cpp-server-lineastore)%{?_isa} = %{version}-%{release} Requires: qpid(cpp-server)%{?_isa} = %{version}-%{release} %endif Requires: %{name}-server = %{version}-%{release} Requires: %{name}-client = %{version}-%{release} %if 0%{?fedora} Requires: libdb4 %endif %if (0%{?rhel} && 0%{?rhel} == 7) Requires: libdb %endif %if (0%{?rhel} && 0%{?rhel} < 7) Requires: db4 %endif Requires: libaio Obsoletes: %{name}-server-store Conflicts: %{name}-server-store %description server-linearstore Red Hat persistence extension to the Qpid AMQP broker: persistent message storage using a libaio-based asynchronous journal. %files server-linearstore %defattr(-,root,root,-) %{_libdir}/qpid/daemon/linearstore.so %{_libdir}/liblinearstoreutils.so %post server-linearstore -p /sbin/ldconfig %postun server-linearstore -p /sbin/ldconfig %if 0%{?fedora} %package -n perl-qpid-messaging Summary: Perl bindings for the Qpid messaging framework Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: qpid-cpp-client = %{version}-%{release} %description -n perl-qpid-messaging %{summary}. %files -n perl-qpid-messaging %{perl_vendorarch}/* %doc %{_perldocdir} %package -n %{pythonx}-qpid-messaging Summary: Python bindings for the Qpid messaging framework Requires: %{pythonx} Requires: qpid(cpp-client)%{?_isa} = %{version}-%{release} Requires: %{pythonx}-qpid %{?python_provide:%python_provide python2-qpid-messaging} %{?filter_setup: %filter_provides_in %{python2_sitearch}/.*\.so$ %filter_setup} %description -n %{pythonx}-qpid-messaging %{summary}. %files -n %{pythonx}-qpid-messaging %{python2_sitearch}/qpid_messaging.py* %{python2_sitearch}/_qpid_messaging.so %{_pythondocdir}/examples %endif %package -n qpid-tools Summary: Management and diagostic tools for Apache Qpid BuildArch: noarch Requires: %{pythonx}-qpid Requires: %{pythonx}-qpid-qmf = %{version}-%{release} %description -n qpid-tools Management and diagnostic tools for Apache Qpid brokers and clients. %files -n qpid-tools %{_bindir}/qpid-config %{_bindir}/qpid-ha %{_bindir}/qpid-printevents %{_bindir}/qpid-queue-stats %{_bindir}/qpid-route %{_bindir}/qpid-stat %{_bindir}/qpid-tool %{python2_sitelib}/qpidtoollibs %{_libexecdir}/qpid-qls-analyze %dir %{_datadir}/qpid-tools %dir %{_datadir}/qpid-tools/python %{_datadir}/qpid-tools/python/qlslibs %{python2_sitelib}/qpid_tools-*.egg-info %package -n qpid-qmf Summary: The QPID Management Framework %if 0%{?fedora} Requires: qpid(cpp-client)%{?_isa} %endif Requires: qpid-cpp-client%{?_isa} = %{version}-%{release} %description -n qpid-qmf The Qpid Management Framework is a general-purpose management bus built on Qpid messaging. It takes advantage of the scalability, security, and rich capabilities of Qpid to provide flexible and easy-to-use manageability to a large set of applications. %files -n qpid-qmf %{_libdir}/libqmf2.so.* %post -n qpid-qmf -p /sbin/ldconfig %postun -n qpid-qmf -p /sbin/ldconfig %package -n qpid-qmf-devel Summary: Header files and tools for developing QMF extensions Requires: qpid-qmf%{?_isa} = %{version}-%{release} %if 0%{?fedora} Requires: qpid(cpp-client-devel)%{?_isa} %endif Requires: qpid-cpp-client-devel%{?_isa} = %{version}-%{release} %description -n qpid-qmf-devel Header files and code-generation tools needed for developers of QMF-managed components. %files -n qpid-qmf-devel %{_includedir}/qmf %{_libdir}/libqmf2.so %{_bindir}/qmf-gen %{python2_sitelib}/qmfgen %{_libdir}/pkgconfig/qmf2.pc %post -n qpid-qmf-devel -p /sbin/ldconfig %postun -n qpid-qmf-devel -p /sbin/ldconfig %package -n %{pythonx}-qpid-qmf Summary: The QPID Management Framework bindings for python Requires: qpid-qmf%{?_isa} = %{version}-%{release} Requires: %{name}-client%{?_isa} = %{version}-%{release} %{?python_provide:%python_provide python2-qpid-qmf} %description -n %{pythonx}-qpid-qmf An extensible management framework layered on QPID messaging, bindings for python. %files -n %{pythonx}-qpid-qmf %{python2_sitelib}/qmf %post -n %{pythonx}-qpid-qmf -p /sbin/ldconfig %postun -n %{pythonx}-qpid-qmf -p /sbin/ldconfig %if 0%{?fedora} %package -n ruby-qpid-qmf Summary: The QPID Management Framework bindings for ruby Requires: qpid-qmf%{?_isa} = %{version}-%{release} %description -n ruby-qpid-qmf An extensible management framework layered on QPID messaging, bindings for ruby. %files -n ruby-qpid-qmf %{ruby_vendorarchdir}/cqpid.so %post -n ruby-qpid-qmf -p /sbin/ldconfig %postun -n ruby-qpid-qmf -p /sbin/ldconfig %endif %prep %setup -q -n qpid-cpp-%{version} %build CXX11FLAG="-std=c++11" %if (0%{?rhel} && 0%{?rhel} <= 6) CXX11FLAG="-w -std=c++0x" %endif %if 0%{?fedora} export ADDFLAGS="-Wno-error=maybe-uninitialized" %cmake -DDOC_INSTALL_DIR:PATH=%{_pkgdocdir} \ -DBUILD_LEGACYSTORE=false \ -DBUILD_LINEARSTORE=true \ -DPERL_PFX_ARCHLIB=%{perl_vendorarch} \ -DBUILD_BINDING_RUBY=true \ "-DCMAKE_CXX_FLAGS=$CXXFLAGS $CXX11FLAG $ADDFLAGS" \ . %endif %if 0%{?rhel} %cmake -DDOC_INSTALL_DIR:PATH=%{_pkgdocdir} \ -DBUILD_LEGACYSTORE=false \ -DBUILD_LINEARSTORE=true \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_EXE_LINKER_FLAGS="-Wl,-z,relro,-z,now" \ -DCMAKE_SHARED_LINKER_FLAGS="-Wl,-z,relro" \ -DCMAKE_MODULE_LINKER_FLAGS="-Wl,-z,relro" \ "-DCMAKE_CXX_FLAGS=$CXXFLAGS $CXX11FLAG" \ . %endif make %{?_smp_mflags} make docs-user-api %install rm -rf %{buildroot} pushd management/python %{__python2} setup.py install \ --install-purelib %{python2_sitelib} \ --root %{buildroot} popd chmod +x %{buildroot}/%{python2_sitelib}/qpidtoollibs/disp.py mkdir -p -m0755 %{buildroot}/%{_bindir} mkdir -p -m0755 %{buildroot}/%{_unitdir} %if 0%{?fedora} # install examples mkdir -p -m0755 %{buildroot}%{_perldocdir}/examples mkdir -p -m0755 %{buildroot}%{_pythondocdir}/examples pushd bindings/qpid/examples/python install -pm 644 * %{buildroot}%{_perldocdir}/examples install -pm 644 * %{buildroot}%{_pythondocdir}/examples popd %endif %make_install # enable auth by default echo "auth=yes" >> %{buildroot}/etc/qpid/qpidd.conf %if 0%{?fedora} || (0%{?rhel} && 0%{?rhel} >= 7) # install systemd files mkdir -p %{buildroot}/%{_unitdir} install -pm 644 %{_builddir}/qpid-cpp-%{version}/etc/fedora/qpidd.service \ %{buildroot}/%{_unitdir} install -pm 644 %{_builddir}/qpid-cpp-%{version}/etc/fedora/qpidd-primary.service \ %{buildroot}/%{_unitdir} %endif install -d -m0755 %{buildroot}%{_localstatedir}/lib/qpidd install -d -m0755 %{buildroot}%_libdir/qpid install -d -m0755 %{buildroot}/var/run/qpidd # Set executable bit on shared libraries to ensure the binaries are stripped chmod +x %{buildroot}/%{python2_sitearch}/*so # QMF Python management install -d %{_builddir}/qpid-cpp-%{version}/managementgen/qmfgen \ %{buildroot}/%{python2_sitelib} %if 0%{?fedora} # QMF Ruby package install -d %{buildroot}%{ruby_vendorlibdir} install -d %{buildroot}%{ruby_vendorarchdir} %endif %if 0%{?fedora} install -pm 755 %{_builddir}/qpid-cpp-%{version}/bindings/qpid/ruby/cqpid_ruby.so \ %{buildroot}%{ruby_vendorarchdir}/cqpid.so %endif %if 0%{?fedora} || (0%{?rhel} && 0%{?rhel} >= 7) rm -f %{buildroot}/%{_initrddir}/qpidd* %endif rm -f %{buildroot}/%{_libdir}/qpid/daemon/store.so* %if 0%{?rhel} && 0%{?rhel} <= 6 install -pm 644 %{SOURCE1} %{buildroot}%{_pkgdocdir} %else install -dm 755 %{buildroot}%{_pkglicensedir} install -pm 644 %{SOURCE1} %{buildroot}%{_pkglicensedir} install -pm 644 %{buildroot}%{_pkgdocdir}/LICENSE.txt %{buildroot}%{_pkglicensedir} rm -f %{buildroot}%{_pkgdocdir}/LICENSE.txt %endif # clean up leftover examples files: rm -f %{buildroot}/%{_datadir}/qpid/examples/README.txt rm -f %{buildroot}/%{_datadir}/qpid/examples/qmf2/agent.cpp rm -f %{buildroot}/%{_datadir}/qpid/examples/qmf2/event_driven_list_agents.cpp rm -f %{buildroot}/%{_datadir}/qpid/examples/qmf2/list_agents.cpp rm -f %{buildroot}/%{_datadir}/qpid/examples/qmf2/print_events.cpp # clean up leftover ruby files %if (0%{?rhel} && 0%{?rhel} <= 6) rm -fr %{buildroot}/usr/%{_lib}/ruby/site_ruby %else rm -rf %{buildroot}/usr/local/%{_lib}/ruby/site_ruby %endif # clean up rhel build %if 0%{?rhel} rm -f %{buildroot}/%{python2_sitearch}/_qpid_messaging.so rm -f %{buildroot}/%{python2_sitearch}/qpid_messaging.py* # These bits will be build if perl-devel package is installed rm -fr %{buildroot}%_libdir/perl5 %endif rm %{buildroot}/%{_bindir}/*.bat %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %changelog