]> git.pld-linux.org Git - packages/libxcrypt.git/commitdiff
- new URLs, updated to 3.1.1 (now includes crypt_blowfish 1.3) auto/th/libxcrypt-3.1.1-1
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 10 Apr 2017 18:17:27 +0000 (20:17 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Mon, 10 Apr 2017 18:17:27 +0000 (20:17 +0200)
- updated noWerror patch
- added link patch

libxcrypt-link.patch [new file with mode: 0644]
libxcrypt-noWerror.patch
libxcrypt.spec

diff --git a/libxcrypt-link.patch b/libxcrypt-link.patch
new file mode 100644 (file)
index 0000000..147c5d1
--- /dev/null
@@ -0,0 +1,10 @@
+--- libxcrypt-3.1.1/plugins/blowfish/Makefile.am.orig  2015-05-13 01:29:46.000000000 +0200
++++ libxcrypt-3.1.1/plugins/blowfish/Makefile.am       2017-04-10 19:13:39.158177658 +0200
+@@ -16,6 +16,7 @@
+ TESTS = blowfish-test
++libxcrypt_2a_la_LIBADD = -ldl
+ libxcrypt_2a_la_LDFLAGS = -version-info 1:0:0 \
+               -Wl,--version-script=$(top_srcdir)/plugins/plugin.map
index 1efa071742d308c012507fa11f5641e1c3948414..bade05f54f7ed6b4598f8f3e0e691b10df1b80f4 100644 (file)
@@ -1,12 +1,11 @@
-diff -dur libxcrypt-3.0.2.orig/configure.in libxcrypt-3.0.2/configure.in
---- libxcrypt-3.0.2.orig/configure.in  2008-07-16 14:30:29.000000000 +0200
-+++ libxcrypt-3.0.2/configure.in       2012-06-19 12:27:48.000000000 +0200
-@@ -29,7 +29,7 @@
- EXTRA_CFLAGS=""
- if eval "test x$GCC = xyes"; then
--    EXTRA_CFLAGS="-W -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wshadow -Wstrict-prototypes -Wundef -Wpointer-arith -Werror"
-+    EXTRA_CFLAGS="-W -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wshadow -Wstrict-prototypes -Wundef -Wpointer-arith"
+--- libxcrypt-3.1.1/configure.ac.orig  2015-05-13 01:29:46.000000000 +0200
++++ libxcrypt-3.1.1/configure.ac       2017-04-10 18:59:27.731520714 +0200
+@@ -38,7 +38,7 @@
+     EXTRA_CFLAGS="$EXTRA_CFLAGS -Wcast-qual -Winline"
+     EXTRA_CFLAGS="$EXTRA_CFLAGS -Wmissing-declarations -Wmissing-prototypes"
+     EXTRA_CFLAGS="$EXTRA_CFLAGS -Wnested-externs -Wshadow -Wstrict-prototypes"
+-    EXTRA_CFLAGS="$EXTRA_CFLAGS -Wundef -Wpointer-arith -Werror"
++    EXTRA_CFLAGS="$EXTRA_CFLAGS -Wundef -Wpointer-arith"
  fi
  AC_SUBST(EXTRA_CFLAGS)
  
index b2d46ffb59d104cdd9bb9041f08a9ff48a7c3a4d..e9e11f3edf8adcacbd58ea11af6b694dcdf5d9c9 100644 (file)
@@ -1,14 +1,20 @@
 Summary:       Crypt Library for DES, MD5, and Blowfish
 Summary(pl.UTF-8):     Biblioteka szyfrująca hasła obsługująca DES, MD5 i Blowfish
 Name:          libxcrypt
-Version:       3.0.2
-Release:       3
+Version:       3.1.1
+Release:       1
 License:       LGPL v2.1+ (library), LGPL v2.1+/Public Domain (plugins)
 Group:         Libraries
-Source0:       ftp://ftp.suse.com/pub/people/kukuk/libxcrypt/%{name}-%{version}.tar.bz2
-# Source0-md5: 56cf4285086f26649b8792b53fe8b00f
+#Source0Download: https://github.com/besser82/libxcrypt/releases
+Source0:       https://github.com/besser82/libxcrypt/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 7eff183695f0dc4744b0f4bc8334eae9
 Patch0:                %{name}-noWerror.patch
 Patch1:                %{name}-libc-lock.patch
+Patch2:                %{name}-link.patch
+URL:           https://github.com/besser82/libxcrypt
+BuildRequires: autoconf >= 2.50
+BuildRequires: automake >= 1:1.7
+BuildRequires: libtool >= 2:2
 BuildRequires: sed >= 4.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -57,8 +63,14 @@ Ten pakiet zawiera statyczną wersję biblioteki libxcrypt.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
 %configure \
        --libdir=/%{_lib}
 %{__make}
@@ -70,8 +82,8 @@ install -d $RPM_BUILD_ROOT%{_libdir}
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-mv -f $RPM_BUILD_ROOT/%{_lib}/libxcrypt.{so,la,a} $RPM_BUILD_ROOT%{_libdir}
-sed -i -e 's#/%{_lib}#%{_libdir}#g' $RPM_BUILD_ROOT%{_libdir}/libxcrypt.la
+%{__mv} $RPM_BUILD_ROOT/%{_lib}/libxcrypt.{so,la,a} $RPM_BUILD_ROOT%{_libdir}
+%{__sed} -i -e 's#/%{_lib}#%{_libdir}#g' $RPM_BUILD_ROOT%{_libdir}/libxcrypt.la
 ln -snf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libxcrypt.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libxcrypt.so
 
 %{__rm} $RPM_BUILD_ROOT/%{_lib}/xcrypt/*.{la,a}
This page took 1.223466 seconds and 4 git commands to generate.