%global _hardened_build 1 Name: libsearpc Version: 3.2.0.2.gite889dbc Release: 1%{?dist} Summary: A simple and easy-to-use C language RPC framework License: LGPLv3 URL: https://github.com/haiwen/%{name} Source0: https://github.com/haiwen/libsearpc/archive/%{name}-master.zip BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool BuildRequires: glib2-devel BuildRequires: jansson-devel BuildRequires: python3-devel %if 0%{?rhel} > 7 BuildRequires: python3-simplejson %else BuildRequires: python36-simplejson %endif %description Searpc is a simple C language RPC framework based on GObject system. Searpc handles the serialization/deserialization part of RPC, the transport part is left to users. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: glib2-devel Requires: jansson-devel >= 2.2.1 %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %setup -qn libsearpc-master sed -i -e /\(DESTDIR\)/d %{name}.pc.in sed -i 's@/usr/bin/env python@/usr/bin/env python3@' ./lib/searpc-codegen.py ./pysearpc/test_pysearpc.py ./tests/generate.py sed -i 's@/usr/bin/python@/usr/bin/python3@' ./pysearpc/pygencode.py %build ./autogen.sh %configure --disable-static --disable-compile-demo PYTHON=/usr/bin/python3 %{__make} %{?_smp_mflags} CFLAGS="%{optflags}" %install %{__make} install DESTDIR=%{buildroot} find %{buildroot} -name '*.la' -exec rm -f {} ';' %check # tests are failing on big endian arches # https://bugzilla.redhat.com/show_bug.cgi?id=1388453 %ifnarch ppc ppc64 s390 s390x %{__make} check %endif %ldconfig_scriptlets %files %doc AUTHORS README.markdown %license LICENSE.txt %{_libdir}/%{name}.so.* %{_bindir}/searpc-codegen.py %{python3_sitearch}/pysearpc/ %files devel %license LICENSE.txt %{_includedir}/searpc* %{_libdir}/%{name}.so %{_libdir}/pkgconfig/%{name}.pc %changelog * Sun Nov 15 2020 Daniel Berteaud 3.2.0.2.gite889dbc-1 - new package built with tito * Sun Nov 15 2020 Daniel Berteaud - 3.2.gite889dbc-1 - Build current git for EL7 and EL8 * Tue Jul 28 2020 Fedora Release Engineering - 3.1-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 3.1-17 - Rebuilt for Python 3.9 * Wed Jan 29 2020 Fedora Release Engineering - 3.1-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sun Jan 05 2020 Julien Enselme - 3.1-15 - Remove dependency on /usr/bin/python2 * Sun Nov 03 2019 Julien Enselme - 3.1-14 - Make this package compatible with Python3 * Wed Sep 11 2019 Julien Enselme - 3.1-13 - Update latest tag to latest version. * Thu Jul 25 2019 Fedora Release Engineering - 3.1-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Feb 01 2019 Fedora Release Engineering - 3.1-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 3.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 07 2018 Fedora Release Engineering - 3.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Tue Jan 09 2018 Iryna Shcherbina - 3.1-8 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Mon Aug 14 2017 Iryna Shcherbina - 3.1-7 - Add a build-time dependency on python2-devel * Thu Aug 03 2017 Fedora Release Engineering - 3.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 3.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 3.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Nov 08 2016 Dan Horák - 3.1-3 - Skip the tests in a better way * Tue Nov 08 2016 Julien Enselme - 3.1-2 - Skip failing tests on ppc64 and s390 * Sun Oct 23 2016 Julien Enselme - 3.1-1 - Update to 3.1 * Tue Jul 19 2016 Fedora Release Engineering - 3.0.7-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Tue Feb 02 2016 Nikos Roussos - 3.0.7-1 - Update to 3.0.7 * Fri Dec 04 2015 Nikos Roussos - 3.0-6 - Add optflags * Fri Sep 11 2015 Nikos Roussos - 3.0-5 - Fix license * Fri Sep 11 2015 Nikos Roussos - 3.0-4 - Fix license - Fix build requiremets - Add check * Sat Apr 11 2015 Nikos Roussos - 3.0-3 - Use release tag instead of commit * Wed Nov 05 2014 Nikos Roussos - 3.0-2 - Update to latest tag - Remove merged patch * Tue Aug 12 2014 Nikos Roussos - 3.0-1 - Initial version of the package