Compare commits
No commits in common. "debe7147fcb87af045f23030736ca19275205c4d" and "44c56284a48ec340f9e147b8bbd3e6721e880986" have entirely different histories.
debe7147fc
...
44c56284a4
BIN
libidn-1.38.tar.gz
Normal file
BIN
libidn-1.38.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1,61 +0,0 @@
|
|||||||
From d011a6ae00ce9abd445d6d01ce9131a7b97ef5bc Mon Sep 17 00:00:00 2001
|
|
||||||
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
|
||||||
Date: Tue, 3 Oct 2017 10:04:18 +0200
|
|
||||||
Subject: [PATCH] Allow disabling Emacs support
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=UTF-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
|
|
||||||
This patch adds --disable-emacs configure option to disable installing
|
|
||||||
LISP scripts for Emacs.
|
|
||||||
|
|
||||||
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
|
||||||
---
|
|
||||||
configure.ac | 9 ++++++++-
|
|
||||||
src/Makefile.am | 2 ++
|
|
||||||
2 files changed, 10 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/configure.ac b/configure.ac
|
|
||||||
index 649ddcd..a6dc9ff 100644
|
|
||||||
--- a/configure.ac
|
|
||||||
+++ b/configure.ac
|
|
||||||
@@ -51,7 +51,6 @@ LT_INIT([win32-dll])
|
|
||||||
AM_MISSING_PROG(PERL, perl, $missing_dir)
|
|
||||||
AM_MISSING_PROG(HELP2MAN, help2man, $missing_dir)
|
|
||||||
AM_ICONV
|
|
||||||
-AM_PATH_LISPDIR
|
|
||||||
|
|
||||||
AM_GNU_GETTEXT([external])
|
|
||||||
AM_GNU_GETTEXT_VERSION([0.19.3])
|
|
||||||
@@ -100,6 +99,14 @@ AM_CONDITIONAL(JAVA, test "$enable_java" != "no")
|
|
||||||
AC_MSG_CHECKING([if implementation in Java should be built])
|
|
||||||
AC_MSG_RESULT($enable_java)
|
|
||||||
|
|
||||||
+# Check for Emacs
|
|
||||||
+AC_ARG_ENABLE(emacs, AC_HELP_STRING([--disable-emacs], [disable Emacs support]),
|
|
||||||
+ enable_emacs=$enableval, enable_emacs=yes)
|
|
||||||
+AM_CONDITIONAL(EMACS, test "$enable_emacs" != "no")
|
|
||||||
+if test "$enable_emacs" != "no"; then
|
|
||||||
+ AM_PATH_LISPDIR
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
# Check for C#
|
|
||||||
if test -n "$HAVE_CSHARPCOMP"; then
|
|
||||||
gt_CSHARPEXEC
|
|
||||||
diff --git a/src/Makefile.am b/src/Makefile.am
|
|
||||||
index 6832c20..ec99560 100644
|
|
||||||
--- a/src/Makefile.am
|
|
||||||
+++ b/src/Makefile.am
|
|
||||||
@@ -20,7 +20,9 @@ AM_CFLAGS = $(WERROR_CFLAGS) $(WARN_CFLAGS)
|
|
||||||
AM_CPPFLAGS = -I$(top_srcdir)/lib -I../lib -I$(top_srcdir)/gl -I../gl
|
|
||||||
AM_CPPFLAGS += -DLOCALEDIR=\"$(localedir)\"
|
|
||||||
|
|
||||||
+if EMACS
|
|
||||||
dist_lisp_DATA = punycode.el idna.el
|
|
||||||
+endif
|
|
||||||
|
|
||||||
bin_PROGRAMS = idn
|
|
||||||
idn_SOURCES = idn.c
|
|
||||||
--
|
|
||||||
2.13.6
|
|
||||||
|
|
||||||
51
libidn.spec
51
libidn.spec
@ -1,31 +1,20 @@
|
|||||||
# Build with Emacs support
|
%bcond_with java
|
||||||
%bcond_without libidn_enables_emacs
|
|
||||||
%bcond_with java
|
|
||||||
|
|
||||||
Name: libidn
|
Name: libidn
|
||||||
Version: 1.41
|
Version: 1.38
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: GNU IDN Library - Libidn
|
Summary: GNU IDN Library - Libidn
|
||||||
License: LGPLv2+ and GPLv3+ and GFDL-1.3-or-later
|
License: LGPLv2+ and GPLv3+ and GFDL
|
||||||
URL: http://www.gnu.org/software/libidn/
|
URL: http://www.gnu.org/software/libidn/
|
||||||
Source0: http://ftp.gnu.org/gnu/libidn/libidn-%{version}.tar.gz
|
Source0: http://ftp.gnu.org/gnu/libidn/libidn-%{version}.tar.gz
|
||||||
|
|
||||||
# Allow disabling Emacs support
|
|
||||||
Patch0: libidn-emacsopt.patch
|
|
||||||
|
|
||||||
BuildRequires: autoconf autoconf-archive automake libtool texinfo
|
BuildRequires: autoconf autoconf-archive automake libtool texinfo
|
||||||
BuildRequires: gcc gettext gettext-devel pkgconfig help2man
|
BuildRequires: gcc gettext gettext-devel pkgconfig help2man emacs
|
||||||
BuildRequires: gtk-doc
|
BuildRequires: gtk-doc
|
||||||
%if %{with libidn_enables_emacs}
|
|
||||||
BuildRequires: emacs
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Provides: bundled(gnulib)
|
Provides: bundled(gnulib)
|
||||||
%if %{with libidn_enables_emacs}
|
|
||||||
Obsoletes: emacs-libidn < 1.30-4
|
Obsoletes: emacs-libidn < 1.30-4
|
||||||
Provides: emacs-libidn < 1.30-4
|
Provides: emacs-libidn < 1.30-4
|
||||||
Requires: emacs-filesystem >= %{_emacs_version}
|
Requires: emacs-filesystem >= %{_emacs_version}
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
GNU Libidn is a fully documented implementation of the Stringprep, Punycode and IDNA 2003 specifications.
|
GNU Libidn is a fully documented implementation of the Stringprep, Punycode and IDNA 2003 specifications.
|
||||||
@ -69,13 +58,7 @@ autoreconf -vif
|
|||||||
touch src/idn_cmd.c src/idn_cmd.h
|
touch src/idn_cmd.c src/idn_cmd.h
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-csharp \
|
%configure --disable-csharp --enable-emacs --with-lispdir=%{_emacs_sitelispdir}/%{name} \
|
||||||
%if %{with libidn_enables_emacs}
|
|
||||||
--enable-emacs \
|
|
||||||
--with-lispdir=%{_emacs_sitelispdir}/%{name} \
|
|
||||||
%else
|
|
||||||
--disable-emacs \
|
|
||||||
%endif
|
|
||||||
%if %{with java}
|
%if %{with java}
|
||||||
--enable-java
|
--enable-java
|
||||||
%else
|
%else
|
||||||
@ -87,11 +70,6 @@ export LD_LIBRARY_PATH=$(pwd)/lib/.libs
|
|||||||
|
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
%check
|
|
||||||
# without RPATH this needs to be set to test the compiled library
|
|
||||||
export LD_LIBRARY_PATH=$(pwd)/lib/.libs
|
|
||||||
%make_build -C tests check VALGRIND=env
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
|
|
||||||
@ -99,9 +77,7 @@ rm -rf %{buildroot}%{_datadir}/info/dir
|
|||||||
rm -rf %{buildroot}%{_libdir}/*.la \
|
rm -rf %{buildroot}%{_libdir}/*.la \
|
||||||
%{buildroot}%{_datadir}/info/*.png
|
%{buildroot}%{_datadir}/info/*.png
|
||||||
|
|
||||||
%if %{with libidn_enables_emacs}
|
|
||||||
%{_emacs_bytecompile} $RPM_BUILD_ROOT%{_emacs_sitelispdir}/%{name}/*.el
|
%{_emacs_bytecompile} $RPM_BUILD_ROOT%{_emacs_sitelispdir}/%{name}/*.el
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with java}
|
%if %{with java}
|
||||||
rm -rf doc/java/*
|
rm -rf doc/java/*
|
||||||
@ -121,9 +97,7 @@ rm -rf $RPM_BUILD_ROOT%{_javadir}/libidn*.jar
|
|||||||
%doc AUTHORS NEWS FAQ THANKS README
|
%doc AUTHORS NEWS FAQ THANKS README
|
||||||
%{_bindir}/idn
|
%{_bindir}/idn
|
||||||
%{_libdir}/libidn.so.12*
|
%{_libdir}/libidn.so.12*
|
||||||
%if %{with libidn_enables_emacs}
|
|
||||||
%{_emacs_sitelispdir}/%{name}
|
%{_emacs_sitelispdir}/%{name}
|
||||||
%endif
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_libdir}/libidn.so
|
%{_libdir}/libidn.so
|
||||||
@ -145,21 +119,6 @@ rm -rf $RPM_BUILD_ROOT%{_javadir}/libidn*.jar
|
|||||||
%{_infodir}/%{name}.info.gz
|
%{_infodir}/%{name}.info.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Jul 28 2023 zhuofeng <zhuofeng2@huawei.com> - 1.41-1
|
|
||||||
- update version to 1.41
|
|
||||||
|
|
||||||
* Sat May 27 2023 yanglongkang <yanglongkang@h-partners.com> - 1.38-5
|
|
||||||
- enable check
|
|
||||||
|
|
||||||
* Sat Oct 29 2022 dongyuzhen <dongyuzhen@h-partners.com> - 1.38-4
|
|
||||||
- Rebuild for next release
|
|
||||||
|
|
||||||
* Mon Jun 6 2022 Chenyx <chenyixiong3@huawei.com> - 1.38-3
|
|
||||||
- License compliance rectification
|
|
||||||
|
|
||||||
* Tue Feb 15 2022 fuanan <fuanan3@h-partners.com> - 1.38-2
|
|
||||||
- Add build-conditions disabling Emacs
|
|
||||||
|
|
||||||
* Tue Feb 8 2022 fuanan <fuanan3@h-partners.com> - 1.38-1
|
* Tue Feb 8 2022 fuanan <fuanan3@h-partners.com> - 1.38-1
|
||||||
- Type:enhancement
|
- Type:enhancement
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user