The package rpms/fb303.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/fb303.git/commit/?id=2b0650a0930f....
Change:
+ExcludeArch: s390x
Thanks.
Full change:
============
commit 2b0650a0930fc428042e67f40efe5f0f59358f70
Author: Michel Alexandre Salim <michel(a)michel-slm.name>
Date: Mon Nov 23 11:08:01 2020 -0800
Packaging variables read or set by %forgemeta
forgeurl:
https://github.com/facebook/fb303
forgesource:
https://github.com/facebook/fb303/archive/94cac88cf8be1636727727591891b90...
forgesetupargs: -n fb303-94cac88cf8be1636727727591891b903a1dbdcb5
archivename: fb303-94cac88cf8be1636727727591891b903a1dbdcb5
archiveext: tar.gz
archiveurl:
https://github.com/facebook/fb303/archive/94cac88cf8be1636727727591891b90...
topdir: fb303-94cac88cf8be1636727727591891b903a1dbdcb5
extractdir: fb303-94cac88cf8be1636727727591891b903a1dbdcb5
repo: fb303
scm: git
commit: 94cac88cf8be1636727727591891b903a1dbdcb5
date: 20201123
distprefix: .20201123git94cac88
dist: .20201123git94cac88.fc34
(snapshot date is either manually supplied or computed once
%{_sourcedir}/%{archivename}.%{archiveext} is available)
Initial package
Signed-off-by: Michel Alexandre Salim <michel(a)michel-slm.name>
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..78be369
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/fb303-94cac88cf8be1636727727591891b903a1dbdcb5.tar.gz
diff --git a/fb303.spec b/fb303.spec
new file mode 100644
index 0000000..9ee5512
--- /dev/null
+++ b/fb303.spec
@@ -0,0 +1,146 @@
+%global forgeurl
https://github.com/facebook/fb303/
+# take the date fbthrift is tagged
+# and use the last fb303 commit prior to that date
+%global commit 94cac88cf8be1636727727591891b903a1dbdcb5
+%global date 20201123
+
+%forgemeta -i
+
+# need to figure out how to get the Python bindings to build later
+%bcond_with python
+
+## Depends on fizz, which has linking issues on some platforms:
+#
https://bugzilla.redhat.com/show_bug.cgi?id=1893332
+%ifarch i686 x86_64
+%bcond_without static
+%else
+%bcond_with static
+%endif
+%bcond_without static
+
+%global _static_builddir static_build
+
+Name: fb303
+Version: 0
+Release: 0.1%{?dist}
+Summary: Base Thrift service and a common set of functionality
+
+License: ASL 2.0
+URL: %{forgeurl}
+Source0: %{forgesource}
+
+# Folly is known not to work on big-endian CPUs
+ExcludeArch: s390x
+
+BuildRequires: cmake
+BuildRequires: gcc-c++
+BuildRequires: fbthrift-devel
+BuildRequires: fizz-devel
+BuildRequires: folly-devel
+BuildRequires: gflags-devel
+BuildRequires: glog-devel
+%if %{with python}
+BuildRequires: python3-devel
+BuildRequires: python3-fbthrift-devel
+%endif
+BuildRequires: wangle-devel
+#Requires:
+
+%description
+fb303 is a base Thrift service and a common set of functionality for querying
+stats, options, and other information from a service.
+
+
+%package devel
+Summary: Development files for %{name}
+Requires: %{name}%{?_isa} = %{version}-%{release}
+Requires: cmake-filesystem
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+
+%if %{with static}
+%package static
+Summary: Static development libraries for %{name}
+BuildRequires: fbthrift-static
+BuildRequires: fizz-static
+BuildRequires: folly-static
+BuildRequires: wangle-static
+Requires: %{name}-devel%{?_isa} = %{version}-%{release}
+
+%description static
+The %{name}-static package contains static libraries for
+developing applications that use %{name}.
+%endif
+
+
+%prep
+# forgesetup doesn't take patches
+%autosetup -n %{name}-%{commit} -p1
+
+
+%build
+%if %{with static}
+# static build
+mkdir %{_static_builddir}
+pushd %{_static_builddir}
+%cmake .. \
+ -DBUILD_SHARED_LIBS=OFF \
+ -DCMAKE_INSTALL_DIR=%{_libdir}/cmake/%{name}-static \
+ -DFBTHRIFT_ROOT=%{_libdir}/cmake/fbthrift-static \
+ -DFIZZ_ROOT=%{_libdir}/cmake/fizz-static \
+ -DFOLLY_ROOT=%{_libdir}/cmake/folly-static \
+ -DWANGLE_ROOT=%{_libdir}/cmake/wangle-static \
+ -DPYTHON_EXTENSIONS=OFF
+%cmake_build
+popd
+
+%endif
+%cmake \
+ -DBUILD_SHARED_LIBS=ON \
+ -DCMAKE_INSTALL_DIR=%{_libdir}/cmake/%{name} \
+ -DPACKAGE_VERSION=0.%{date} \
+%if %{with python}
+ -DPYTHON_EXTENSIONS=ON
+%else
+ -DPYTHON_EXTENSIONS=OFF
+%endif
+%cmake_build
+
+
+%install
+%if %{with static}
+# static build
+pushd %{_static_builddir}
+%cmake_install
+popd
+%endif
+
+%cmake_install
+
+find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
+
+
+%files
+%license LICENSE
+%doc README.md
+%{_libdir}/*.so.*
+
+%files devel
+%doc CODE_OF_CONDUCT.md CONTRIBUTING.md
+%{_includedir}/*
+%{_libdir}/*.so
+%{_libdir}/cmake/%{name}/
+
+%if %{with static}
+%files static
+%{_libdir}/*.a
+%{_libdir}/cmake/%{name}-static
+%endif
+
+
+%changelog
+* Mon Nov 23 2020 Michel Alexandre Salim <salimma(a)fedoraproject.org> -
0-0.1.20201123git94cac88
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..55504b6
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (fb303-94cac88cf8be1636727727591891b903a1dbdcb5.tar.gz) =
b52bacdc75a4fbb9206514262e300bb64b6100961603453240a7776df46d08aeca89182c3433a0cdc7ce6c0e892357ca7bdcd347f4fbcd5853fada450ea7156e