package created using the webbuild interface [release 2.2.8-1mamba;Thu May 16 2024]

This commit is contained in:
Silvan Calarco 2024-05-16 15:54:25 +02:00
parent cb030d5248
commit 1cf3df4599
2 changed files with 85 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# libyang
YANG data modeling language library.

83
libyang.spec Normal file
View File

@ -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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 2.2.8-1mamba
- package created using the webbuild interface