obsolete cryptsetup4 legacy packages [release 2.3.4-3mamba;Sat May 01 2021]

This commit is contained in:
Silvan Calarco 2024-01-06 04:02:44 +01:00
parent 4436cabd5c
commit 49d1c138dd

View File

@ -2,7 +2,7 @@
Name: libcryptsetup
Epoch: 1
Version: 2.3.4
Release: 1mamba
Release: 3mamba
Summary: A library for setting up encrypted filesystems
Group: System/Libraries
Vendor: openmamba
@ -13,17 +13,18 @@ Source: https://www.kernel.org/pub/linux/utils/cryptsetup/v%{majver}/cryp
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libblkid-devel
BuildRequires: libdevmapper-devel
BuildRequires: libgcrypt-devel
BuildRequires: libgpg-error-devel
BuildRequires: libjson-c-devel
BuildRequires: libopenssl-devel
BuildRequires: libpopt-devel
BuildRequires: libuuid-devel
## AUTOBUILDREQ-END
BuildRequires: libselinux-devel
BuildRequires: libsepol-devel
Provides: %{name}-luks
Obsoletes: %{name}-luks
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Obsoletes: %{name}-luks < 1:2.3.4-2mamba
Obsoletes: libcryptsetup4 < 1:2.3.4
%description
This package contains the cryptsetup shared library.
@ -36,7 +37,8 @@ Requires: libdevmapper-devel
Requires: libgcrypt-devel
Requires: libuuid-devel
Provides: %{name}-luks-devel
Obsoletes: %{name}-luks-devel
Obsoletes: %{name}-luks-devel < 1:2.3.4-2mamba
Obsoletes: libcryptsetup4-devel < 1:2.3.4
%description devel
This package contain libraries and header files used for writing code that makes use of encrypted filesystems.
@ -45,10 +47,13 @@ This package contain libraries and header files used for writing code that makes
Group: System/Tools
Summary: A utility for setting up encrypted filesystems
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Obsoletes: cryptsetup4 < 1:2.3.4
%description -n cryptsetup
This package contains cryptsetup, a utility for setting up encrypted filesystems using Device Mapper and the dm-crypt target.
%debug_package
%prep
%setup -q -n cryptsetup-%{version}
@ -56,9 +61,7 @@ iconv -f latin1 -t utf8 ChangeLog > ChangeLog.new
mv -f ChangeLog.new ChangeLog
%build
%configure \
--sbindir=/sbin \
--libdir=/%{_lib}
%configure
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
@ -69,14 +72,8 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
rm -rf %{buildroot}/%{_lib}/*.la %{buildroot}/%{_lib}/cryptsetup
pushd %{buildroot}/%{_lib}
rm libcryptsetup.so
mkdir -p %{buildroot}%{_libdir}
find libcryptsetup.so.*\.*\.* -exec ln -s /%{_lib}/{} %{buildroot}%{_libdir}/libcryptsetup.so \;
mv %{buildroot}/%{_lib}/pkgconfig %{buildroot}%{_libdir}
popd
rm -rf %{buildroot}%{_libdir}/*.la
#%{buildroot}/%{_lib}/cryptsetup
%find_lang cryptsetup
@ -88,7 +85,7 @@ popd
%files
%defattr(-,root,root)
/%{_lib}/libcryptsetup.so.*
%{_libdir}/libcryptsetup.so.*
%doc AUTHORS COPYING
%files devel
@ -100,17 +97,23 @@ popd
%files -n cryptsetup -f cryptsetup.lang
%defattr(-,root,root)
/sbin/cryptsetup
/sbin/veritysetup
/sbin/cryptsetup-reencrypt
/sbin/integritysetup
%{_prefix}/lib/tmpfiles.d/cryptsetup.conf
%{_sbindir}/cryptsetup
%{_sbindir}/veritysetup
%{_sbindir}/cryptsetup-reencrypt
%{_sbindir}/integritysetup
%{_tmpfilesdir}/cryptsetup.conf
%{_mandir}/man8/cryptsetup.8*
%{_mandir}/man8/cryptsetup-reencrypt.8*
%{_mandir}/man8/veritysetup.8*
%{_mandir}/man8/integritysetup.8*
%changelog
* Sat May 01 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.4-3mamba
- obsolete cryptsetup4 legacy packages
* Sat May 01 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.4-2mamba
- rebuilt in /usr
* Sat Sep 05 2020 Automatic Build System <autodist@mambasoft.it> 2.3.4-1mamba
- automatic version update by autodist