From: Jacek Pielaszkiewicz Date: Fri, 11 Oct 2013 11:08:55 +0000 (+0200) Subject: Initial packaging directory. X-Git-Tag: accepted/tizen/common/20160511.142311~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=475038768f5f2e8ef3e305aa71ad48794474ca32;p=platform%2Fupstream%2Fcryptsetup.git Initial packaging directory. Change-Id: I8b9ff3fc9406350756c4eb4c4df7e1aafffc965a Signed-off-by: Jacek Pielaszkiewicz --- diff --git a/packaging/cryptsetup.manifest b/packaging/cryptsetup.manifest new file mode 100644 index 0000000..808c7a9 --- /dev/null +++ b/packaging/cryptsetup.manifest @@ -0,0 +1,6 @@ + + + + + + diff --git a/packaging/cryptsetup.spec b/packaging/cryptsetup.spec new file mode 100644 index 0000000..85d8180 --- /dev/null +++ b/packaging/cryptsetup.spec @@ -0,0 +1,103 @@ +Name: cryptsetup +Summary: The cryptsetup +Version: 1.6 +Release: 1 +License: GPL-2.0 +Group: Base/Device Management +URL: http://code.google.com/p/cryptsetup/ +Source0: %{name}-%{version}.tar.gz +Source1: cryptsetup.manifest + +BuildRequires: linux-kernel-headers +BuildRequires: device-mapper-devel +BuildRequires: libgpg-error-devel +BuildRequires: libgcrypt-devel +BuildRequires: libuuid-devel +BuildRequires: util-linux +BuildRequires: popt-devel +BuildRequires: automake +BuildRequires: gettext + +Requires: libgpg-error +Requires: libdevmapper +Requires: libgcrypt + +%description +setup cryptographic volumes for dm-crypt (including LUKS extension) + +%package devel +Summary: The cryptsetup development package +Group: Development/Libraries +License: LGPL-2.1 +Requires: %{name} = %{version}-%{release} + +%description devel +cryptsetup development package + +%package locale +License: GPL-2.0 +Summary: The cryptsetup locale package +Group: Base/Device Management +Requires: %{name} = %{version}-%{release} + +%description locale +locale package for cryptsetup + +%package doc +License: GPL-2.0 +Summary: The cryptsetup doc package +Group: Base/Device Management +Requires: %{name} = %{version}-%{release} + +%description doc +doc package for cryptsetup + +%prep +%setup -q + +%build +./autogen.sh --prefix=%{_prefix} -localedir=%{_prefix}/share/locale + +make %{?jobs:-j%jobs} + +%install +rm -rf %{buildroot} +%make_install +cp -a %{SOURCE1} %{buildroot}%{_datadir}/binary_package_name.manifest + +%clean + +%post -p /sbin/ldconfig + +%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.5.0 +%{_prefix}/sbin/cryptsetup +%{_prefix}/sbin/veritysetup + +%files devel +%{_prefix}/include/libcryptsetup.h +%{_prefix}/lib/libcryptsetup.so +%{_prefix}/lib/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 + +%files doc +%{_prefix}/share/man/man8/cryptsetup.8.gz +%{_prefix}/share/man/man8/veritysetup.8.gz