66 lines
1.5 KiB
RPMSpec
66 lines
1.5 KiB
RPMSpec
%global majorminorversion 0.1
|
|
%global patchversion 0
|
|
|
|
Name: libmodulemd
|
|
Version: %{majorminorversion}%{?patchversion:.%{patchversion}}
|
|
Release: 3%{?dist}
|
|
Summary: Module metadata manipulation library
|
|
|
|
License: LGPLv2+
|
|
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)
|
|
|
|
%description
|
|
C Library for manipulating module metadata files
|
|
See https://pagure.io/modulemd for more details.
|
|
|
|
%package devel
|
|
Summary: Development files for libmodulemd
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%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
|
|
* 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
|
|
|