Name: cryptsetup
Summary: The cryptsetup
-Version: 1.6.7
+Version: 2.3.3
Release: 1
License: GPL-2.0+
Group: Base/Device Management
BuildRequires: popt-devel
BuildRequires: automake
BuildRequires: gettext
+BuildRequires: pkgconfig(json-c)
+BuildRequires: pkgconfig(libssl1.1)
+BuildRequires: pkgconfig(blkid)
Requires: libgpg-error
-Requires: libdevmapper
+Requires: device-mapper
Requires: libgcrypt
%description
%package devel
Summary: The cryptsetup development package
Group: Development/Libraries
-License: LGPL-2.1
+License: GPL-2.0+
Requires: %{name} = %{version}-%{release}
%description devel
%prep
%setup -q
+cp %{SOURCE1} ./%{name}.manifest
%build
+cp %{SOURCE1} .
+
chmod +x ./autogen.sh
-./autogen.sh --prefix=%{_prefix} -localedir=%{_prefix}/share/locale
+./autogen.sh --prefix=%{_prefix} -localedir=%{_datarootdir}/locale -libdir=%{_libdir} \
+ --disable-cryptsetup-reencrypt --disable-integritysetup
make %{?jobs:-j%jobs}
%install
rm -rf %{buildroot}
%make_install
-cp -a %{SOURCE1} %{buildroot}%{_datadir}/binary_package_name.manifest
%clean
%postun -p /sbin/ldconfig
%files
-%defattr(-,root,root,-)
-%manifest %{_datadir}/binary_package_name.manifest
-%{_prefix}/lib/libcryptsetup.so
-%{_prefix}/lib/libcryptsetup.so.4
-%{_prefix}/lib/libcryptsetup.so.4.7.0
-%{_prefix}/sbin/cryptsetup
-%{_prefix}/sbin/veritysetup
+%manifest %{name}.manifest
+%license COPYING.GPL-2.0+
+%{_libdir}/libcryptsetup.so.*
+%{_prefix}/lib/tmpfiles.d/cryptsetup.conf
+%{_sbindir}/cryptsetup
+%{_sbindir}/veritysetup
%files devel
-%{_prefix}/include/libcryptsetup.h
-%{_prefix}/lib/libcryptsetup.so
-%{_prefix}/lib/pkgconfig/libcryptsetup.pc
+%manifest %{name}.manifest
+%license COPYING.GPL-2.0+
+%{_includedir}/libcryptsetup.h
+%{_libdir}/libcryptsetup.so
+%{_libdir}/pkgconfig/libcryptsetup.pc
%files locale
-%{_prefix}/share/locale/cs/LC_MESSAGES/cryptsetup.mo
-%{_prefix}/share/locale/de/LC_MESSAGES/cryptsetup.mo
-%{_prefix}/share/locale/fi/LC_MESSAGES/cryptsetup.mo
-%{_prefix}/share/locale/fr/LC_MESSAGES/cryptsetup.mo
-%{_prefix}/share/locale/id/LC_MESSAGES/cryptsetup.mo
-%{_prefix}/share/locale/it/LC_MESSAGES/cryptsetup.mo
-%{_prefix}/share/locale/nl/LC_MESSAGES/cryptsetup.mo
-%{_prefix}/share/locale/pl/LC_MESSAGES/cryptsetup.mo
-%{_prefix}/share/locale/sv/LC_MESSAGES/cryptsetup.mo
-%{_prefix}/share/locale/uk/LC_MESSAGES/cryptsetup.mo
-%{_prefix}/share/locale/vi/LC_MESSAGES/cryptsetup.mo
-%{_prefix}/share/locale/es/LC_MESSAGES/cryptsetup.mo
+%manifest %{name}.manifest
+%license COPYING.GPL-2.0+
+%{_datarootdir}/locale/cs/LC_MESSAGES/cryptsetup.mo
+%{_datarootdir}/locale/da/LC_MESSAGES/cryptsetup.mo
+%{_datarootdir}/locale/de/LC_MESSAGES/cryptsetup.mo
+%{_datarootdir}/locale/es/LC_MESSAGES/cryptsetup.mo
+%{_datarootdir}/locale/fi/LC_MESSAGES/cryptsetup.mo
+%{_datarootdir}/locale/fr/LC_MESSAGES/cryptsetup.mo
+%{_datarootdir}/locale/id/LC_MESSAGES/cryptsetup.mo
+%{_datarootdir}/locale/it/LC_MESSAGES/cryptsetup.mo
+%{_datarootdir}/locale/ja/LC_MESSAGES/cryptsetup.mo
+%{_datarootdir}/locale/nl/LC_MESSAGES/cryptsetup.mo
+%{_datarootdir}/locale/pl/LC_MESSAGES/cryptsetup.mo
+%{_datarootdir}/locale/pt_BR/LC_MESSAGES/cryptsetup.mo
+%{_datarootdir}/locale/ru/LC_MESSAGES/cryptsetup.mo
+%{_datarootdir}/locale/sr/LC_MESSAGES/cryptsetup.mo
+%{_datarootdir}/locale/sv/LC_MESSAGES/cryptsetup.mo
+%{_datarootdir}/locale/uk/LC_MESSAGES/cryptsetup.mo
+%{_datarootdir}/locale/vi/LC_MESSAGES/cryptsetup.mo
+%{_datarootdir}/locale/zh_CN/LC_MESSAGES/cryptsetup.mo
%files doc
-%{_prefix}/share/man/man8/cryptsetup.8.gz
-%{_prefix}/share/man/man8/veritysetup.8.gz
+%manifest %{name}.manifest
+%license COPYING.GPL-2.0+
+%{_mandir}/man8/cryptsetup.8.gz
+%{_mandir}/man8/veritysetup.8.gz