]> git.pld-linux.org Git - packages/libidn.git/blobdiff - libidn.spec
add static_libs bcond
[packages/libidn.git] / libidn.spec
index e49747e06944a39a2cb5956937ea886c56aa3981..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.40
+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: 3bdf267007fedccc02df7d3ef2a488c0
+# Source0-md5: fe061a95ae23979150a692d102dce4ad
 Patch0:                %{name}-info.patch
 Patch1:                %{name}-python.patch
 URL:           http://www.gnu.org/software/libidn/
@@ -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)
@@ -169,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}
@@ -234,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.056265 seconds and 4 git commands to generate.