From 1cf3df45999573a42e43ed69fc4d18e7eb94e4fd Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Thu, 16 May 2024 15:54:25 +0200 Subject: [PATCH] package created using the webbuild interface [release 2.2.8-1mamba;Thu May 16 2024] --- README.md | 2 ++ libyang.spec | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 libyang.spec diff --git a/README.md b/README.md index ea3429a..465c6b1 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libyang +YANG data modeling language library. + diff --git a/libyang.spec b/libyang.spec new file mode 100644 index 0000000..7f3e91a --- /dev/null +++ b/libyang.spec @@ -0,0 +1,83 @@ +Name: libyang +Version: 2.2.8 +Release: 1mamba +Summary: YANG data modeling language library +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/CESNET/libyang +Source: https://github.com/CESNET/libyang.git/v%{version}/libyang-%{version}.tar.bz2 +License: BSD-3-Clause +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libpcre2-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: %{name}-tools = %{?epoch:%epoch:}%{version}-%{release} + +%description +YANG data modeling language library. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%package tools +Group: Applications/Databases +Summary: Utility applications for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description tools +This package contains utility applications for %{name}. + +%debug_package + +%prep +%setup -q + +%build +%cmake +%cmake_build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%cmake_install + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libyang.so.* +%doc LICENSE + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/libyang +%{_includedir}/libyang/*.h +%{_libdir}/libyang.so +%{_libdir}/pkgconfig/libyang.pc +%doc README.md + +%files tools +%defattr(-,root,root) +%{_bindir}/yanglint +%{_bindir}/yangre +%dir %{_datadir}/yang +%dir %{_datadir}/yang/modules +%dir %{_datadir}/yang/modules/libyang +%{_datadir}/yang/modules/libyang/*.yang +%{_mandir}/man1/yanglint.1* +%{_mandir}/man1/yangre.1* + +%changelog +* Thu May 16 2024 Silvan Calarco 2.2.8-1mamba +- package created using the webbuild interface