Removed the use of the environment variable PKG_CONFIG_LIBDIR
- Removed the use of the environment variable PKG_CONFIG_LIBDIR While building binaries the tool {i686,x86_64}-w64-mingw32-pkg-config should be used to find out pkg-config information The environment variable PKG_CONFIG already automatically points to the right cross-compiler aware version of pkg-config when the mingw{32,64}-pkg-config packages are installed - Fixes compilation of mingw-gtk3 3.9.0 (GNOME BZ #699690) - Automatically add R: mingw{32,64}-pkg-config tags when .pc files are detected while building mingw packages
This commit is contained in:
parent
797731025a
commit
ba334114c1
@ -57,7 +57,6 @@
|
|||||||
fi; \
|
fi; \
|
||||||
PATH="%{mingw32_bindir}:$PATH_ORIG"; export PATH; \
|
PATH="%{mingw32_bindir}:$PATH_ORIG"; export PATH; \
|
||||||
HOST_CC=gcc; export HOST_CC; \
|
HOST_CC=gcc; export HOST_CC; \
|
||||||
PKG_CONFIG_LIBDIR="%{mingw32_libdir}/pkgconfig:%{_mingw32_datadir}/pkgconfig"; export PKG_CONFIG_LIBDIR; \
|
|
||||||
unset PKG_CONFIG_PATH; \
|
unset PKG_CONFIG_PATH; \
|
||||||
_PREFIX="%{_bindir}/%{mingw32_target}-"; \
|
_PREFIX="%{_bindir}/%{mingw32_target}-"; \
|
||||||
for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'`; do \
|
for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'`; do \
|
||||||
|
@ -57,7 +57,6 @@
|
|||||||
fi; \
|
fi; \
|
||||||
PATH="%{mingw64_bindir}:$PATH_ORIG"; export PATH; \
|
PATH="%{mingw64_bindir}:$PATH_ORIG"; export PATH; \
|
||||||
HOST_CC=gcc; export HOST_CC; \
|
HOST_CC=gcc; export HOST_CC; \
|
||||||
PKG_CONFIG_LIBDIR="%{mingw64_libdir}/pkgconfig:%{mingw64_datadir}/pkgconfig"; export PKG_CONFIG_LIBDIR; \
|
|
||||||
unset PKG_CONFIG_PATH; \
|
unset PKG_CONFIG_PATH; \
|
||||||
_PREFIX="%{_bindir}/%{mingw64_target}-"; \
|
_PREFIX="%{_bindir}/%{mingw64_target}-"; \
|
||||||
for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'`; do \
|
for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'`; do \
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
|
|
||||||
Name: mingw-filesystem
|
Name: mingw-filesystem
|
||||||
Version: 97
|
Version: 98
|
||||||
Release: 3%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: MinGW cross compiler base filesystem and environment
|
Summary: MinGW cross compiler base filesystem and environment
|
||||||
|
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
@ -248,6 +248,17 @@ install -m 0644 %{SOURCE12} $RPM_BUILD_ROOT%{_datadir}/mingw/
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun May 12 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 98-1
|
||||||
|
- Removed the use of the environment variable PKG_CONFIG_LIBDIR
|
||||||
|
While building binaries the tool {i686,x86_64}-w64-mingw32-pkg-config
|
||||||
|
should be used to find out pkg-config information
|
||||||
|
The environment variable PKG_CONFIG already automatically points
|
||||||
|
to the right cross-compiler aware version of pkg-config when
|
||||||
|
the mingw{32,64}-pkg-config packages are installed
|
||||||
|
- Fixes compilation of mingw-gtk3 3.9.0 (GNOME BZ #699690)
|
||||||
|
- Automatically add R: mingw{32,64}-pkg-config tags when .pc files
|
||||||
|
are detected while building mingw packages
|
||||||
|
|
||||||
* Thu Feb 28 2013 Ralf Corsépius <corsepiu@fedoraproject.org> - 97-3
|
* Thu Feb 28 2013 Ralf Corsépius <corsepiu@fedoraproject.org> - 97-3
|
||||||
- Remove %%config from %%{_sysconfdir}/rpm/macros.*
|
- Remove %%config from %%{_sysconfdir}/rpm/macros.*
|
||||||
(https://fedorahosted.org/fpc/ticket/259).
|
(https://fedorahosted.org/fpc/ticket/259).
|
||||||
|
@ -16,6 +16,7 @@ fi
|
|||||||
filelist=`sed "s/['\"]/\\\&/g"`
|
filelist=`sed "s/['\"]/\\\&/g"`
|
||||||
|
|
||||||
dlls=$(echo $filelist | tr [:blank:] '\n' | grep -Ei '\.(dll|exe)$')
|
dlls=$(echo $filelist | tr [:blank:] '\n' | grep -Ei '\.(dll|exe)$')
|
||||||
|
pkgconfig_files=$(echo $filelist | tr [:blank:] '\n' | grep -Ei '\.(pc)$')
|
||||||
|
|
||||||
for target in $targets; do
|
for target in $targets; do
|
||||||
dll_found=false
|
dll_found=false
|
||||||
@ -28,9 +29,22 @@ for target in $targets; do
|
|||||||
dll_found=true
|
dll_found=true
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Add a dependency on filesystem and crt if necessary
|
# Add a dependency on filesystem and crt if necessary
|
||||||
if [ $dll_found = true ]; then
|
if [ $dll_found = true ]; then
|
||||||
echo "${target}-filesystem >= 83"
|
echo "${target}-filesystem >= 83"
|
||||||
echo "${target}-crt"
|
echo "${target}-crt"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
pkgconfig_files_found=false
|
||||||
|
for f in $pkgconfig_files; do
|
||||||
|
if [[ $f =~ .*$host_triplet.* ]]; then
|
||||||
|
pkgconfig_files_found=true
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# Add a dependency on $target-pkg-config if necessary
|
||||||
|
if [ $pkgconfig_files_found = true ]; then
|
||||||
|
echo "${target}-pkg-config"
|
||||||
|
fi
|
||||||
done | sort -u
|
done | sort -u
|
||||||
|
Loading…
Reference in New Issue
Block a user