0ebeaeab515c77c822905497997460fd872c54da
[platform/upstream/cryptsetup.git] / packaging / cryptsetup.spec
1 Name:     cryptsetup
2 Summary:  The cryptsetup
3 Version:  2.3.7
4 Release:  1
5 License:  GPL-2.0+
6 Group:    Base/Device Management
7 URL:      http://code.google.com/p/cryptsetup/
8 Source0:  %{name}-%{version}.tar.xz
9 Source1:  cryptsetup.manifest
10
11 BuildRequires: linux-kernel-headers
12 BuildRequires: device-mapper-devel
13 BuildRequires: libgpg-error-devel
14 BuildRequires: libgcrypt-devel
15 BuildRequires: libuuid-devel
16 BuildRequires: util-linux
17 BuildRequires: popt-devel
18 BuildRequires: automake
19 BuildRequires: gettext
20 BuildRequires: pkgconfig(json-c)
21 BuildRequires: pkgconfig(libssl1.1)
22 BuildRequires: pkgconfig(blkid)
23
24 Requires:      libgpg-error
25 Requires:      device-mapper
26 Requires:      libgcrypt
27
28 %description
29 setup cryptographic volumes for dm-crypt (including LUKS extension)
30
31 %package devel
32 Summary:    The cryptsetup development package
33 Group:      Development/Libraries
34 License:    GPL-2.0+
35 Requires:   %{name} = %{version}-%{release}
36
37 %description devel
38 cryptsetup development package
39
40 %package locale
41 License:    GPL-2.0+
42 Summary:    The cryptsetup locale package
43 Group:      Base/Device Management
44 Requires:   %{name} = %{version}-%{release}
45
46 %description locale
47 locale package for cryptsetup
48
49 %package doc 
50 License:    GPL-2.0+
51 Summary:    The cryptsetup doc package
52 Group:      Base/Device Management
53 Requires:   %{name} = %{version}-%{release}
54
55 %description doc
56 doc package for cryptsetup
57
58 %prep
59 %setup -q
60 cp %{SOURCE1} ./%{name}.manifest
61
62 %build
63 cp %{SOURCE1} .
64
65 chmod +x ./autogen.sh
66 ./autogen.sh --prefix=%{_prefix} -localedir=%{_datarootdir}/locale -libdir=%{_libdir} \
67              --disable-cryptsetup-reencrypt --disable-integritysetup
68
69 make %{?jobs:-j%jobs}
70
71 %install
72 rm -rf %{buildroot}
73 %make_install
74
75 %clean
76
77 %post -p /sbin/ldconfig
78
79 %postun -p /sbin/ldconfig
80
81 %files
82 %manifest %{name}.manifest
83 %license COPYING.GPL-2.0+
84 %{_libdir}/libcryptsetup.so.*
85 %{_prefix}/lib/tmpfiles.d/cryptsetup.conf
86 %{_sbindir}/cryptsetup
87 %{_sbindir}/veritysetup
88
89 %files devel
90 %manifest %{name}.manifest
91 %license COPYING.GPL-2.0+
92 %{_includedir}/libcryptsetup.h
93 %{_libdir}/libcryptsetup.so
94 %{_libdir}/pkgconfig/libcryptsetup.pc
95
96 %files locale
97 %manifest %{name}.manifest
98 %license COPYING.GPL-2.0+
99 %{_datarootdir}/locale/cs/LC_MESSAGES/cryptsetup.mo
100 %{_datarootdir}/locale/da/LC_MESSAGES/cryptsetup.mo
101 %{_datarootdir}/locale/de/LC_MESSAGES/cryptsetup.mo
102 %{_datarootdir}/locale/es/LC_MESSAGES/cryptsetup.mo
103 %{_datarootdir}/locale/fi/LC_MESSAGES/cryptsetup.mo
104 %{_datarootdir}/locale/fr/LC_MESSAGES/cryptsetup.mo
105 %{_datarootdir}/locale/id/LC_MESSAGES/cryptsetup.mo
106 %{_datarootdir}/locale/it/LC_MESSAGES/cryptsetup.mo
107 %{_datarootdir}/locale/ja/LC_MESSAGES/cryptsetup.mo
108 %{_datarootdir}/locale/nl/LC_MESSAGES/cryptsetup.mo
109 %{_datarootdir}/locale/pl/LC_MESSAGES/cryptsetup.mo
110 %{_datarootdir}/locale/pt_BR/LC_MESSAGES/cryptsetup.mo
111 %{_datarootdir}/locale/ru/LC_MESSAGES/cryptsetup.mo
112 %{_datarootdir}/locale/sr/LC_MESSAGES/cryptsetup.mo
113 %{_datarootdir}/locale/sv/LC_MESSAGES/cryptsetup.mo
114 %{_datarootdir}/locale/uk/LC_MESSAGES/cryptsetup.mo
115 %{_datarootdir}/locale/vi/LC_MESSAGES/cryptsetup.mo
116 %{_datarootdir}/locale/zh_CN/LC_MESSAGES/cryptsetup.mo
117
118 %files doc
119 %manifest %{name}.manifest
120 %license COPYING.GPL-2.0+
121 %{_mandir}/man8/cryptsetup.8.gz
122 %{_mandir}/man8/veritysetup.8.gz