Remove PKG_CONFIG_PATH since its set in mingw_cflags by default now. Misc bug other...
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 10 Sep 2008 11:33:19 +0000 (07:33 -0400)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 10 Sep 2008 11:33:19 +0000 (07:33 -0400)
atk/mingw-atk.spec
cairo/mingw-cairo.spec
fontconfig/mingw-fontconfig.spec
gettext/mingw-gettext.spec
gnutls/mingw-gnutls.spec
gtk2/mingw-gtk2.spec
libgcrypt/mingw-libgcrypt.spec
libvirt/mingw-libvirt.spec
pango/mingw-pango.spec

index df65723..596c065 100644 (file)
@@ -30,7 +30,6 @@ MinGW Windows Atk library.
 %patch1 -p1
 
 %build
-PKG_CONFIG_PATH="%{_mingw_libdir}/pkgconfig" \
 %{_mingw_configure}
 make
 
index 924444b..bb9525e 100644 (file)
@@ -30,7 +30,6 @@ MinGW Windows Cairo library.
 %setup -q -n cairo-%{version}
 
 %build
-PKG_CONFIG_PATH=%{_mingw_libdir}/pkgconfig \
 %{_mingw_configure} --disable-xlib --disable-xcb --enable-win32 --enable-png --enable-freetype
 make
 
index dad57ca..ae5c7e4 100644 (file)
@@ -16,6 +16,7 @@ BuildArch:      noarch
 BuildRequires:  mingw-filesystem >= 19
 BuildRequires:  mingw-gcc
 BuildRequires:  mingw-binutils
+BuildRequires:  mingw-freetype
 
 %description
 MinGW Windows Fontconfig library.
@@ -25,13 +26,7 @@ MinGW Windows Fontconfig library.
 %setup -q -n fontconfig-%{version}
 
 %build
-PKG_CONFIG_PATH=%{_mingw_libdir}/pkgconfig \
-#{_mingw_configure} --with-arch=i686
-  CC="%{_mingw_cc}" \
-  CFLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2  -fexceptions  --param=ssp-buffer-size=4" \
-  ./configure \
-    --build=%_build --host=%{_mingw_host} --target=%{_mingw_target} \
-    --prefix=%{_mingw_prefix} --with-arch=i686
+%{_mingw_configure} --with-arch=i686
 make
 
 
index b8acaa2..52d4608 100644 (file)
@@ -40,6 +40,7 @@ rm -rf $RPM_BUILD_ROOT
 make DESTDIR=$RPM_BUILD_ROOT install
 rm -f $RPM_BUILD_ROOT%{_mingw_datadir}/locale/locale.alias
 rm -f $RPM_BUILD_ROOT%{_mingw_libdir}/charset.alias
+rm -f $RPM_BUILD_ROOT%{_mingw_datadir}/info/dir
 
 %clean
 rm -rf $RPM_BUILD_ROOT
index 65c5165..6db6945 100644 (file)
@@ -43,7 +43,7 @@ make
 rm -rf $RPM_BUILD_ROOT
 
 make DESTDIR=$RPM_BUILD_ROOT install
-
+rm -f $RPM_BUILD_ROOT%{_mingw_datadir}/info/dir
 
 %clean
 rm -rf $RPM_BUILD_ROOT
index 7cebe4f..e6de6b7 100644 (file)
@@ -36,7 +36,6 @@ MinGW Windows Gtk2 library.
 
 %build
 # XXX fix jasper dlls
-PKG_CONFIG_PATH=%{_mingw_libdir}/pkgconfig \
 %{_mingw_configure} --without-jasper
 make
 
index c502734..fab8761 100644 (file)
@@ -36,7 +36,7 @@ make
 rm -rf $RPM_BUILD_ROOT
 
 make DESTDIR=$RPM_BUILD_ROOT install
-
+rm -f $RPM_BUILD_ROOT%{_mingw_datadir}/info/dir
 
 %clean
 rm -rf $RPM_BUILD_ROOT
index 3082670..eb8456e 100644 (file)
@@ -1,8 +1,8 @@
-%define __os_install_post /usr/lib/rpm/brp-compress %{nil}
+%include        /usr/lib/rpm/mingw-defs
 
 Name:           mingw-libvirt
-Version:        0.4.4
-Release:        2%{?dist}
+Version:        0.4.5
+Release:        1%{?dist}%{?extra_release}
 Summary:        MinGW Windows libvirt virtualization library
 
 License:        LGPLv2+
