SPECS: suspend2-userui.spec - bcond: --with static
shadzik
shadzik at pld-linux.org
Sat Jul 15 14:44:30 CEST 2006
Author: shadzik Date: Sat Jul 15 12:44:30 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- bcond: --with static
---- Files affected:
SPECS:
suspend2-userui.spec (1.9 -> 1.10)
---- Diffs:
================================================================
Index: SPECS/suspend2-userui.spec
diff -u SPECS/suspend2-userui.spec:1.9 SPECS/suspend2-userui.spec:1.10
--- SPECS/suspend2-userui.spec:1.9 Sat Jul 15 02:33:46 2006
+++ SPECS/suspend2-userui.spec Sat Jul 15 14:44:24 2006
@@ -1,4 +1,6 @@
# $Revision$, $Date$
+%bcond_with static # don't use shared libraries
+
Summary: Suspend2 User UI
Summary(de): Suspend2 Benutzer Interface
Summary(pl): Interfejs użytkownika dla Suspend2
@@ -19,6 +21,15 @@
BuildRequires: libmng-devel
BuildRequires: libpng-devel
BuildRequires: zlib-devel
+%if %{with static}
+BuildRequires: freetype-static
+BuildRequires: glibc-static
+BuildRequires: lcms-static
+BuildRequires: libjpeg-static
+BuildRequires: libmng-static
+BuildRequires: libpng-static
+BuildRequires: zlib-static
+%endif
Requires: hibernate >= 1.12
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -43,7 +54,8 @@
%build
%{__make} \
CC="%{__cc}" \
- CFLAGS="%{rpmcflags}"
+ CFLAGS="%{rpmcflags}" \
+ %{?with_static:LDFLAGS="-static"}
%install
rm -rf $RPM_BUILD_ROOT
@@ -66,6 +78,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.10 2006/07/15 12:44:24 shadzik
+- bcond: --with static
+
Revision 1.9 2006/07/15 00:33:46 shadzik
- use %{__make} install as instalation method; we need to patch Makefile to do this
- more files (suspend2ui_usplash)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/suspend2-userui.spec?r1=1.9&r2=1.10&f=u
More information about the pld-cvs-commit
mailing list