Jakub Ružička | 891b73a | 2021-07-14 17:26:48 +0200 | [diff] [blame] | 1 | Name: libnetconf2 |
| 2 | Version: {{ version }} |
| 3 | Release: {{ release }}%{?dist} |
| 4 | Summary: NETCONF protocol library |
| 5 | Url: https://github.com/CESNET/libnetconf2 |
Jakub Ružička | 096efdf | 2022-04-20 14:05:04 +0200 | [diff] [blame] | 6 | Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz |
Jakub Ružička | 37380c9 | 2021-10-12 12:27:09 +0200 | [diff] [blame] | 7 | License: BSD |
Jakub Ružička | 891b73a | 2021-07-14 17:26:48 +0200 | [diff] [blame] | 8 | |
| 9 | BuildRequires: cmake |
Jakub Ružička | 891b73a | 2021-07-14 17:26:48 +0200 | [diff] [blame] | 10 | BuildRequires: gcc |
| 11 | BuildRequires: libssh-devel |
Jakub Ružička | 891b73a | 2021-07-14 17:26:48 +0200 | [diff] [blame] | 12 | BuildRequires: openssl-devel |
Michal Vasko | b2e2e0d | 2022-07-18 14:50:17 +0200 | [diff] [blame] | 13 | BuildRequires: pam-devel |
Jakub Ružička | 37380c9 | 2021-10-12 12:27:09 +0200 | [diff] [blame] | 14 | BuildRequires: pkgconfig(libyang) >= 2 |
Jakub Ružička | 891b73a | 2021-07-14 17:26:48 +0200 | [diff] [blame] | 15 | |
Jakub Ružička | 37380c9 | 2021-10-12 12:27:09 +0200 | [diff] [blame] | 16 | %package devel |
Jakub Ružička | 891b73a | 2021-07-14 17:26:48 +0200 | [diff] [blame] | 17 | Summary: Headers of libnetconf2 library |
| 18 | Conflicts: libnetconf-devel |
Jakub Ružička | 37380c9 | 2021-10-12 12:27:09 +0200 | [diff] [blame] | 19 | Requires: %{name}%{?_isa} = %{version}-%{release} |
Jakub Ružička | 096efdf | 2022-04-20 14:05:04 +0200 | [diff] [blame] | 20 | Requires: pkgconfig |
Jakub Ružička | 891b73a | 2021-07-14 17:26:48 +0200 | [diff] [blame] | 21 | |
Jakub Ružička | 37380c9 | 2021-10-12 12:27:09 +0200 | [diff] [blame] | 22 | %description devel |
Jakub Ružička | 891b73a | 2021-07-14 17:26:48 +0200 | [diff] [blame] | 23 | Headers of libnetconf library. |
| 24 | |
| 25 | %description |
| 26 | libnetconf2 is a NETCONF library in C intended for building NETCONF clients and |
| 27 | servers. NETCONF is the NETwork CONFiguration protocol introduced by IETF. |
| 28 | |
| 29 | |
| 30 | %prep |
Jakub Ružička | 37380c9 | 2021-10-12 12:27:09 +0200 | [diff] [blame] | 31 | %autosetup -p1 |
Jakub Ružička | 891b73a | 2021-07-14 17:26:48 +0200 | [diff] [blame] | 32 | |
| 33 | %build |
Jakub Ružička | 096efdf | 2022-04-20 14:05:04 +0200 | [diff] [blame] | 34 | %cmake -DCMAKE_BUILD_TYPE=RELWITHDEBINFO |
| 35 | %cmake_build |
Jakub Ružička | 891b73a | 2021-07-14 17:26:48 +0200 | [diff] [blame] | 36 | |
| 37 | %install |
Jakub Ružička | 096efdf | 2022-04-20 14:05:04 +0200 | [diff] [blame] | 38 | %cmake_install |
| 39 | |
Jakub Ružička | 891b73a | 2021-07-14 17:26:48 +0200 | [diff] [blame] | 40 | |
Jakub Ružička | 891b73a | 2021-07-14 17:26:48 +0200 | [diff] [blame] | 41 | %files |
Jakub Ružička | 37380c9 | 2021-10-12 12:27:09 +0200 | [diff] [blame] | 42 | %license LICENSE |
Jakub Ružička | 096efdf | 2022-04-20 14:05:04 +0200 | [diff] [blame] | 43 | %doc README.md FAQ.md |
Michal Vasko | b468a11 | 2022-03-15 10:41:40 +0100 | [diff] [blame] | 44 | %{_libdir}/libnetconf2.so.* |
Michal Vasko | 8b8b6bd | 2022-12-12 07:37:16 +0100 | [diff] [blame^] | 45 | %{_datadir}/yang/modules/libnetconf2/*.yang |
| 46 | %dir %{_datadir}/yang/modules/libnetconf2/ |
Jakub Ružička | 891b73a | 2021-07-14 17:26:48 +0200 | [diff] [blame] | 47 | |
Jakub Ružička | 37380c9 | 2021-10-12 12:27:09 +0200 | [diff] [blame] | 48 | %files devel |
Jakub Ružička | 096efdf | 2022-04-20 14:05:04 +0200 | [diff] [blame] | 49 | %doc CODINGSTYLE.md |
Jakub Ružička | 891b73a | 2021-07-14 17:26:48 +0200 | [diff] [blame] | 50 | %{_libdir}/libnetconf2.so |
| 51 | %{_libdir}/pkgconfig/libnetconf2.pc |
| 52 | %{_includedir}/*.h |
| 53 | %{_includedir}/libnetconf2/*.h |
| 54 | %dir %{_includedir}/libnetconf2/ |
| 55 | |
| 56 | |
| 57 | %changelog |
Jakub Ružička | 096efdf | 2022-04-20 14:05:04 +0200 | [diff] [blame] | 58 | * {{ now }} Jakub Ružička <jakub.ruzicka@nic.cz> - {{ version }}-{{ release }} |
Jakub Ružička | 891b73a | 2021-07-14 17:26:48 +0200 | [diff] [blame] | 59 | - upstream package |