2017-09-18 12:39:43 +00:00
|
|
|
%global majorminorversion 0.1
|
|
|
|
%global patchversion 0
|
|
|
|
|
|
|
|
Name: libmodulemd
|
|
|
|
Version: %{majorminorversion}%{?patchversion:.%{patchversion}}
|
2017-09-30 17:46:05 +00:00
|
|
|
Release: 5%{?dist}
|
2017-09-18 12:39:43 +00:00
|
|
|
Summary: Module metadata manipulation library
|
|
|
|
|
2017-09-18 19:44:19 +00:00
|
|
|
License: MIT
|
2017-09-18 12:39:43 +00:00
|
|
|
URL: https://github.com/sgallagher/libmodulemd
|
|
|
|
Source0: https://github.com/sgallagher/libmodulemd/releases/download/%{name}-%{version}/modulemd-%{version}.tar.xz
|
|
|
|
|
|
|
|
BuildRequires: meson
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: pkgconfig(gobject-2.0)
|
|
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
|
|
|
BuildRequires: pkgconfig(yaml-0.1)
|
|
|
|
|
2017-09-18 19:44:19 +00:00
|
|
|
Patch0001: 0001-Correct-license-to-MIT.patch
|
|
|
|
|
2017-09-18 12:39:43 +00:00
|
|
|
%description
|
|
|
|
C Library for manipulating module metadata files
|
|
|
|
See https://pagure.io/modulemd for more details.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for libmodulemd
|
2017-09-30 17:46:05 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2017-09-18 12:39:43 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development files for libmodulemd
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1 -n modulemd-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%meson
|
|
|
|
%meson_build
|
|
|
|
|
|
|
|
%check
|
|
|
|
export LC_CTYPE=C.utf8
|
|
|
|
%meson_test
|
|
|
|
|
|
|
|
%install
|
|
|
|
%meson_install
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license COPYING
|
|
|
|
%doc README.md
|
|
|
|
%{_libdir}/%{name}.so.0*
|
|
|
|
%{_libdir}/girepository-1.0/Modulemd-%{majorminorversion}.typelib
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
%{_libdir}/pkgconfig/modulemd.pc
|
|
|
|
%{_includedir}/modulemd
|
|
|
|
%{_datadir}/gir-1.0/Modulemd-%{majorminorversion}.gir
|
|
|
|
|
|
|
|
%changelog
|
2017-09-30 17:46:05 +00:00
|
|
|
* Sat Sep 30 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.0-5
|
|
|
|
- Use %%_isa in Requires for main package from devel
|
|
|
|
|
2017-09-18 19:44:19 +00:00
|
|
|
* Mon Sep 18 2017 Stephen Gallagher <sgallagh@redhat.com> - 0.1.0-4
|
|
|
|
- Correct the license to MIT
|
|
|
|
|
2017-09-18 12:39:43 +00:00
|
|
|
* Mon Sep 18 2017 Stephen Gallagher <sgallagh@redhat.com> - 0.1.0-3
|
|
|
|
- Modifications requested during package review
|
|
|
|
|
|
|
|
* Fri Sep 15 2017 Stephen Gallagher <sgallagh@redhat.com> - 0.1.0-2
|
|
|
|
- First public release
|
|
|
|
|