libjcat/libjcat.spec

99 lines
2.7 KiB
RPMSpec

Name: libjcat
Version: 0.1.6
Release: 1mamba
Summary: Library which allows reading and writing gzip-compressed JSON catalog files
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/hughsie/libjcat
Source: https://github.com/hughsie/libjcat.git/%{version}/libjcat-%{version}.tar.bz2
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libglib-devel
BuildRequires: libgnutls-devel
BuildRequires: libgpg-error-devel
BuildRequires: libgpgme-devel
BuildRequires: libjson-glib-devel
## AUTOBUILDREQ-END
BuildRequires: scons
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
This library allows reading and writing gzip-compressed JSON catalog files, which can be used to store GPG, PKCS-7 and SHA-256 checksums for each file.
%package devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description devel
This package contains libraries and header files for developing applications that use %{name}.
%package tools
Group: Applications/Archiving
Summary: Utility applications for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description tools
This package contains utility applications for %{name}.
%debug_package
%prep
%setup -q
%build
%meson
%meson_build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%meson_install
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libjcat.so.*
%{_libdir}/girepository-1.0/Jcat-1.0.typelib
%dir %{_libexecdir}/installed-tests/libjcat
%{_libexecdir}/installed-tests/libjcat/*
%doc LICENSE
%files devel
%defattr(-,root,root)
%dir %{_includedir}/libjcat-1
%{_includedir}/libjcat-1/jcat.h
%dir %{_includedir}/libjcat-1/libjcat
%{_includedir}/libjcat-1/libjcat/*
%{_libdir}/libjcat.so
%{_datadir}/gir-1.0/Jcat-1.0.gir
%{_datadir}/installed-tests/libjcat/libjcat.test
%{_mandir}/man1/jcat-tool.1.gz
%{_datadir}/vala/vapi/jcat.deps
%{_datadir}/vala/vapi/jcat.vapi
%{_libdir}/pkgconfig/jcat.pc
%doc NEWS README.md
%files tools
%defattr(-,root,root)
%{_bindir}/jcat-tool
%changelog
* Thu Feb 11 2021 Automatic Build System <autodist@mambasoft.it> 0.1.6-1mamba
- automatic version update by autodist
* Tue Jan 12 2021 Automatic Build System <autodist@mambasoft.it> 0.1.5-1mamba
- automatic version update by autodist
* Sat Jan 02 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.4-1mamba
- package created using the webbuild interface