blob: 6187253e3d65dab68fb89fe16233ce0b90dc4d3e [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
Jakub Ružička37380c92021-10-12 12:27:09 +020013BuildRequires: pkgconfig(libyang) >= 2
Jakub Ružička891b73a2021-07-14 17:26:48 +020014
Jakub Ružička37380c92021-10-12 12:27:09 +020015%package devel
Jakub Ružička891b73a2021-07-14 17:26:48 +020016Summary: Headers of libnetconf2 library
17Conflicts: libnetconf-devel
Jakub Ružička37380c92021-10-12 12:27:09 +020018Requires: %{name}%{?_isa} = %{version}-%{release}
Jakub Ružička096efdf2022-04-20 14:05:04 +020019Requires: pkgconfig
Jakub Ružička891b73a2021-07-14 17:26:48 +020020
Jakub Ružička37380c92021-10-12 12:27:09 +020021%description devel
Jakub Ružička891b73a2021-07-14 17:26:48 +020022Headers of libnetconf library.
23
24%description
25libnetconf2 is a NETCONF library in C intended for building NETCONF clients and
26servers. NETCONF is the NETwork CONFiguration protocol introduced by IETF.
27
28
29%prep
Jakub Ružička37380c92021-10-12 12:27:09 +020030%autosetup -p1
Jakub Ružička891b73a2021-07-14 17:26:48 +020031
32%build
Jakub Ružička096efdf2022-04-20 14:05:04 +020033%cmake -DCMAKE_BUILD_TYPE=RELWITHDEBINFO
34%cmake_build
Jakub Ružička891b73a2021-07-14 17:26:48 +020035
36%install
Jakub Ružička096efdf2022-04-20 14:05:04 +020037%cmake_install
38
Jakub Ružička891b73a2021-07-14 17:26:48 +020039
Jakub Ružička891b73a2021-07-14 17:26:48 +020040%files
Jakub Ružička37380c92021-10-12 12:27:09 +020041%license LICENSE
Jakub Ružička096efdf2022-04-20 14:05:04 +020042%doc README.md FAQ.md
Michal Vaskob468a112022-03-15 10:41:40 +010043%{_libdir}/libnetconf2.so.*
Jakub Ružička891b73a2021-07-14 17:26:48 +020044
Jakub Ružička37380c92021-10-12 12:27:09 +020045%files devel
Jakub Ružička096efdf2022-04-20 14:05:04 +020046%doc CODINGSTYLE.md
Jakub Ružička891b73a2021-07-14 17:26:48 +020047%{_libdir}/libnetconf2.so
48%{_libdir}/pkgconfig/libnetconf2.pc
49%{_includedir}/*.h
50%{_includedir}/libnetconf2/*.h
51%dir %{_includedir}/libnetconf2/
52
53
54%changelog
Jakub Ružička096efdf2022-04-20 14:05:04 +020055* {{ now }} Jakub Ružička <jakub.ruzicka@nic.cz> - {{ version }}-{{ release }}
Jakub Ružička891b73a2021-07-14 17:26:48 +020056- upstream package