]> git.pld-linux.org Git - packages/cryptsetup.git/blobdiff - cryptsetup.spec
- tabs in preamble
[packages/cryptsetup.git] / cryptsetup.spec
index 550249b45154264dfc5dc98c5005dcf9f45063d2..6ef109bc3b230a829b9c30213ab826076fbf13ce 100644 (file)
@@ -1,22 +1,39 @@
 #
-# todo:
-# - static library
+# Conditonal build:
+%bcond_with    static  # link cryptsetup statically
 #
 Summary:       LUKS for dm-crypt implemented in cryptsetup
+Summary(pl.UTF-8):     LUKS dla dm-crypta zaimplementowany w cryptsetup
 Name:          cryptsetup-luks
-Version:       1.0
-Release:       0.2
+Version:       1.0.4
+Release:       1
 License:       GPL
 Group:         Base
 Source0:       http://luks.endorphin.org/source/%{name}-%{version}.tar.bz2
-# Source0-md5: 62c4bff081e470fb2c9a0f2cb890e613
+# Source0-md5: 156ae6b618438ee9feeddc6c2bdc4e94
+Patch1:                %{name}-nostatic.patch
 URL:           http://luks.endorphin.org/about
+BuildRequires: autoconf
+BuildRequires: automake
 BuildRequires: device-mapper-devel
+BuildRequires: gettext-devel
 BuildRequires: libgcrypt-devel >= 1.1.42
+BuildRequires: libselinux-devel
+BuildRequires: libsepol-devel
 BuildRequires: libuuid-devel
 BuildRequires: popt-devel
+BuildRequires: libtool
+%if %{with static}
+BuildRequires: device-mapper-static >= 1.02.07
+BuildRequires: libgcrypt-static >= 1.1.42
+BuildRequires: libgpg-error-static
+BuildRequires: libselinux-static
+BuildRequires: libsepol-static
+BuildRequires: libuuid-static
+BuildRequires: popt-static
+%endif
+Provides:      cryptsetup = 0.2-1.pre1.8
 Obsoletes:     cryptsetup
-Provides:      cryptsetup
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _sbindir        /sbin
@@ -32,40 +49,61 @@ enabling the user to transport or migrate his data seamlessly.
 This package contains implementation of LUKS for dm-crypt implemented
 in cryptsetup.
 
+%description -l pl.UTF-8
+LUKS to nadchodzący standard linuksowego szyfrowania twardego dysku.
+Dostarczając standardowy format danych na dysku nie tylko ułatwia
+utrzymanie kompatybilności między dystrybucjami, ale także dostarcza
+bezpieczne zarządzanie wieloma hasłami użytkowników. W przeciwieństwie
+do istniejącego rozwiązania LUKS przechowuje wszystkie potrzebne
+informacje o konfiguracji w nagłówku partycji, pozwalając
+użytkownikowi przenosić lub migrować dane w sposób przezroczysty.
+
+Ten pakiet zawiera implementację LUKS dla dm-crytpa zaimplementowaną w
+cryptsetup.
+
 %package devel
 Summary:       Header files for cryptsetup library
-Summary(pl):   Pliki nag³ówkowe biblioteki cryptsetup
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki cryptsetup
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
 Requires:      device-mapper-devel
 Requires:      libgcrypt-devel >= 1.1.42
-Obsoletes:     cryptsetup-devel
 Provides:      cryptsetup-devel
+Obsoletes:     cryptsetup-devel
 
 %description devel
 Header files for cryptsetup library.
 
-%description devel -l pl
-Pliki nag³ówkowe biblioteki cryptsetup.
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki cryptsetup.
 
 %package static
 Summary:       Static cryptsetup library
-Summary(pl):   Statyczna biblioteka cryptsetup
+Summary(pl.UTF-8):     Statyczna biblioteka cryptsetup
 Group:         Development/Libraries
 Requires:      %{name}-devel = %{version}-%{release}
+Provides:      cryptsetup-static
+Obsoletes:     cryptsetup-static
 
 %description static
 Static version of cryptsetup library.
 
-%description static -l pl
+%description static -l pl.UTF-8
 Statyczna wersja biblioteki cryptsetup.
 
 %prep
 %setup -q
+%patch1 -p1
 
 %build
-%configure
-#      --enable-static
+%{__gettextize}
+%{__autoheader}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__automake}
+%configure \
+       --enable-static \
+       %{?with_static:--enable-static-cryptsetup}
 %{__make}
 
 %install
@@ -102,4 +140,4 @@ rm -rf $RPM_BUILD_ROOT
 
 %files static
 %defattr(644,root,root,755)
-#%{_libdir}/libcryptsetup.a
+%{_libdir}/libcryptsetup.a
This page took 1.56609 seconds and 4 git commands to generate.