SPECS: mkvtoolnix.spec - gui bcond
freetz
freetz at pld-linux.org
Tue Oct 11 17:58:04 CEST 2005
Author: freetz Date: Tue Oct 11 15:58:03 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- gui bcond
---- Files affected:
SPECS:
mkvtoolnix.spec (1.7 -> 1.8)
---- Diffs:
================================================================
Index: SPECS/mkvtoolnix.spec
diff -u SPECS/mkvtoolnix.spec:1.7 SPECS/mkvtoolnix.spec:1.8
--- SPECS/mkvtoolnix.spec:1.7 Wed Aug 24 23:35:42 2005
+++ SPECS/mkvtoolnix.spec Tue Oct 11 17:57:58 2005
@@ -2,6 +2,9 @@
# TODO:
# - make subpackage -gui (wxWidgets deps)
#
+# Conditional build
+%bcond_without gui # disable GUI build (wxWigets deps)
+#
Summary: Matroska video utilities
Summary(pl): Narzędzia do filmów w formacie Matroska
Name: mkvtoolnix
@@ -21,7 +24,7 @@
BuildRequires: libogg-devel
BuildRequires: libvorbis-devel
BuildRequires: sed >= 4.0
-BuildRequires: wxGTK2-devel
+%{?with_gui:BuildRequires: wxGTK2-devel}
BuildRequires: zlib-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -36,10 +39,13 @@
%patch0 -p1
%build
+%if %{with gui}
%{__sed} -i 's,wx-config,wx-gtk2-ansi-config,g' configure
+%endif
%{__sed} -i 's,$INSTDIR,%{_datadir}/%{name},' src/mmg/mmg.cpp
-%configure
+%configure \
+ --enable-gui=%{?with_gui:yes}%{?!with_gui:no}
%{__make}
%install
@@ -69,6 +75,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.8 2005/10/11 15:57:58 freetz
+- gui bcond
+
Revision 1.7 2005/08/24 21:35:42 charles
- fixed help files, added -help.patch
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/mkvtoolnix.spec?r1=1.7&r2=1.8&f=u
More information about the pld-cvs-commit
mailing list