]> git.pld-linux.org Git - packages/libidn.git/blobdiff - libidn.spec
add static_libs bcond
[packages/libidn.git] / libidn.spec
index 194d1455d57603528b362bb22a1f780a666eebe7..11a56c429891648e57d42209ead11296ad378b41 100644 (file)
@@ -3,13 +3,14 @@
 #
 # Conditional build:
 %if "%{pld_release}" == "ac"
-%bcond_with    dotnet  # don't build C# binding
-%bcond_with    java    # don't build Java implementation
+%bcond_with    dotnet          # don't build C# binding
+%bcond_with    java            # don't build Java implementation
 %else
-%bcond_without dotnet  # don't build C# binding
-%bcond_without java    # don't build Java implementation
+%bcond_without dotnet          # don't build C# binding
+%bcond_without java            # don't build Java implementation
 %endif
-%bcond_without python  # don't build python interface
+%bcond_without python          # don't build python interface
+%bcond_without static_libs     # static library
 #
 %ifnarch %{ix86} %{x8664} alpha %{arm} hppa ppc s390 s390x sparc sparcv9 sparc64
 %undefine      with_dotnet
 Summary:       Internationalized string processing library
 Summary(pl.UTF-8):     Biblioteka do przetwarzania umiędzynarodowionych łańcuchów
 Name:          libidn
-Version:       1.36
-Release:       2
+Version:       1.42
+Release:       1
 License:       GPL v2+ or LGPL v3+ (library), GPL v3+ (utilities)
 Group:         Libraries
 Source0:       https://ftp.gnu.org/gnu/libidn/%{name}-%{version}.tar.gz
-# Source0-md5: 813c7b268d1051ca02c3610986126f38
+# Source0-md5: fe061a95ae23979150a692d102dce4ad
 Patch0:                %{name}-info.patch
 Patch1:                %{name}-python.patch
 URL:           http://www.gnu.org/software/libidn/
 BuildRequires: autoconf >= 2.61
 BuildRequires: automake >= 1:1.10
-BuildRequires: gettext-tools >= 0.19.3
+BuildRequires: gettext-tools >= 0.21
 BuildRequires: gtk-doc >= 1.1
 BuildRequires: help2man
 %{?with_java:BuildRequires:    jdk}
@@ -43,7 +44,7 @@ BuildRequires:        pkgconfig
 %{?with_python:BuildRequires:  python-devel >= 1:2.3}
 BuildRequires: rpm >= 4.4.9-56
 %{?with_python:BuildRequires:  rpm-pythonprov}
-BuildRequires: rpmbuild(macros) >= 1.384
+BuildRequires: rpmbuild(macros) >= 1.527
 BuildRequires: texinfo >= 4.7
 Requires(post,postun): /sbin/ldconfig
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -160,9 +161,6 @@ d=${d#?Date: }; d=${d%%%% *}; d=$(date -d "$d" '+%d %B %Y')
 # (after libidn or libtool change)
 %{__sed} -i -e '/AM_INIT_AUTOMAKE/s/-Werror//' configure.ac
 
-# rebuild from sources
-%{__rm} java/libidn-%{version}.jar
-
 %build
 %{__gettextize}
 %{__libtoolize}
@@ -172,6 +170,7 @@ d=${d#?Date: }; d=${d%%%% *}; d=$(date -d "$d" '+%d %B %Y')
 %{__automake}
 %configure \
        --disable-silent-rules \
+       %{__enable_disable static_libs static} \
        %{?with_dotnet:--enable-csharp=mono}%{!?with_dotnet:--disable-csharp} \
        %{?with_java:--enable-java} \
        --with-lispdir=%{_emacs_lispdir}
@@ -211,7 +210,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog FAQ NEWS README* THANKS TODO doc/libidn.html contrib/web
+%doc AUTHORS ChangeLog FAQ NEWS README* THANKS doc/libidn-components.pdf contrib/web
 %attr(755,root,root) %{_bindir}/idn
 %attr(755,root,root) %{_libdir}/libidn.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libidn.so.12
@@ -237,9 +236,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man3/stringprep*.3*
 %{_mandir}/man3/tld_*.3*
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libidn.a
+%endif
 
 %if %{with dotnet}
 %files -n dotnet-libidn
This page took 0.218271 seconds and 4 git commands to generate.