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 |
| 6 | Source: libnetconf2-%{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 |
| 10 | BuildRequires: make |
| 11 | BuildRequires: gcc |
| 12 | BuildRequires: libssh-devel |
Jakub Ružička | 891b73a | 2021-07-14 17:26:48 +0200 | [diff] [blame] | 13 | BuildRequires: openssl-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 | 891b73a | 2021-07-14 17:26:48 +0200 | [diff] [blame] | 20 | |
Jakub Ružička | 37380c9 | 2021-10-12 12:27:09 +0200 | [diff] [blame] | 21 | %description devel |
Jakub Ružička | 891b73a | 2021-07-14 17:26:48 +0200 | [diff] [blame] | 22 | Headers of libnetconf library. |
| 23 | |
| 24 | %description |
| 25 | libnetconf2 is a NETCONF library in C intended for building NETCONF clients and |
| 26 | servers. NETCONF is the NETwork CONFiguration protocol introduced by IETF. |
| 27 | |
| 28 | |
| 29 | %prep |
Jakub Ružička | 37380c9 | 2021-10-12 12:27:09 +0200 | [diff] [blame] | 30 | %autosetup -p1 |
Jakub Ružička | 891b73a | 2021-07-14 17:26:48 +0200 | [diff] [blame] | 31 | mkdir build |
| 32 | |
| 33 | %build |
| 34 | cd build |
Jakub Ružička | 37380c9 | 2021-10-12 12:27:09 +0200 | [diff] [blame] | 35 | cmake \ |
| 36 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
Jakub Ružička | 891b73a | 2021-07-14 17:26:48 +0200 | [diff] [blame] | 37 | -DCMAKE_BUILD_TYPE:String="Release" \ |
| 38 | -DCMAKE_C_FLAGS="${RPM_OPT_FLAGS}" \ |
| 39 | -DCMAKE_CXX_FLAGS="${RPM_OPT_FLAGS}" \ |
| 40 | .. |
| 41 | make |
| 42 | |
| 43 | %install |
| 44 | cd build |
| 45 | make DESTDIR=%{buildroot} install |
| 46 | |
Jakub Ružička | 891b73a | 2021-07-14 17:26:48 +0200 | [diff] [blame] | 47 | %files |
Jakub Ružička | 37380c9 | 2021-10-12 12:27:09 +0200 | [diff] [blame] | 48 | %license LICENSE |
Jakub Ružička | 891b73a | 2021-07-14 17:26:48 +0200 | [diff] [blame] | 49 | %{_libdir}/libnetconf2.so.2* |
| 50 | |
Jakub Ružička | 37380c9 | 2021-10-12 12:27:09 +0200 | [diff] [blame] | 51 | %files devel |
Jakub Ružička | 891b73a | 2021-07-14 17:26:48 +0200 | [diff] [blame] | 52 | %{_libdir}/libnetconf2.so |
| 53 | %{_libdir}/pkgconfig/libnetconf2.pc |
| 54 | %{_includedir}/*.h |
| 55 | %{_includedir}/libnetconf2/*.h |
| 56 | %dir %{_includedir}/libnetconf2/ |
| 57 | |
| 58 | |
| 59 | %changelog |
Jakub Ružička | 37380c9 | 2021-10-12 12:27:09 +0200 | [diff] [blame] | 60 | * Tue Oct 12 2021 Jakub Ružička <jakub.ruzicka@nic.cz> - {{ version }}-{{ release }} |
Jakub Ružička | 891b73a | 2021-07-14 17:26:48 +0200 | [diff] [blame] | 61 | - upstream package |