public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libnetconf2] openssl4-f45: Initial Packaging
@ 2026-09-18  6:35 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-09-18  6:35 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/libnetconf2
Branch : openssl4-f45
Commit : b498acf23a2635a2884e9c22c4d527ea7fdd6a0d
Author : Jakub Ružička <jakub.ruzicka@nic.cz>
Date   : 2022-01-19T16:33:43+01:00
Stats  : +62/-0 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/libnetconf2/c/b498acf23a2635a2884e9c22c4d527ea7fdd6a0d?branch=openssl4-f45

Log:
Initial Packaging

---
diff --git a/libnetconf2.spec b/libnetconf2.spec
new file mode 100644
index 0000000..d793e83
--- /dev/null
+++ b/libnetconf2.spec
@@ -0,0 +1,62 @@
+Name: libnetconf2
+Version: 2.0.24
+Release: 1%{?dist}
+Summary: NETCONF protocol library
+Url: https://github.com/CESNET/libnetconf2
+Source: %{url}/archive/v%{version}.tar.gz
+License: BSD
+
+BuildRequires:  cmake
+BuildRequires:  make
+BuildRequires:  gcc
+BuildRequires:  libssh-devel
+BuildRequires:  openssl-devel
+BuildRequires:  pkgconfig(libyang) >= 2
+
+%package devel
+Summary:    Headers of libnetconf2 library
+Conflicts:  libnetconf-devel
+Requires:   %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+Headers of libnetconf library.
+
+%description
+libnetconf2 is a NETCONF library in C intended for building NETCONF clients and
+servers. NETCONF is the NETwork CONFiguration protocol introduced by IETF.
+
+
+%prep
+%autosetup -p1
+mkdir build
+
+%build
+cd build
+cmake \
+    -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
+    -DCMAKE_BUILD_TYPE:String="Release" \
+    -DCMAKE_C_FLAGS="${RPM_OPT_FLAGS}" \
+    -DCMAKE_CXX_FLAGS="${RPM_OPT_FLAGS}" \
+    ..
+make
+
+%install
+cd build
+make DESTDIR=%{buildroot} install
+
+
+%files
+%license LICENSE
+%{_libdir}/libnetconf2.so.2*
+
+%files devel
+%{_libdir}/libnetconf2.so
+%{_libdir}/pkgconfig/libnetconf2.pc
+%{_includedir}/*.h
+%{_includedir}/libnetconf2/*.h
+%dir %{_includedir}/libnetconf2/
+
+
+%changelog
+* Mon Nov 15 2021 Jakub Ružička <jakub.ruzicka@nic.cz> - 2.0.24-1
+- Initial Packaging

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-18  6:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-18  6:35 [rpms/libnetconf2] openssl4-f45: Initial Packaging 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox