blob: 979a51619bfb3d1e868423de14bcf853e52aa201 [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
Jakub Ružička891b73a2021-07-14 17:26:48 +020015
Jakub Ružička37380c92021-10-12 12:27:09 +020016%package devel
Jakub Ružička891b73a2021-07-14 17:26:48 +020017Summary: Headers of libnetconf2 library
18Conflicts: libnetconf-devel
Jakub Ružička37380c92021-10-12 12:27:09 +020019Requires: %{name}%{?_isa} = %{version}-%{release}
Jakub Ružička096efdf2022-04-20 14:05:04 +020020Requires: pkgconfig
Jakub Ružička891b73a2021-07-14 17:26:48 +020021
Jakub Ružička37380c92021-10-12 12:27:09 +020022%description devel
Jakub Ružička891b73a2021-07-14 17:26:48 +020023Headers of libnetconf library.
24
25%description
26libnetconf2 is a NETCONF library in C intended for building NETCONF clients and
27servers. NETCONF is the NETwork CONFiguration protocol introduced by IETF.
28
29
30%prep
Jakub Ružička37380c92021-10-12 12:27:09 +020031%autosetup -p1
Jakub Ružička891b73a2021-07-14 17:26:48 +020032
33%build
Jakub Ružička096efdf2022-04-20 14:05:04 +020034%cmake -DCMAKE_BUILD_TYPE=RELWITHDEBINFO
35%cmake_build
Jakub Ružička891b73a2021-07-14 17:26:48 +020036
37%install
Jakub Ružička096efdf2022-04-20 14:05:04 +020038%cmake_install
39
Jakub Ružička891b73a2021-07-14 17:26:48 +020040
Jakub Ružička891b73a2021-07-14 17:26:48 +020041%files
Jakub Ružička37380c92021-10-12 12:27:09 +020042%license LICENSE
Jakub Ružička096efdf2022-04-20 14:05:04 +020043%doc README.md FAQ.md
Michal Vaskob468a112022-03-15 10:41:40 +010044%{_libdir}/libnetconf2.so.*
Michal Vasko8b8b6bd2022-12-12 07:37:16 +010045%{_datadir}/yang/modules/libnetconf2/*.yang
46%dir %{_datadir}/yang/modules/libnetconf2/
Jakub Ružička891b73a2021-07-14 17:26:48 +020047
Jakub Ružička37380c92021-10-12 12:27:09 +020048%files devel
Jakub Ružička096efdf2022-04-20 14:05:04 +020049%doc CODINGSTYLE.md
Jakub Ružička891b73a2021-07-14 17:26:48 +020050%{_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čka096efdf2022-04-20 14:05:04 +020058* {{ now }} Jakub Ružička <jakub.ruzicka@nic.cz> - {{ version }}-{{ release }}
Jakub Ružička891b73a2021-07-14 17:26:48 +020059- upstream package