Adding upstream version 3.5.5.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
afb0a8fea7
commit
bf988a2857
144 changed files with 43534 additions and 11497 deletions
|
@ -6,14 +6,16 @@ Priority: optional
|
|||
Standards-Version: 4.5.0
|
||||
Build-Depends: cmake,
|
||||
debhelper (>= 10),
|
||||
libyang2-dev,
|
||||
libssl-dev,
|
||||
libssh-dev (>= 0.7.1),
|
||||
pkg-config
|
||||
libyang-dev,
|
||||
libssl-dev (>= 3.0.0),
|
||||
libssh-dev (>= 0.9.5),
|
||||
libpam0g-dev,
|
||||
pkg-config,
|
||||
libcurl4-openssl-dev (>= 7.30.0)
|
||||
Vcs-Browser: https://github.com/CESNET/libnetconf2/tree/master
|
||||
Vcs-Git: https://github.com/CESNET/libnetconf2.git
|
||||
|
||||
Package: libnetconf2-2
|
||||
Package: libnetconf4
|
||||
Depends: ${misc:Depends},
|
||||
${shlibs:Depends}
|
||||
Architecture: any
|
||||
|
@ -27,8 +29,8 @@ Description: library implementing NETCONF protocol - runtime
|
|||
It is implemented in C.
|
||||
|
||||
Package: libnetconf2-dev
|
||||
Depends: libyang2-dev,
|
||||
libnetconf2-2 (= ${binary:Version}),
|
||||
Depends: libyang-dev,
|
||||
libnetconf4 (= ${binary:Version}),
|
||||
${misc:Depends}
|
||||
Section: libdevel
|
||||
Architecture: any
|
||||
|
@ -41,4 +43,3 @@ Description: library implementing NETCONF protocol - development files
|
|||
.
|
||||
This package contains the C headers, a pkgconfig file, and .so entry
|
||||
point for libnetconf2.
|
||||
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
usr/lib/*/libnetconf2.so.*
|
|
@ -3,3 +3,4 @@ usr/lib/*/pkgconfig/libnetconf2.pc
|
|||
usr/include/libnetconf2/*
|
||||
usr/include/nc_client.h
|
||||
usr/include/nc_server.h
|
||||
usr/include/nc_version.h
|
||||
|
|
2
distro/pkg/deb/libnetconf4.install
Normal file
2
distro/pkg/deb/libnetconf4.install
Normal file
|
@ -0,0 +1,2 @@
|
|||
usr/lib/*/libnetconf2.so.*
|
||||
usr/share/yang/modules/libnetconf2
|
|
@ -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