]> git.pld-linux.org Git - packages/libidn.git/commitdiff
- AC compatible
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 27 Aug 2008 19:40:06 +0000 (19:40 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- remove ELF executable from %doc

Changed files:
    libidn.spec -> 1.78

libidn.spec

index dc82d1752994cc0e7052375fe48b67a1a830f6f4..59cba40be4e5f387f0842c236539ab1f8effd859 100644 (file)
@@ -2,8 +2,13 @@
 # - prepare package with web-files and java from contrib
 #
 # Conditional build:
+%if "%{pld_release}" == "ac"
+%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
+%endif
 %bcond_without python  # don't build python interface
 #
 %ifnarch %{ix86} %{x8664} alpha arm hppa ppc s390 s390x sparc sparcv9 sparc64
@@ -35,6 +40,7 @@ BuildRequires:        perl-base
 %{?with_python:BuildRequires:  python-devel >= 1:2.3}
 %{?with_python:BuildRequires:  rpm-pythonprov}
 BuildRequires: rpmbuild(macros) >= 1.384
+BuildRequires: rpm >= 4.4.9-56
 BuildRequires: texinfo >= 4.7
 Requires(post,postun): /sbin/ldconfig
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -159,6 +165,7 @@ JAR=%{_bindir}/fastjar \
 %if %{with python}
 %{__make} -C contrib/idn-python \
        INCLUDE="%{py_incdir} %{rpmcflags} -I../../lib -L../../lib/.libs"
+mv contrib/idn-python/idn.so python-idn.so
 %endif
 
 %install
@@ -168,7 +175,7 @@ rm -rf $RPM_BUILD_ROOT
        DESTDIR=$RPM_BUILD_ROOT
 
 %if %{with python}
-install -D contrib/idn-python/idn.so $RPM_BUILD_ROOT%{py_sitedir}/idn.so
+install -D python-idn.so $RPM_BUILD_ROOT%{py_sitedir}/idn.so
 %endif
 
 %find_lang %{name}
This page took 0.064765 seconds and 4 git commands to generate.