|
|
ee68c6 |
# valgrind finds invalid writes in libcmocka on arm and power
|
|
|
ee68c6 |
# see bug #1699304 for more information
|
|
|
ee68c6 |
%ifarch %arm ppc64le
|
|
|
ee68c6 |
%global run_valgrind_tests OFF
|
|
|
ee68c6 |
%else
|
|
|
ee68c6 |
%global run_valgrind_tests ON
|
|
|
ee68c6 |
%endif
|
|
|
ee68c6 |
|
|
|
ee68c6 |
Name: libyang
|
|
|
ee68c6 |
Version: 2.0.7
|
|
|
3c707a |
Release: 2%{?dist}
|
|
|
ee68c6 |
Summary: YANG data modeling language library
|
|
|
ee68c6 |
Url: https://github.com/CESNET/libyang
|
|
|
ee68c6 |
Source: %{url}/archive/v%{version}.tar.gz
|
|
|
ee68c6 |
License: BSD
|
|
|
ee68c6 |
|
|
|
ee68c6 |
BuildRequires: cmake
|
|
|
ee68c6 |
BuildRequires: doxygen
|
|
|
ee68c6 |
BuildRequires: pcre2-devel
|
|
|
ee68c6 |
BuildRequires: gcc
|
|
|
ee68c6 |
BuildRequires: valgrind
|
|
|
ee68c6 |
BuildRequires: gcc-c++
|
|
|
ee68c6 |
BuildRequires: swig >= 3.0.12
|
|
|
ee68c6 |
BuildRequires: libcmocka-devel
|
|
|
ee68c6 |
BuildRequires: python3-devel
|
|
|
ee68c6 |
BuildRequires: flex
|
|
|
ee68c6 |
BuildRequires: bison
|
|
|
ee68c6 |
BuildRequires: graphviz
|
|
|
ee68c6 |
BuildRequires: make
|
|
|
ee68c6 |
BuildRequires: git-core
|
|
|
ee68c6 |
|
|
|
ee68c6 |
%package devel
|
|
|
ee68c6 |
Summary: Development files for libyang
|
|
|
ee68c6 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
ee68c6 |
Requires: pcre-devel
|
|
|
ee68c6 |
|
|
|
ee68c6 |
%package devel-doc
|
|
|
ee68c6 |
Summary: Documentation of libyang API
|
|
|
ee68c6 |
Requires: %{name} = %{version}-%{release}
|
|
|
ee68c6 |
|
|
|
ee68c6 |
%description devel
|
|
|
ee68c6 |
Headers of libyang library.
|
|
|
ee68c6 |
|
|
|
ee68c6 |
%description devel-doc
|
|
|
ee68c6 |
Documentation of libyang API.
|
|
|
ee68c6 |
|
|
|
ee68c6 |
%description
|
|
|
ee68c6 |
Libyang is YANG data modeling language parser and toolkit
|
|
|
ee68c6 |
written (and providing API) in C.
|
|
|
ee68c6 |
|
|
|
ee68c6 |
%prep
|
|
|
ee68c6 |
%autosetup -S git
|
|
|
ee68c6 |
|
|
|
ee68c6 |
%build
|
|
|
ee68c6 |
%cmake \
|
|
|
ee68c6 |
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
|
|
|
ee68c6 |
-DCMAKE_BUILD_TYPE:String="Package" \
|
|
|
ee68c6 |
-DENABLE_LYD_PRIV=ON \
|
|
|
ee68c6 |
-DGEN_JAVA_BINDINGS=OFF \
|
|
|
ee68c6 |
-DGEN_JAVASCRIPT_BINDINGS=OFF \
|
|
|
ee68c6 |
-DGEN_LANGUAGE_BINDINGS=ON \
|
|
|
ee68c6 |
-DENABLE_VALGRIND_TESTS=%{run_valgrind_tests} ..
|
|
|
ee68c6 |
%cmake_build
|
|
|
ee68c6 |
mkdir build
|
|
|
ee68c6 |
cp ./src/libyang.h ./build/libyang.h
|
|
|
3c707a |
pushd redhat-linux-build
|
|
|
ee68c6 |
make doc
|
|
|
ee68c6 |
popd
|
|
|
ee68c6 |
|
|
|
ee68c6 |
%check
|
|
|
3c707a |
pushd redhat-linux-build
|
|
|
ee68c6 |
ctest --output-on-failure -V %{?_smp_mflags}
|
|
|
ee68c6 |
popd
|
|
|
ee68c6 |
|
|
|
ee68c6 |
%install
|
|
|
ee68c6 |
%cmake_install
|
|
|
ee68c6 |
mkdir -m0755 -p %{buildroot}/%{_docdir}/libyang
|
|
|
ee68c6 |
cp -r doc/html %{buildroot}/%{_docdir}/libyang/html
|
|
|
ee68c6 |
|
|
|
ee68c6 |
%files
|
|
|
ee68c6 |
%license LICENSE
|
|
|
ee68c6 |
%{_bindir}/yanglint
|
|
|
ee68c6 |
%{_bindir}/yangre
|
|
|
ee68c6 |
%{_datadir}/man/man1/yanglint.1.gz
|
|
|
ee68c6 |
%{_libdir}/libyang.so.2
|
|
|
ee68c6 |
%{_libdir}/libyang.so.2.*
|
|
|
ee68c6 |
|
|
|
ee68c6 |
%files devel
|
|
|
ee68c6 |
%{_libdir}/libyang.so
|
|
|
ee68c6 |
%{_libdir}/pkgconfig/libyang.pc
|
|
|
ee68c6 |
%{_includedir}/libyang/*.h
|
|
|
ee68c6 |
%dir %{_includedir}/libyang/
|
|
|
ee68c6 |
|
|
|
ee68c6 |
%files devel-doc
|
|
|
ee68c6 |
%{_docdir}/libyang
|
|
|
ee68c6 |
|
|
|
ee68c6 |
%changelog
|
|
|
3c707a |
* Thu Jun 30 2022 Michal Ruprich <mruprich@redhat.com> - 2.0.7-2
|
|
|
3c707a |
- Resolves: #2100938 - libyang FTBFS in rhel-9.1
|
|
|
3c707a |
|
|
|
ee68c6 |
* Tue Aug 10 2021 Michal Ruprich <mruprich@redhat.com> - 2.0.7-1
|
|
|
ee68c6 |
- Resolves: #1991915 - Rebase libyang to new version
|
|
|
ee68c6 |
|
|
|
ee68c6 |
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.225-4
|
|
|
ee68c6 |
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
ee68c6 |
Related: rhbz#1991688
|
|
|
ee68c6 |
|
|
|
ee68c6 |
* Wed Jun 30 2021 Michal Ruprich <mruprich@redhat.com> - 1.0.225-3
|
|
|
ee68c6 |
- Resolves: #1965253 - CVE-2021-28902 libyang: NULL pointer dereference in read_yin_container()
|
|
|
ee68c6 |
- Resolves: #1965255 - CVE-2021-28903 libyang: recursive call to lyxml_parse_mem() lead to crash
|
|
|
ee68c6 |
|
|
|
ee68c6 |
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.225-2
|
|
|
ee68c6 |
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
ee68c6 |
|
|
|
ee68c6 |
* Tue Mar 09 2021 Tomas Korbar <tkorbar@redhat.com> - 1.0.225-1
|
|
|
ee68c6 |
- Rebase to version 1.0.225
|
|
|
ee68c6 |
- Resolves: rhbz#1936718
|
|
|
ee68c6 |
|
|
|
ee68c6 |
* Wed Feb 03 2021 Tomas Korbar <tkorbar@redhat.com> - 1.0.215-1
|
|
|
ee68c6 |
- Rebase to version 1.0.215
|
|
|
ee68c6 |
- Resolves: rhbz#1921779
|
|
|
ee68c6 |
|
|
|
ee68c6 |
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.184-4
|
|
|
ee68c6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
ee68c6 |
|
|
|
ee68c6 |
* Wed Sep 02 2020 Merlin Mathesius <mmathesi@redhat.com> - 1.0.184-3
|
|
|
ee68c6 |
- Fix FTBFS by disabling valgrind on power since it finds bogus invalid
|
|
|
ee68c6 |
writes in libcmocka
|
|
|
ee68c6 |
|
|
|
ee68c6 |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.184-2
|
|
|
ee68c6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
ee68c6 |
|
|
|
ee68c6 |
* Wed Jul 22 2020 Tomas Korbar <tkorbar@redhat.com> - 1.0.184-1
|
|
|
ee68c6 |
- Update to 1.0.184
|
|
|
ee68c6 |
- Fix build
|
|
|
ee68c6 |
|
|
|
ee68c6 |
* Fri Jun 19 2020 Tomas Korbar <tkorbar@redhat.com> - 1.0.176-1
|
|
|
ee68c6 |
- Update to 1.0.176
|
|
|
ee68c6 |
|
|
|
ee68c6 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.0.167-2
|
|
|
ee68c6 |
- Rebuilt for Python 3.9
|
|
|
ee68c6 |
|
|
|
ee68c6 |
* Mon May 18 2020 Tomas Korbar <tkorbar@redhat.com> - 1.0.167-1
|
|
|
ee68c6 |
- Update to 1.0.167
|
|
|
ee68c6 |
|
|
|
ee68c6 |
* Fri Feb 07 2020 Tomas Korbar <tkorbar@redhat.com> - 1.0.130-1
|
|
|
ee68c6 |
- Rebase to version 1.0.130 (#1797495)
|
|
|
ee68c6 |
|
|
|
ee68c6 |
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.101-2
|
|
|
ee68c6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
ee68c6 |
|
|
|
ee68c6 |
* Mon Dec 09 2019 Tomas Korbar <tkorbar@redhat.com> - 1.0.101-1
|
|
|
ee68c6 |
- Rebase to version 1.0.101
|
|
|
ee68c6 |
- Fix CVE-2019-19333 (#1780495)
|
|
|
ee68c6 |
- Fix CVE-2019-19334 (#1780494)
|
|
|
ee68c6 |
|
|
|
ee68c6 |
* Fri Oct 25 2019 Tomas Korbar <tkorbar@redhat.com> - 1.0.73-1
|
|
|
ee68c6 |
- Rebase to version 1.0.73 (#1758512)
|
|
|
ee68c6 |
|
|
|
ee68c6 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.16.105-4
|
|
|
ee68c6 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
ee68c6 |
|
|
|
ee68c6 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.16.105-3
|
|
|
ee68c6 |
- Rebuilt for Python 3.8
|
|
|
ee68c6 |
|
|
|
ee68c6 |
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.105-2
|
|
|
ee68c6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
ee68c6 |
|
|
|
ee68c6 |
* Tue May 07 2019 Tomas Korbar <tkorbar@redhat.com> - 0.16.105-1
|
|
|
ee68c6 |
- Initial import (#1699846).
|
|
|
ee68c6 |
|
|
|
ee68c6 |
* Fri Apr 26 2019 Tomas Korbar <tkorbar@redhat.com> - 0.16.105-1
|
|
|
ee68c6 |
- Change specfile accordingly to mosvald's review
|
|
|
ee68c6 |
- Remove obsolete ldconfig scriptlets
|
|
|
ee68c6 |
- libyang-devel-doc changed to noarch package
|
|
|
ee68c6 |
- Add python_provide macro to python3-libyang subpackage
|
|
|
ee68c6 |
- Remove obsolete Requires from libyang-cpp-devel
|
|
|
ee68c6 |
- Start using cmake with smp_mflags macro
|
|
|
ee68c6 |
|
|
|
ee68c6 |
* Wed Apr 03 2019 Tomas Korbar <tkorbar@redhat.com> - 0.16.105-1
|
|
|
ee68c6 |
- Initial commit of package after editation of specfile
|