- there IS libasprintf (but requires gcc-c++)
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 20 Dec 2003 14:20:03 +0000 (14:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    crossmingw32-gettext.spec -> 1.9

crossmingw32-gettext.spec

index 2698707..add0001 100644 (file)
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without asprintf        # without libasprintf (in C++)
+#
 %define                realname                gettext
 Summary:       gettext libraries - cross mingw32 version
 Summary(pl):   Biblioteki gettext - wersja skro┬Âna dla mingw32
@@ -17,6 +21,7 @@ URL:          http://www.gnu.org/software/gettext/
 BuildRequires: autoconf >= 2.57
 BuildRequires: automake >= 1.7.5
 BuildRequires: crossmingw32-gcc
+%{?with_asprintf:BuildRequires:        crossmingw32-gcc-c++}
 BuildRequires: crossmingw32-libiconv
 BuildRequires: libtool
 Requires:      crossmingw32-libiconv
@@ -83,8 +88,10 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %{_bindir}/libintl-2.dll
-#%{_libdir}/libasprintf.a
-#%{_libdir}/libasprintf.la
+%if %{with asprintf}
+%{_libdir}/libasprintf.a
+%{_libdir}/libasprintf.la
+%endif
 %{_libdir}/libintl.dll.a
 %{_libdir}/libintl.la
 %{_includedir}/*.h
This page took 0.060767 seconds and 4 git commands to generate.