@@ -11,20 +11,16 @@ URL:            http://www.libvirt.org/
 Source0:        ftp://libvirt.org/libvirt/libvirt-%{version}.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
+BuildRequires:  mingw-filesystem >= 19
 BuildRequires:  mingw-gcc
 BuildRequires:  mingw-binutils
 BuildRequires:  mingw-libgpg-error
 BuildRequires:  mingw-libgcrypt
 BuildRequires:  mingw-gnutls
+BuildRequires:  mingw-gettext
 BuildRequires:  mingw-libxml2
 BuildRequires:  mingw-portablexdr
 
-Requires:       mingw-runtime
-Requires:       mingw-libgpg-error
-Requires:       mingw-libgcrypt
-Requires:       mingw-gnutls
-Requires:       mingw-libxml2
-
 %description
 MinGW Windows libvirt virtualization library.
 
@@ -34,17 +30,17 @@ MinGW Windows libvirt virtualization library.
 
 
 %build
-PKG_CONFIG_PATH="%{_prefix}/i686-pc-mingw32/sys-root/mingw/lib/pkgconfig" \
-CC="i686-pc-mingw32-gcc" \
-CFLAGS="-O2 -g -Wall -pipe" \
-./configure \
-  --build=%_build \
-  --host=i686-pc-mingw32 \
-  --prefix=%{_prefix}/i686-pc-mingw32/sys-root/mingw \
-  --without-xen --without-qemu --without-libvirtd \
-  --without-sasl
-# XXX Should include SASL, and maybe polkit?
-
+# XXX enable SASL in future
+%{_mingw_configure} \
+  --without-sasl \
+  --without-avahi \
+  --without-polkit \
+  --without-python \
+  --without-xen \
+  --without-qemu \
+  --without-lxc \
+  --without-openvz \
+  --without-libvirtd
 make
 
 
@@ -53,6 +49,9 @@ rm -rf $RPM_BUILD_ROOT
 
 make DESTDIR=$RPM_BUILD_ROOT install
 
+rm -rf $RPM_BUILD_ROOT/%{_mingw_sysconfdir}/libvirt
+rm -rf $RPM_BUILD_ROOT/%{_mingw_datadir}/doc/*
+rm -rf $RPM_BUILD_ROOT/%{_mingw_datadir}/gtk-doc/*
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -60,18 +59,23 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root)
-%{_prefix}/i686-pc-mingw32/sys-root/mingw/bin/*
-%{_prefix}/i686-pc-mingw32/sys-root/mingw/lib/*
-%{_prefix}/i686-pc-mingw32/sys-root/mingw/include/*
-%{_prefix}/i686-pc-mingw32/sys-root/mingw/share/aclocal/*
-%{_prefix}/i686-pc-mingw32/sys-root/mingw/share/info/*
-%{_prefix}/i686-pc-mingw32/sys-root/mingw/share/man/man1/*
-%{_prefix}/i686-pc-mingw32/sys-root/mingw/share/man/man3/*
+%{_mingw_bindir}/libvirt-0.dll
+%{_mingw_bindir}/virsh.exe
 
+%{_mingw_libdir}/libvirt.a
+%{_mingw_libdir}/libvirt.dll.a
+%{_mingw_libdir}/libvirt.la
+%{_mingw_libdir}/pkgconfig/libvirt.pc
 
-%changelog
-* Tue Sep  2 2008  <berrange@li15-219.members.linode.com> - 0.4.4-2
-- Add BR on portablexdr, set PKG_CONFIG_PATH for libxml/gnutls, set CFLAGS
+%{_mingw_datadir}/locale/*/LC_MESSAGES/libvirt.mo
+
+%dir %{_mingw_includedir}/libvirt
+%{_mingw_includedir}/libvirt/libvirt.h
+%{_mingw_includedir}/libvirt/virterror.h
 
-* Mon Jul  7 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.4-1
+%{_mingw_mandir}/man1/virsh.1*
+
+
+%changelog
+* Tue Sep  2 2008 Daniel P. Berrange <berrange@redhat.com> - 0.4.4-1
 - Initial RPM release, largely based on earlier work from several sources.
index 091cdba..dca3f3f 100644 (file)
@@ -30,7 +30,6 @@ MinGW Windows Pango library.
 %setup -q -n pango-%{version}
 
 %build
-PKG_CONFIG_PATH=%{_mingw_libdir}/pkgconfig \
 %{_mingw_configure}
 make