@@ -3,11 +3,10 @@ Version: {{ version }}
33Release: {{ release }}%{?dist }
44Summary: NETCONF protocol library
55Url: https://github.com/CESNET/libnetconf2
6- Source: libnetconf2 -%{version }.tar.gz
6+ Source: %{ url }/archive/v%{ version }/%{ name } -%{version }.tar.gz
77License: BSD
88
99BuildRequires: cmake
10- BuildRequires: make
1110BuildRequires: gcc
1211BuildRequires: libssh-devel
1312BuildRequires: openssl-devel
@@ -17,6 +16,7 @@ BuildRequires: pkgconfig(libyang) >= 2
1716Summary: Headers of libnetconf2 library
1817Conflicts: libnetconf-devel
1918Requires: %{name }%{?_isa } = %{version }-%{release }
19+ Requires: pkgconfig
2020
2121%description devel
2222Headers of libnetconf library.
@@ -28,27 +28,22 @@ servers. NETCONF is the NETwork CONFiguration protocol introduced by IETF.
2828
2929%prep
3030%autosetup -p1
31- mkdir build
3231
3332%build
34- cd build
35- cmake \
36- -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix } \
37- -DCMAKE_BUILD_TYPE:String=" Release" \
38- -DCMAKE_C_FLAGS=" ${RPM_OPT_FLAGS} " \
39- -DCMAKE_CXX_FLAGS=" ${RPM_OPT_FLAGS} " \
40- ..
41- make
33+ %cmake -DCMAKE_BUILD_TYPE=RELWITHDEBINFO
34+ %cmake_build
4235
4336%install
44- cd build
45- make DESTDIR=%{ buildroot } install
37+ % cmake_install
38+
4639
4740%files
4841%license LICENSE
42+ %doc README.md FAQ.md
4943%{_libdir }/libnetconf2.so.*
5044
5145%files devel
46+ %doc CODINGSTYLE.md
5247%{_libdir }/libnetconf2.so
5348%{_libdir }/pkgconfig/libnetconf2.pc
5449%{_includedir }/* .h
@@ -57,5 +52,5 @@ make DESTDIR=%{buildroot} install
5752
5853
5954%changelog
60- * Tue Oct 12 2021 Jakub Ružička <jakub.ruzicka@nic.cz> - {{ version }}-{{ release }}
55+ * {{ now }} Jakub Ružička <jakub.ruzicka@nic.cz> - {{ version }}-{{ release }}
6156- upstream package
0 commit comments