%package devel
Summary: The cryptsetup development package
Group: Development/Libraries
-License: LGPL-2.1
+License: LGPL-2.1+
Requires: %{name} = %{version}-%{release}
%description devel
%build
chmod +x ./autogen.sh
-./autogen.sh --prefix=%{_prefix} -localedir=%{_prefix}/share/locale
+./autogen.sh --prefix=%{_prefix} -localedir=%{_datarootdir}/locale -libdir=%{_libdir}
make %{?jobs:-j%jobs}
%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
+%license COPYING
+%{_libdir}/libcryptsetup.so
+%{_libdir}/libcryptsetup.so.4
+%{_libdir}/libcryptsetup.so.4.7.0
+%{_sbindir}/cryptsetup
+%{_sbindir}/veritysetup
%files devel
-%{_prefix}/include/libcryptsetup.h
-%{_prefix}/lib/libcryptsetup.so
-%{_prefix}/lib/pkgconfig/libcryptsetup.pc
+%{_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
+%{_datarootdir}/locale/cs/LC_MESSAGES/cryptsetup.mo
+%{_datarootdir}/locale/de/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/nl/LC_MESSAGES/cryptsetup.mo
+%{_datarootdir}/locale/pl/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/es/LC_MESSAGES/cryptsetup.mo
%files doc
-%{_prefix}/share/man/man8/cryptsetup.8.gz
-%{_prefix}/share/man/man8/veritysetup.8.gz
+%{_mandir}/man8/cryptsetup.8.gz
+%{_mandir}/man8/veritysetup.8.gz