[gtk-vnc] Misc RPM specfile fixes



commit 784fa9fce675a5644f4c9808492139731e3cb46f
Author: Daniel P. Berrange <berrange redhat com>
Date:   Thu Nov 10 15:29:47 2011 +0000

    Misc RPM specfile fixes

 gtk-vnc.spec.in         |   10 +++++++---
 mingw32-gtk-vnc.spec.in |    7 ++++++-
 2 files changed, 13 insertions(+), 4 deletions(-)
---
diff --git a/gtk-vnc.spec.in b/gtk-vnc.spec.in
index 8829a5b..d7c7898 100644
--- a/gtk-vnc.spec.in
+++ b/gtk-vnc.spec.in
@@ -5,16 +5,16 @@
 %define with_plugin 0
 
 %define with_gir 0
-
-%if 0%{fedora} >= 12
+%if 0%{?fedora} >= 12
 %define with_gir 1
 %endif
 
 %define with_gtk3 0
-%if 0%{fedora} >= 15
+%if 0%{?fedora} >= 15
 %define with_gtk3 1
 %endif
 
+%define with_vala 0
 %if 0%{with_gtk3}
 %define with_vala 1
 %endif
@@ -245,7 +245,9 @@ rm -fr %{buildroot}
 %if %{with_gir}
 %{_libdir}/girepository-1.0/GVnc-1.0.typelib
 %endif
+%if %{with_vala}
 %{_datadir}/vala/vapi/gvnc-1.0.vapi
+%endif
 
 %files -n gvnc-devel
 %defattr(-, root, root)
@@ -274,6 +276,8 @@ rm -fr %{buildroot}
 %{_libdir}/libgtk-vnc-2.0.so.*
 %if %{with_gir}
 %{_libdir}/girepository-1.0/GtkVnc-2.0.typelib
+%endif
+%if %{with_vala}
 %{_datadir}/vala/vapi/gtk-vnc-2.0.deps
 %{_datadir}/vala/vapi/gtk-vnc-2.0.vapi
 %endif
diff --git a/mingw32-gtk-vnc.spec.in b/mingw32-gtk-vnc.spec.in
index 0010009..efddbd2 100644
--- a/mingw32-gtk-vnc.spec.in
+++ b/mingw32-gtk-vnc.spec.in
@@ -34,7 +34,6 @@ BuildRequires: mingw32-gnutls
 BuildRequires: mingw32-gtk2
 BuildRequires: pkgconfig
 BuildRequires: intltool
-BuildRequires: perl(Text::CSV)
 %if %{with_gtk3}
 BuildRequires: mingw32-gtk3
 %endif
@@ -130,6 +129,12 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -n mingw32-gvnc
 %defattr(-,root,root)
+%doc gtk-vnc-%{version}/AUTHORS
+%doc gtk-vnc-%{version}/ChangeLog
+%doc gtk-vnc-%{version}/ChangeLog-old
+%doc gtk-vnc-%{version}/NEWS
+%doc gtk-vnc-%{version}/README
+%doc gtk-vnc-%{version}/COPYING.LIB
 %{_mingw32_bindir}/libgvnc-1.0-0.dll
 %{_mingw32_libdir}/libgvnc-1.0.dll.a
 %{_mingw32_libdir}/libgvnc-1.0.la



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]