@@ -7,11 +7,10 @@ Source: %{url}/archive/@BRANCH@.tar.gz
77License: BSD-3-Clause
88BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
99
10- Requires: libyang@COMPAT_PACKAGES @
11- BuildRequires: libyang@COMPAT_PACKAGES @-devel
10+ Requires: libyang@PACKAGE_PART_NAME @
11+ BuildRequires: libyang@PACKAGE_PART_NAME @-devel
1212BuildRequires: libssh-devel >= 0.7.1
1313BuildRequires: openssl-devel
14- BuildRequires: valgrind
1514BuildRequires: cmake
1615BuildRequires: libcmocka-devel
1716BuildRequires: gcc
@@ -22,7 +21,7 @@ BuildRequires: timezone
2221%if 0%{?suse_version} + 0%{?fedora} > 0
2322BuildRequires: python3-devel
2423%else
25- BuildRequires: python34 -devel
24+ BuildRequires: python36 -devel
2625%endif
2726Conflicts: @CONFLICT_PACKAGE_NAME@
2827
@@ -31,14 +30,14 @@ Summary: Headers of libnetconf2 library
3130Requires: %{name} = %{version}-%{release}
3231Requires: libssh-devel
3332
34- %package -n python3-netconf2@COMPAT_PACKAGES @
33+ %package -n python3-netconf2@PACKAGE_PART_NAME @
3534Summary: Bindings to python3
3635Requires: %{name} = %{version}-%{release}
3736
3837%description devel
3938Headers of libnetconf2 library.
4039
41- %description -n python3-netconf2@COMPAT_PACKAGES @
40+ %description -n python3-netconf2@PACKAGE_PART_NAME @
4241Bindings of libnetconf2 library to python3 language.
4342
4443%description
@@ -48,7 +47,7 @@ Libnetconf2 is a NETCONF library in C intended for building NETCONF clients and
4847%setup -n libnetconf2-@BRANCH@
4948
5049%build
51- cmake -DCMAKE_INSTALL_PREFIX:PATH =/usr -DCMAKE_BUILD_TYPE:String ="@BUILD_TYPE@" -DENABLE_PYTHON=ON -DENABLE_VALGRIND_TESTS:BOOL=FALSE .
50+ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE="@BUILD_TYPE@" -DENABLE_PYTHON=ON -DENABLE_VALGRIND_TESTS=OFF .
5251make
5352
5453%check
@@ -76,7 +75,7 @@ make DESTDIR=%{buildroot} install
7675%{_includedir}/nc_server.h
7776%dir %{_includedir}/libnetconf2/
7877
79- %files -n python3-netconf2@COMPAT_PACKAGES @
78+ %files -n python3-netconf2@PACKAGE_PART_NAME @
8079%defattr(-,root,root)
8180/usr/lib*/python*/*-packages/*
8281
0 commit comments