summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorMichel Alexandre Salim <salimma@fedoraproject.org>2020-10-26 15:44:06 -0700
committerMichel Alexandre Salim <salimma@fedoraproject.org>2020-10-26 15:44:06 -0700
commit73d4420dd7381c20befca56eec9187b076cd9dc5 (patch)
tree823b61005680f9843e59432c394b4129bb04e7c3 /libs
parent6414ccd0f3e90a6daeb39786f71507625be33096 (diff)
downloadspecs-73d4420dd7381c20befca56eec9187b076cd9dc5.tar.gz
specs-73d4420dd7381c20befca56eec9187b076cd9dc5.tar.xz
specs-73d4420dd7381c20befca56eec9187b076cd9dc5.zip
+wangle
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
Diffstat (limited to 'libs')
-rw-r--r--libs/wangle.spec72
1 files changed, 72 insertions, 0 deletions
diff --git a/libs/wangle.spec b/libs/wangle.spec
new file mode 100644
index 0000000..8e57a0f
--- /dev/null
+++ b/libs/wangle.spec
@@ -0,0 +1,72 @@
+# Tests are not currently passing
+%bcond_with tests
+
+Name: wangle
+Version: 2020.10.26.00
+Release: 1%{?dist}
+Summary: Framework for building services in a consistent/modular/composable way
+
+License: ASL 2.0
+URL: https://github.com/facebook/wangle
+Source0: https://github.com/facebook/wangle/releases/download/v%{version}/wangle-v%{version}.tar.gz
+Patch0: wangle-%{version}-allow_overriding_version.patch
+
+BuildRequires: cmake
+BuildRequires: gcc-c++
+# Library dependencies
+BuildRequires: fizz-devel
+BuildRequires: folly-devel
+
+%description
+Wangle is a library that makes it easy to build protocols, application clients,
+and application servers.
+
+It's like Netty + Finagle smooshed together, but in C++.
+
+
+%package devel
+Summary: Development files for %{name}
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+
+%prep
+%autosetup -c -p1
+
+
+%build
+%cmake wangle \
+ -DCMAKE_INSTALL_DIR=%{_libdir}/cmake/%{name} \
+ -DPACKAGE_VERSION=%{version} \
+ -DSO_VERSION=%{version}
+%cmake_build
+
+
+%install
+%cmake_install
+find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
+
+
+%if %{with tests}
+%check
+%ctest
+%endif
+
+
+%files
+%license LICENSE
+%{_libdir}/*.so.*
+
+%files devel
+%doc CONTRIBUTING.md README.md tutorial.md
+%{_includedir}/*
+%{_libdir}/*.so
+%{_libdir}/cmake/%{name}
+
+
+%changelog
+* Mon Oct 26 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 2020.10.26.00-1
+- Initial package