blob: cfb66e48d7fcd8a19c86389a0bd8c20662ec73cd [file] [log] [blame]
Jakub Ružička891b73a2021-07-14 17:26:48 +02001Name: libnetconf2
2Version: {{ version }}
3Release: {{ release }}%{?dist}
4Summary: NETCONF protocol library
5Url: https://github.com/CESNET/libnetconf2
Jakub Ružička096efdf2022-04-20 14:05:04 +02006Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
Jakub Ružička37380c92021-10-12 12:27:09 +02007License: BSD
Jakub Ružička891b73a2021-07-14 17:26:48 +02008
9BuildRequires: cmake
Jakub Ružička891b73a2021-07-14 17:26:48 +020010BuildRequires: gcc
11BuildRequires: libssh-devel
Jakub Ružička891b73a2021-07-14 17:26:48 +020012BuildRequires: openssl-devel
Michal Vaskob2e2e0d2022-07-18 14:50:17 +020013BuildRequires: pam-devel
Jakub Ružička37380c92021-10-12 12:27:09 +020014BuildRequires: pkgconfig(libyang) >= 2
romanacc57692023-11-03 13:53:47 +010015BuildRequires: libcurl-devel
Jakub Ružička891b73a2021-07-14 17:26:48 +020016
Jakub Ružička37380c92021-10-12 12:27:09 +020017%package devel
Jakub Ružička891b73a2021-07-14 17:26:48 +020018Summary: Headers of libnetconf2 library
19Conflicts: libnetconf-devel
Jakub Ružička37380c92021-10-12 12:27:09 +020020Requires: %{name}%{?_isa} = %{version}-%{release}
Jakub Ružička096efdf2022-04-20 14:05:04 +020021Requires: pkgconfig
Jakub Ružička891b73a2021-07-14 17:26:48 +020022
Jakub Ružička37380c92021-10-12 12:27:09 +020023%description devel
Jakub Ružička891b73a2021-07-14 17:26:48 +020024Headers of libnetconf library.
25
26%description
27libnetconf2 is a NETCONF library in C intended for building NETCONF clients and
28servers. NETCONF is the NETwork CONFiguration protocol introduced by IETF.
29
30
31%prep
Jakub Ružička37380c92021-10-12 12:27:09 +020032%autosetup -p1
Jakub Ružička891b73a2021-07-14 17:26:48 +020033
34%build
Jakub Ružička096efdf2022-04-20 14:05:04 +020035%cmake -DCMAKE_BUILD_TYPE=RELWITHDEBINFO
36%cmake_build
Jakub Ružička891b73a2021-07-14 17:26:48 +020037
38%install
Jakub Ružička096efdf2022-04-20 14:05:04 +020039%cmake_install
40
Jakub Ružička891b73a2021-07-14 17:26:48 +020041
Jakub Ružička891b73a2021-07-14 17:26:48 +020042%files
Jakub Ružička37380c92021-10-12 12:27:09 +020043%license LICENSE
Jakub Ružička096efdf2022-04-20 14:05:04 +020044%doc README.md FAQ.md
Michal Vaskob468a112022-03-15 10:41:40 +010045%{_libdir}/libnetconf2.so.*
Michal Vasko8b8b6bd2022-12-12 07:37:16 +010046%{_datadir}/yang/modules/libnetconf2/*.yang
47%dir %{_datadir}/yang/modules/libnetconf2/
Jakub Ružička891b73a2021-07-14 17:26:48 +020048
Jakub Ružička37380c92021-10-12 12:27:09 +020049%files devel
Jakub Ružička096efdf2022-04-20 14:05:04 +020050%doc CODINGSTYLE.md
Jakub Ružička891b73a2021-07-14 17:26:48 +020051%{_libdir}/libnetconf2.so
52%{_libdir}/pkgconfig/libnetconf2.pc
53%{_includedir}/*.h
54%{_includedir}/libnetconf2/*.h
55%dir %{_includedir}/libnetconf2/
56
57
58%changelog
Jakub Ružička096efdf2022-04-20 14:05:04 +020059* {{ now }} Jakub Ružička <jakub.ruzicka@nic.cz> - {{ version }}-{{ release }}
Jakub Ružička891b73a2021-07-14 17:26:48 +020060- upstream package