"Fossies" - the Fresh Open Source Software Archive

Member "cryptsetup-2.4.3/misc/fedora/cryptsetup.spec" (13 Jan 2022, 3506 Bytes) of package /linux/misc/cryptsetup-2.4.3.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) RPM Spec source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # Simplified version of RPM spec for Fedora
    2 
    3 Summary: Utility for setting up encrypted disks
    4 Name: cryptsetup
    5 Version: 2.4.0
    6 Release: 1%{?dist}
    7 License: GPLv2+ and LGPLv2+
    8 URL: https://gitlab.com/cryptsetup/cryptsetup
    9 BuildRequires: autoconf, automake, libtool, gettext-devel,
   10 BuildRequires: openssl-devel, popt-devel, device-mapper-devel
   11 BuildRequires: libuuid-devel, gcc, json-c-devel, libargon2-devel
   12 BuildRequires: libpwquality-devel, libblkid-devel
   13 BuildRequires: make libssh-devel
   14 Requires: cryptsetup-libs = %{version}-%{release}
   15 Requires: libpwquality >= 1.2.0
   16 
   17 %global upstream_version %{version_no_tilde}
   18 Source0: https://www.kernel.org/pub/linux/utils/cryptsetup/v2.4/cryptsetup-%{upstream_version}.tar.xz
   19 
   20 %description
   21 The cryptsetup package contains a utility for setting up
   22 disk encryption using dm-crypt kernel module.
   23 
   24 %package devel
   25 Requires: %{name}-libs%{?_isa} = %{version}-%{release}
   26 Requires: pkgconfig
   27 Summary: Headers and libraries for using encrypted file systems
   28 
   29 %description devel
   30 The cryptsetup-devel package contains libraries and header files
   31 used for writing code that makes use of disk encryption.
   32 
   33 %package libs
   34 Summary: Cryptsetup shared library
   35 
   36 %description libs
   37 This package contains the cryptsetup shared library, libcryptsetup.
   38 
   39 %package ssh-token
   40 Summary: Cryptsetup LUKS2 SSH token
   41 Requires: cryptsetup-libs = %{version}-%{release}
   42 
   43 %description ssh-token
   44 This package contains the LUKS2 SSH token.
   45 
   46 %package -n veritysetup
   47 Summary: A utility for setting up dm-verity volumes
   48 Requires: cryptsetup-libs = %{version}-%{release}
   49 
   50 %description -n veritysetup
   51 The veritysetup package contains a utility for setting up
   52 disk verification using dm-verity kernel module.
   53 
   54 %package -n integritysetup
   55 Summary: A utility for setting up dm-integrity volumes
   56 Requires: cryptsetup-libs = %{version}-%{release}
   57 
   58 %description -n integritysetup
   59 The integritysetup package contains a utility for setting up
   60 disk integrity protection using dm-integrity kernel module.
   61 
   62 %package reencrypt
   63 Summary: A utility for offline reencryption of LUKS encrypted disks
   64 Requires: cryptsetup-libs = %{version}-%{release}
   65 
   66 %description reencrypt
   67 This package contains cryptsetup-reencrypt utility which
   68 can be used for offline reencryption of disk in situ.
   69 
   70 %prep
   71 %autosetup -n cryptsetup-%{upstream_version} -p 1
   72 
   73 %build
   74 ./autogen.sh
   75 %configure --enable-fips --enable-pwquality --enable-libargon2
   76 %make_build
   77 
   78 %install
   79 %make_install
   80 rm -rf %{buildroot}%{_libdir}/*.la
   81 rm -rf %{buildroot}%{_libdir}/%{name}/*.la
   82 
   83 %find_lang cryptsetup
   84 
   85 %ldconfig_scriptlets -n cryptsetup-libs
   86 
   87 %files
   88 %license COPYING
   89 %doc AUTHORS FAQ docs/*ReleaseNotes
   90 %{_mandir}/man8/cryptsetup.8.gz
   91 %{_sbindir}/cryptsetup
   92 
   93 %files -n veritysetup
   94 %license COPYING
   95 %{_mandir}/man8/veritysetup.8.gz
   96 %{_sbindir}/veritysetup
   97 
   98 %files -n integritysetup
   99 %license COPYING
  100 %{_mandir}/man8/integritysetup.8.gz
  101 %{_sbindir}/integritysetup
  102 
  103 %files reencrypt
  104 %license COPYING
  105 %{_mandir}/man8/cryptsetup-reencrypt.8.gz
  106 %{_sbindir}/cryptsetup-reencrypt
  107 
  108 %files devel
  109 %doc docs/examples/*
  110 %{_includedir}/libcryptsetup.h
  111 %{_libdir}/libcryptsetup.so
  112 %{_libdir}/pkgconfig/libcryptsetup.pc
  113 
  114 %files libs -f cryptsetup.lang
  115 %license COPYING COPYING.LGPL
  116 %{_libdir}/libcryptsetup.so.*
  117 %dir %{_libdir}/%{name}/
  118 %{_tmpfilesdir}/cryptsetup.conf
  119 %ghost %attr(700, -, -) %dir /run/cryptsetup
  120 
  121 %files ssh-token
  122 %license COPYING COPYING.LGPL
  123 %{_libdir}/%{name}/libcryptsetup-token-ssh.so
  124 %{_mandir}/man8/cryptsetup-ssh.8.gz
  125 %{_sbindir}/cryptsetup-ssh
  126 
  127 %changelog