@@ -38,12 +38,8 @@ BuildRequires: swig >= 3.0.12
3838
3939%if 0%{?suse_version} + 0%{?fedora} + 0%{?centos_version} > 0
4040BuildRequires: python3-devel
41- BuildRequires: python3-cffi
42- BuildRequires: python3-setuptools
4341%else
4442BuildRequires: python36-devel
45- BuildRequires: python36-cffi
46- BuildRequires: python36-setuptools
4743%endif
4844
4945%endif
@@ -68,17 +64,6 @@ Summary: SWIG binding to python
6864Requires: @CPP_PACKAGE@ = %{version}-%{release}
6965Requires: %{name} = %{version}-%{release}
7066
71- %package -n @PYTHON_CFFI_PACKAGE@
72- Summary: CFFI binding to python
73- Requires: %{name} = %{version}-%{release}
74- %if 0%{?suse_version} + 0%{?fedora} + 0%{?centos_version} > 0
75- Requires: python3
76- Requires: python3-cffi
77- %else
78- Requires: python36
79- Requires: python36-cffi
80- %endif
81-
8267%description -n @CPP_PACKAGE@
8368Bindings of libyang library to C++ language.
8469
@@ -87,9 +72,6 @@ Headers of bindings to c++ language.
8772
8873%description -n @PYTHON_PACKAGE@
8974SWIG bindings of libyang library to python language.
90-
91- %description -n @PYTHON_CFFI_PACKAGE@
92- CFFI bindings of libyang library to python language.
9375%endif
9476
9577%description devel
@@ -105,7 +87,7 @@ mkdir build
10587%build
10688cd build
10789%if %{with_lang_bind}
108- %define cmake_lang_bind "-DGEN_LANGUAGE_BINDINGS=ON -DGEN_PYTHON_CFFI_BINDINGS=ON "
90+ %define cmake_lang_bind "-DGEN_LANGUAGE_BINDINGS=ON"
10991%else
11092 %define cmake_lang_bind "-DGEN_LANGUAGE_BINDINGS=OFF"
11193%endif
@@ -160,6 +142,7 @@ make DESTDIR=%{buildroot} install
160142%dir %{_includedir}/libyang/
161143
162144%if %{with_lang_bind}
145+
163146%files -n @CPP_PACKAGE@
164147%defattr(-,root,root)
165148%{_libdir}/libyang-cpp.so.*
@@ -173,12 +156,8 @@ make DESTDIR=%{buildroot} install
173156
174157%files -n @PYTHON_PACKAGE@
175158%defattr(-,root,root)
176- %{_libdir}/python*/site-packages/yang*
159+ %{_libdir}/python*
177160
178- %files -n @PYTHON_CFFI_PACKAGE@
179- %defattr(-,root,root)
180- %{_libdir}/python3*/site-packages/libyang*
181- %{_libdir}/python3*/site-packages/_libyang*.so
182161%endif
183162
184163%changelog
0 commit comments