SPECS: libmng.spec - added gtk and motif bconds
qboosh
qboosh at pld-linux.org
Tue Jul 11 11:53:42 CEST 2006
Author: qboosh Date: Tue Jul 11 09:53:42 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added gtk and motif bconds
---- Files affected:
SPECS:
libmng.spec (1.47 -> 1.48)
---- Diffs:
================================================================
Index: SPECS/libmng.spec
diff -u SPECS/libmng.spec:1.47 SPECS/libmng.spec:1.48
--- SPECS/libmng.spec:1.47 Thu May 5 23:29:22 2005
+++ SPECS/libmng.spec Tue Jul 11 11:53:37 2006
@@ -1,6 +1,8 @@
# $Revision$, $Date$
#
# Conditional build:
+%bcond_without gtk # don't build GTK+-based contribs
+%bcond_without motif # don't build Motif-based contribs
%bcond_without sdl # don't build SDL-based contribs
#
Summary: A library of functions for manipulating MNG format files
@@ -25,8 +27,8 @@
BuildRequires: zlib-devel
# for contribs
%{?with_sdl:BuildRequires: SDL-devel}
-BuildRequires: gtk+2-devel >= 1:2.0.0
-BuildRequires: motif-devel >= 2.0
+%{?with_gtk:BuildRequires: gtk+2-devel >= 1:2.0.0}
+%{?with_motif:BuildRequires: motif-devel >= 2.0}
BuildRequires: pkgconfig
Obsoletes: libmng1
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -181,10 +183,12 @@
CFLAGS="%{rpmcflags} -Wall -D_REENTRANT -I../../.." \
LDFLAGS="%{rpmldflags} -L../../../.libs"
+%if %{with gtk}
%{__make} -C contrib/gcc/gtk-mng-view gmngview \
CC="%{__cc}" \
CFLAGS="%{rpmcflags} -Wall -I../../.. `pkg-config --cflags gdk-pixbuf-2.0 gtk+-2.0`" \
LIBS="%{rpmldflags} -L../../../.libs -lmng `pkg-config --libs gdk-pixbuf-2.0 gtk+-2.0`"
+%endif
%{__make} -C contrib/gcc/mngtree -f makefile.linux \
CC="%{__cc}" \
@@ -197,10 +201,12 @@
-L.libs -lmng `sdl-config --libs`
%endif
+%if %{with motif}
%{__make} -C contrib/gcc/xmngview compile \
CC="%{__cc}" \
CFLAGS="%{rpmcflags} -Wall -I../../.. -I/usr/X11R6/include" \
LIBS="-L../../../.libs -lmng -L/usr/X11R6/%{_lib} -lXm -lXt -lX11"
+%endif
%install
rm -rf $RPM_BUILD_ROOT
@@ -209,7 +215,7 @@
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-install contrib/gcc/*/{fbmngplay,gmngview,mngtree%{?with_sdl:,mngplay},xmngview} \
+install contrib/gcc/*/{fbmngplay%{?with_gtk:,gmngview},mngtree%{?with_sdl:,mngplay}%{?with_motif:,xmngview}} \
$RPM_BUILD_ROOT%{_bindir}
%clean
@@ -241,13 +247,17 @@
%attr(755,root,root) %{_bindir}/fbmngplay
%attr(755,root,root) %{_bindir}/mngtree
+%if %{with gtk}
%files progs-gtk
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/gmngview
+%endif
+%if %{with motif}
%files progs-motif
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/xmngview
+%endif
%if %{with sdl}
%files progs-sdl
@@ -261,6 +271,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.48 2006/07/11 09:53:37 qboosh
+- added gtk and motif bconds
+
Revision 1.47 2005/05/05 21:29:22 mmazur
- rel 4 (sdl was broken)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/libmng.spec?r1=1.47&r2=1.48&f=u
More information about the pld-cvs-commit
mailing list