Add spec file

This commit is contained in:
Stephen Gallagher 2017-09-18 08:39:43 -04:00
parent 04007cc8ba
commit b193ff0dbf
No known key found for this signature in database
GPG Key ID: 7A25556236BAA3A3

65
libmodulemd.spec Normal file
View File

@ -0,0 +1,65 @@
%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