Merging upstream version 3.5.5 (Closes: #1098233).
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
c86ae7dcba
commit
6af28b7e8e
144 changed files with 43534 additions and 11497 deletions
|
@ -3,20 +3,22 @@ Version: {{ version }}
|
|||
Release: {{ release }}%{?dist}
|
||||
Summary: NETCONF protocol library
|
||||
Url: https://github.com/CESNET/libnetconf2
|
||||
Source: libnetconf2-%{version}.tar.gz
|
||||
Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
License: BSD
|
||||
|
||||
BuildRequires: cmake
|
||||
BuildRequires: make
|
||||
BuildRequires: gcc
|
||||
BuildRequires: libssh-devel
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: pam-devel
|
||||
BuildRequires: pkgconfig(libyang) >= 2
|
||||
BuildRequires: libcurl-devel
|
||||
|
||||
%package devel
|
||||
Summary: Headers of libnetconf2 library
|
||||
Conflicts: libnetconf-devel
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Requires: pkgconfig
|
||||
|
||||
%description devel
|
||||
Headers of libnetconf library.
|
||||
|
@ -28,27 +30,24 @@ servers. NETCONF is the NETwork CONFiguration protocol introduced by IETF.
|
|||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
mkdir build
|
||||
|
||||
%build
|
||||
cd build
|
||||
cmake \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
|
||||
-DCMAKE_BUILD_TYPE:String="Release" \
|
||||
-DCMAKE_C_FLAGS="${RPM_OPT_FLAGS}" \
|
||||
-DCMAKE_CXX_FLAGS="${RPM_OPT_FLAGS}" \
|
||||
..
|
||||
make
|
||||
%cmake -DCMAKE_BUILD_TYPE=RELWITHDEBINFO -DENABLE_TESTS=OFF
|
||||
%cmake_build
|
||||
|
||||
%install
|
||||
cd build
|
||||
make DESTDIR=%{buildroot} install
|
||||
%cmake_install
|
||||
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%{_libdir}/libnetconf2.so.2*
|
||||
%doc README.md FAQ.md
|
||||
%{_libdir}/libnetconf2.so.*
|
||||
%{_datadir}/yang/modules/libnetconf2/*.yang
|
||||
%dir %{_datadir}/yang/modules/libnetconf2/
|
||||
|
||||
%files devel
|
||||
%doc CODINGSTYLE.md
|
||||
%{_libdir}/libnetconf2.so
|
||||
%{_libdir}/pkgconfig/libnetconf2.pc
|
||||
%{_includedir}/*.h
|
||||
|
@ -57,5 +56,5 @@ make DESTDIR=%{buildroot} install
|
|||
|
||||
|
||||
%changelog
|
||||
* Tue Oct 12 2021 Jakub Ružička <jakub.ruzicka@nic.cz> - {{ version }}-{{ release }}
|
||||
* {{ now }} Jakub Ružička <jakub.ruzicka@nic.cz> - {{ version }}-{{ release }}
|
||||
- upstream package
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue