libmodulemd/libmodulemd.spec

128 lines
3.3 KiB
RPMSpec
Raw Normal View History

2019-09-30 10:57:04 -04:00
# NOTICE: this spec file is retrieved from upper stream project(see libmodulemd.spec.in in Source0)
# and made some modifications.
Name: libmodulemd
2023-07-17 14:11:46 +08:00
Version: 2.15.0
2022-11-17 17:07:45 +08:00
Release: 1
2019-09-30 10:57:04 -04:00
Summary: C Library for manipulating module metadata files
License: MIT
URL: https://github.com/fedora-modularity/libmodulemd
Source0: https://github.com/fedora-modularity/libmodulemd/releases/download/%{version}/modulemd-%{version}.tar.xz
2019-09-30 10:57:04 -04:00
2020-07-29 10:49:52 +08:00
BuildRequires: meson pkgconfig gcc gcc-c++ gobject-introspection-devel libxslt
Buildrequires: python3-devel python3-gobject-base glib2-doc rpm-devel file-devel help2man
%ifarch %{valgrind_arches}
BuildRequires: valgrind
%endif
2019-09-30 10:57:04 -04:00
BuildRequires: pkgconfig(gobject-2.0) pkgconfig(gobject-introspection-1.0) pkgconfig(yaml-0.1) pkgconfig(gtk-doc)
%description
The libmodulemd API provides a number of convenience tools for
interacting with repodata (that is, streams of YAML that contains
information on multiple streams, default data and translations).
%package devel
Summary: Development files for libmodulemd
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
Development files for libmodulemd.
2020-07-29 10:49:52 +08:00
%package -n python3-%{name}
Summary: python3 bindings for %{name}
Requires: %{name} = %{version}-%{release} python3-gobject-base python3-six
%description -n python3-%{name}
python3 bindings for %{name}
2019-09-30 10:57:04 -04:00
%prep
%autosetup -p1 -n modulemd-%{version}
%build
%meson -Dwith_py2=false
2019-09-30 10:57:04 -04:00
%meson_build
%check
export LC_CTYPE=C.utf8
%meson_test
%install
%meson_install
%ldconfig_scriptlets
%files
%license COPYING
%doc README.md
%{_bindir}/modulemd-validator
2020-07-29 10:49:52 +08:00
%{_libdir}/%{name}.so.2*
2019-09-30 10:57:04 -04:00
%dir %{_libdir}/girepository-1.0
%{_libdir}/girepository-1.0/Modulemd*
2020-07-29 10:49:52 +08:00
%{_mandir}/man1/modulemd-validator*
2019-09-30 10:57:04 -04:00
%files devel
%{_libdir}/%{name}.so
2020-07-29 10:49:52 +08:00
%{_libdir}/pkgconfig/modulemd-2.0.pc
%{_includedir}/modulemd-2.0/
2019-09-30 10:57:04 -04:00
%dir %{_datadir}/gir-1.0
%{_datadir}/gir-1.0/Modulemd*
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
2020-07-29 10:49:52 +08:00
%{_datadir}/gtk-doc/html/modulemd-2.0/
%files -n python3-%{name}
%{python3_sitearch}/gi/overrides/
2019-09-30 10:57:04 -04:00
%changelog
2023-07-17 14:11:46 +08:00
* Mon Jul 17 2023 zhangchenglin <zhangchenglin@kylinos.cn> - 2.15.0-1
- Update to version 2.15.0
2022-11-17 17:07:45 +08:00
* Thu Nov 17 2022 fuanan <fuanan3@h-partners.com> - 2.14.0-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:update version to 2.14.0
* Thu Nov 17 2022 yixiangzhike <yixiangzhike007@163.com> - 2.13.0-3
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix source url
* Wed Jun 22 2022 fuanan <fuanan3@h-partners.com> - 2.13.0-2
- Type:requirement
- ID:NA
- SUG:NA
- DESC:fix build error:Unknow options:"developer_build"
2021-07-27 10:30:14 +08:00
* Tue Jul 27 2021 zoulin <zoulin13@huawei.com> - 2.13.0-1
- Type:requirement
- ID:NA
- SUG:NA
- DESC:update libmodulemd version to 2.13.0
2020-07-29 10:49:52 +08:00
* Tue Apr 28 2020 zhouyihang <zhouyihang3@huawei.com> - 2.9.4-1
- Type:requirement
- ID:NA
- SUG:NA
- DESC:update libmodulemd version to 2.9.4
2019-12-13 15:38:02 +08:00
* Fri Nov 22 2019 fangyufa<fangyufa1@huawei.com> - 1.6.4-4
- add buildrequires of libxslt(for x86_64) and disable valgrind test for build
2019-11-06 19:39:15 +08:00
* Mon Oct 28 2019 shenyangyang <shenyangyang4@huawei.com> - 1.6.4-3
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:add build requires of gobject-introspection-devel to solve build problem
2019-09-30 10:57:04 -04:00
* Thu Sep 05 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.6.4-2
2019-11-06 19:39:15 +08:00
- Package init