Blame SPECS/libyang.spec

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