%global proton_datadir %{_datadir}/proton-%{version} Name: qpid-proton Version: 0.5 Release: 3%{?dist} Summary: A high performance, lightweight messaging library License: ASL 2.0 URL: http://qpid.apache.org/proton/ Source0: http://www.apache.org/dist/qpid/proton/%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake >= 2.6 BuildRequires: swig BuildRequires: pkgconfig BuildRequires: doxygen BuildRequires: libuuid-devel BuildRequires: openssl-devel BuildRequires: python-devel BuildRequires: epydoc # Java BuildRequires: maven-local BuildRequires: mockito BuildRequires: bouncycastle # BZ#1000620 Patch1: 01-PROTON-412-Fix-the-include-and-lib-directories-in-li.patch %description Proton is a high performance, lightweight messaging library. It can be used in the widest range of messaging applications including brokers, client libraries, routers, bridges, proxies, and more. Proton is based on the AMQP 1.0 messaging standard. Using Proton it is trivial to integrate with the AMQP 1.0 ecosystem from any platform, environment, or language. %package -n qpid-proton-c Summary: C librarys for Qpid Proton Obsoletes: qpid-proton < %{version}-%{release} Provides: qpid-proton = %{version}-%{release} %description -n qpid-proton-c %{summary}. %files -n qpid-proton-c %defattr(-,root,root,-) %dir %{proton_datadir} %doc %{proton_datadir}/LICENSE %doc %{proton_datadir}/README %doc %{proton_datadir}/TODO %{_mandir}/man1/* %{_bindir}/proton %{_bindir}/proton-dump %{_libdir}/libqpid-proton.so.* %post -n qpid-proton-c -p /sbin/ldconfig %postun -n qpid-proton-c -p /sbin/ldconfig %package -n qpid-proton-c-devel Requires: qpid-proton-c%{?_isa} = %{version}-%{release} Summary: Development libraries for writing messaging apps with Qpid Proton Obsoletes: qpid-proton-devel < %{version}-%{release} Provides: qpid-proton-devel = %{version}-%{release} %description -n qpid-proton-c-devel %{summary}. %files -n qpid-proton-c-devel %defattr(-,root,root,-) %{_includedir}/proton %{_libdir}/libqpid-proton.so %{_libdir}/pkgconfig/libqpid-proton.pc %package -n qpid-proton-c-devel-doc Summary: Documentation for the C development libraries for Qpid Proton BuildArch: noarch %description -n qpid-proton-c-devel-doc %{summary}. %files -n qpid-proton-c-devel-doc %defattr(-,root,root,-) %{proton_datadir}/docs/api-c %{_datadir}/proton/examples %package -n python-qpid-proton Summary: Python language bindings for the Qpid Proton messaging framework Requires: qpid-proton-c%{?_isa} = %{version}-%{release} Requires: python %description -n python-qpid-proton %{summary}. %files -n python-qpid-proton %defattr(-,root,root,-) %{python_sitearch}/_cproton.so %{python_sitearch}/cproton.* %{python_sitearch}/proton.* %package -n python-qpid-proton-doc Summary: Documentation for the Python language bindings for Qpid Proton BuildArch: noarch %description -n python-qpid-proton-doc %{summary}. %files -n python-qpid-proton-doc %defattr(-,root,root,-) %{proton_datadir}/docs %package -n qpid-proton-java Summary: Java libraries for Qpid Proton %description -n qpid-proton-java Java language bindings for the Qpid Proton messaging framework %package -n qpid-proton-javadoc Summary: Javadocs for Qpid Proton %description -n qpid-proton-javadoc This package contains the API documentation for %{name}. %files -n qpid-proton-java -f .mfiles %dir %{_javadir}/%{name} %files -n qpid-proton-javadoc -f .mfiles-javadoc %prep %setup -q -n %{name}-%{version} %patch1 -p1 sed -i 's|bcpkix-jdk15on|bcprov-jdk16|' proton-j/proton/pom.xml %pom_disable_module "contrib/proton-hawtdispatch" proton-j/pom.xml %pom_disable_module "tests" %build %cmake -DPROTON_DISABLE_RPATH=true . make all docs %{?_smp_mflags} %mvn_build %install %make_install %mvn_install chmod +x %{buildroot}%{python_sitearch}/_cproton.so # clean up files that are not shipped rm -rf %{buildroot}%{_libdir}/perl5 rm -rf %{buildroot}%{_libdir}/php rm -rf %{buildroot}%{_libdir}/ruby rm -rf %{buildroot}%{_libdir}/java/*.jar rm -rf %{buildroot}%{_libdir}/libproton-jni.so rm -rf %{buildroot}%{_datarootdir}/php rm -rf %{buildroot}%{_datarootdir}/java/*.jar rm -rf %{buildroot}%{_sysconfdir}/php.d %changelog * Thu Sep 12 2013 Marek Goldmann - 0.5-3 - Add java bindings * Fri Sep 6 2013 Darryl L. Pierce - 0.5-2 - Made python-qpid-proton-doc a noarch package. - Resolves: BZ#1005058 * Wed Aug 28 2013 Darryl L. Pierce - 0.5-1 - Rebased on Proton 0.5. - Resolves: BZ#1000620 * Mon Aug 26 2013 Darryl L. Pierce - 0.4-5 - Created the qpid-proton-c-devel-doc subpackage. - Resolves: BZ#1000615 * Sun Aug 04 2013 Fedora Release Engineering - 0.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Jul 24 2013 Darryl L. Pierce - 0.4-3 - Provide examples for qpid-proton-c - Resolves: BZ#975723 * Fri Apr 4 2013 Darryl L. Pierce - 0.4-2.2 - Added Obsoletes and Provides for packages whose names changed. - Resolves: BZ#948784 * Mon Apr 1 2013 Darryl L. Pierce - 0.4-2.1 - Fixed the dependencies for qpid-proton-devel and python-qpid-proton. * Thu Mar 28 2013 Darryl L. Pierce - 0.4-2 - Moved all C libraries to the new qpid-proton-c subpackage. * Tue Feb 26 2013 Darryl L. Pierce - 0.4-1 - Rebased on Proton 0.4. * Thu Feb 21 2013 Darryl L. Pierce - 0.3-4 - Fixes copying nested data. - PROTON-246, PROTON-230 * Mon Jan 28 2013 Darryl L. Pierce - 0.3-3 - Fixes build failure on non-x86 platforms. - Resolves: BZ#901526 * Fri Jan 25 2013 Darryl L. Pierce - 0.3-2 - Fixes build failure on non-x86 platforms. - Resolves: BZ#901526 * Wed Jan 16 2013 Darryl L. Pierce - 0.3-1 - Rebased on Proton 0.3. * Fri Dec 28 2012 Darryl L. Pierce - 0.2-2.4 - Moved ownership of the docs dir to the docs package. * Wed Dec 19 2012 Darryl L. Pierce - 0.2-2.3 - Fixed package dependencies, adding the release macro. * Mon Dec 17 2012 Darryl L. Pierce - 0.2-2.2 - Fixed subpackage dependencies on main package. - Removed accidental ownership of /usr/include. * Thu Dec 13 2012 Darryl L. Pierce - 0.2-2.1 - Remove BR for ruby-devel. - Removed redundant package name from summary. - Removed debugging artifacts from specfile. - Moved unversioned library to the -devel package. - Added dependency on main package to -devel. - Fixed directory ownerships. * Fri Nov 30 2012 Darryl L. Pierce - 0.2-2 - Removed BR on help2man. - Added patch for generated manpage. * Mon Nov 5 2012 Darryl L. Pierce - 0.2-1 - Initial packaging of the Qpid Proton.