File luksmeta.spec of Package luksmeta
%define so_ver 0
Name: luksmeta
Version: 9
Release: 0
Summary: Utility for storing metadata in a LUKSv1 header
License: LGPL-2.1-or-later
URL: https://github.com/latchset/luksmeta
Source0: https://github.com/latchset/luksmeta/releases/download/v%{version}/%{name}-%{version}.tar.bz2
Source1: baselibs.conf
BuildRequires: asciidoc
BuildRequires: gcc
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libcryptsetup) >= 1.5.1
%description
The luksmeta utility enables an administrator to store metadata in the gap
between the end of the LUKSv1 header and the start of the encrypted data.
%package -n lib%{name}%{so_ver}
Summary: Simple library for storing metadata in the LUKSv1 header
%description -n lib%{name}%{so_ver}
LUKSMeta is a simple library for storing metadata in the LUKSv1 header.
%package -n lib%{name}-devel
Summary: Development files for lib%{name}
Requires: lib%{name}%{so_ver} = %{version}
Requires: pkgconfig(libcryptsetup) >= 1.5.1
%description -n lib%{name}-devel
The lib%{name}-devel package contains libraries and header files for
developing applications that use lib%{name}.
%prep
%setup -q
%build
%configure --disable-static
make %{?_smp_mflags}
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%post -n lib%{name}%{so_ver} -p /sbin/ldconfig
%postun -n lib%{name}%{so_ver} -p /sbin/ldconfig
%files
%license COPYING
%{_bindir}/*
%{_mandir}/man8/*
%files -n lib%{name}%{so_ver}
%license COPYING
%{_libdir}/*.so.*
%files -n lib%{name}-devel
%license COPYING
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%changelog