Commit Graph

185 Commits

Author SHA1 Message Date
Kalev Lember
57554d32bb Fix whitespace handling in %mingw_configure and friends 2012-04-19 18:55:04 +03:00
Kalev Lember
e66c6cc210 Generate the DLL name provides from mingw-crt import libraries
The virtual mingw32(...) and mingw64(...) provides used to be generated
from the names of WINE DLLs. This changes it to generate the list from
mingw-crt import libs instead. The advantage with the new approach is
that we can be sure that the virtual provides match with the actual DLL
names we can end up linking with: we'll be linking with the same stubs
from mingw-crt package that are used for the virtual provides list.
2012-03-17 17:42:55 +02:00
Kalev Lember
9dad08a5b6 Define mingw_build_win32/win64 in system macros
So far each individual spec file has had to define mingw_build_win32
and/or mingw_build_win64 on top of each spec file:

%global mingw_build_win32 1
%global mingw_build_win64 1

This commit changes it so that the default is now defined in system-wide
macros and each individual package doesn't have to clutter their spec
files with these two lines. The default is to build both 32 bit and 64
bit packages; if spec files need to opt out, they can just define either
mingw_build_win32 or mingw_build_win64 to 0.
2012-03-17 16:30:12 +02:00
Kalev Lember
3fc8958472 Fix warnings during debuginfo generation
Commit f3b87dde removed a needed 'shift' from mingw-find-debuginfo.sh,
which made debuginfo generation often complain about directories not
found.

Add the 'shift' back and at the same time improve argument parsing error
messages.
2012-03-16 23:03:26 +02:00
Kalev Lember
f14297dd84 Simplify the %mingw_make_install macro
... and move it to the deprecated section.
2012-03-16 22:20:35 +02:00
Erik van Pienbroek
7efd7c1a02 Added a manual provides for ksuser.dll 2012-03-12 23:17:04 +01:00
Kalev Lember
276307b7b0 Add missing %mingw32_debug_install_post 2012-03-06 20:17:38 +02:00
Kalev Lember
f3b87dde70 Get rid of the USE_OLD_METHOD hack in mingw-find-debuginfo 2012-03-06 20:17:38 +02:00
Kalev Lember
f5e6db3480 Merge copy-n-paste duplicate %mingw32_debug_package code 2012-03-06 20:17:35 +02:00
Erik van Pienbroek
528afd0138 Fixed broken summary tags 2012-02-28 17:33:30 +01:00
Erik van Pienbroek
0c1e1f998c Added support for both win32 and win64 targets
- Fixed rpmlint issues
- Fixed permissions of the scripts (775 -> 755)
- Fixed description of the various subpackages
- Make the various macros compliant with the new packaging guidelines:
  https://fedorahosted.org/fpc/ticket/71
- Suppress arch-independent-package-contains-binary-or-object rpmlint
  errors for static libraries
- Improved the mingw_configure, mingw_make, mingw_make_install,
  mingw_cmake and mingw_cmake_kde4 RPM macros so packagers don't need
  to use quotes anymore when using arguments. Thanks to Kalev Lember
  for the initial proof of concept
- Dropped the -mms-bitfields argument from the default CFLAGS as
  it is enabled by default as of gcc 4.7
- Replaced the CMake defines QT_HEADERS_DIR and QT_LIBRARY_DIR
  with QT_BINARY_DIR which is a more proper method to make CMake
  aware of the location of Qt. Thx to Dominik Schmidt for the hint
- Make sure CMake can detect the qmake-qt4 binary in /usr/$target/bin
- Make sure CMake can also detect the (native) Qt tools
  qdbuscpp2xml and qdbusxml2cpp
- Added new RPM macros mingw_cmake_kde4, mingw32_cmake_kde4 and
  mingw64_cmake_kde4
- Added three new environment variables which can be set to
  influence the behaviour of the cmake macros:
  MINGW_CMAKE_ARGS, MINGW32_CMAKE_ARGS and MINGW64_CMAKE_ARGS
- Dropped the mingw32-qmake-qt4 and mingw64-qmake-qt4 wrapper scripts
  as they're now provided by the mingw{32,64}-qt-qmake packages
- Added a new RPM macro: %%{?mingw_package_header}
  Packagers can use this macro instead of the original boilerplate
  code which is needed for all mingw packages
- Made argument passing using the backwards compatibility macro
  %%{_mingw32_cmake} work
- Fixed an issue in the mingw_cmake macro where it could point to
  a non-existant CMakeLists.txt file
- Fixed a bug in the find-requires script which causes all packages to
  depend
  on both the mingw32 and the mingw64 toolchains
- Split out the RPM macros which require both the
  mingw{32,64}-filesystem
  packages in a new file and put it in the mingw-filesystem-base package
- Generate seperate debuginfo packages for mingw32 and mingw64
- Set the minimum version of R: mingw{32,64}-filesystem to 70
- Use the correct FSF-address in some scripts
- Thanks to all the contributors: Erik van Pienbroek, Kalev Lember,
  Levente
  Farkas, Marc-Andre Lureau.
2012-02-27 17:33:08 +02:00
Kalev Lember
76112273c5 Rename the source package to mingw-filesystem (#673784) 2012-02-23 13:37:58 +02:00
Kalev Lember
c6eb454e98 Merge git://pkgs.fedoraproject.org/mingw32-filesystem 2012-02-23 13:00:24 +02:00
Erik van Pienbroek
be0d63c8fb Use a more complete list of Win32 default dlls
Use a more complete list of Win32 default dlls based on the
dlls exported by wine (thanks to Levente Farkas). RHBZ #787486
2012-02-05 20:32:21 +01:00
Kalev Lember
32d1194882 Remove the mingw32-pkg-config wrapper as well 2012-01-31 22:04:23 +02:00
Erik van Pienbroek
adfc0e1651 Fix filelist 2012-01-31 20:53:16 +01:00
Erik van Pienbroek
92ccc6e10a Don't provide the wrapper i686-pc-mingw32-pkg-config anymore as we now have a mingw32-pkg-config package 2012-01-31 20:38:26 +01:00
Erik van Pienbroek
2a5fde2ebb Set Boost_COMPILER to -gcc47 in cmake toolchain file 2012-01-11 00:11:36 +01:00
Erik van Pienbroek
aa32785665 Fixed a small regression introduced by the previous release
Fixed a small regression introduced by the previous release which caused
an FTBFS for mingw32-matahari as indicated on the fedora-mingw mailing list
2011-11-22 23:52:28 +01:00
Erik van Pienbroek
f1b50411fb Added various definitions to the CMake toolchain file (RHBZ #753906) 2011-11-16 01:35:40 +01:00
Kalev Lember
926da27ec9 Added avicap32.dll and psapi.dll to the list of Win32 default DLLs
Thanks to Farkas Levente.

http://lists.fedoraproject.org/pipermail/mingw/2011-August/004030.html
2011-08-02 10:38:21 +03:00
Erik van Pienbroek
444f8dd41c Added glu32.dll and wsock32.dll to the list of Win32 default dll's 2011-07-13 14:29:09 +02:00
Erik van Pienbroek
31e3471d42 Use a more complete list of Win32 default dll's 2011-07-06 20:37:30 +02:00
Kalev Lember
6d7bab80f9 Fixed dep gen with upper case dll names 2011-07-06 21:32:35 +03:00
Erik van Pienbroek
4269348602 The %{_mingw32_qmake_qt4} macro pointed to an invalid mkspecs name. Fixed 2011-07-01 14:05:10 +02:00
Kalev Lember
f88e1d8947 Set Boost_COMPILER to -gcc46 in cmake toolchain file 2011-06-28 11:35:38 +03:00
Kalev Lember
74761330f7 Make sure the -debuginfo subpackages are mingw32- prefixed
... even if the base package is mingw-. Latest Fedora MinGW packaging
guidelines allow the base (source) package be named mingw-, but all
binary packages should be mingw32-.

http://lists.fedoraproject.org/pipermail/mingw/2011-May/003708.html
2011-05-29 17:17:54 +03:00
Kalev Lember
82ecebcd82 Fixed the -n option with _mingw32_debug_package macro
The -n option was passed down to -debuginfo subpackage's %package and
%description sections, but not to %files. This change fixes %files to
work the %same way as %package and %description.

Not sure yet if the -n option will get any use, but at least this fixes
an obvious oversight.

https://bugzilla.redhat.com/show_bug.cgi?id=700815#c12
2011-05-24 11:01:11 +03:00
Kalev Lember
15eccffbcb Own the sbin/ directory 2011-05-24 10:53:48 +03:00
Kalev Lember
9781763c8b Adjusted PKG_CONFIG_LIBDIR to also search in _mingw32_datadir/pkgconfig/
Right now only mingw32-spice-protocol drops files in share/pkgconfig/,
but there are most likely more packages to come.
2011-05-24 10:50:37 +03:00
Kalev Lember
e9ebc7111d Own etc/, share/pkgconfig/, share/xml/ directories 2011-05-23 06:24:48 +03:00
Kalev Lember
750c540bd0 Own the _mingw32_datadir/cmake/ directory 2011-05-21 12:12:05 +03:00
Kalev Lember
2de8bb604b Generate versionless mingw32-filesystem Requires
The automatically generated Requires were too strict, making every
binary rpm depend on the very latest mingw32-filesystem. For almost all
packages any mingw32-filesystem from Fedora repos is sufficient.

Using versionless mingw32-filesystem Requires avoids the situation where
e.g. downgrading mingw32-filesystem would be impossible due to other
packages needlessly depending on it.
2011-05-20 15:50:52 +03:00
Kalev Lember
11c4c8fba5 Cleaned up the spec file from cruft not needed with latest rpm 2011-05-20 13:44:12 +03:00
Kalev Lember
b4298c0ccc Support RPM 4.9 new "fileattr" dep extraction system 2011-05-20 13:44:12 +03:00
Erik van Pienbroek
2c67134589 Don't unset PKG_CONFIG_PATH in the wrapper scripts mingw32-pkg-config and i686-pc-mingw32-pkg-config (BZ #688171) 2011-05-14 14:07:09 +02:00
Fedora Release Engineering
bd6e219e98 Initial setup of the repo 2011-05-10 15:14:36 +00:00
Kalev Lember
a3f272c1d2 Override boost library suffix in cmake toolchain file 2011-05-01 11:22:54 +03:00
Kalev Lember
5b66efd7ed Don't error out trying to set illegal LD.BFD variable name 2011-03-17 15:11:52 +02:00
Dennis Gilmore
36b5a23ed2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild 2011-02-08 12:27:19 -06:00
Erik van Pienbroek
1dddd1ea0c Own the directory %{_mingw32_datadir}/themes 2011-01-12 16:11:42 +01:00
Ivan Romanov
97e2f31e91 Removed -win32 option and fixed -spec option for mingw32-qmake-qt4 2010-11-14 15:08:36 +05:00
Erik van Pienbroek
dd7c74f479 Set the CMAKE_RC_COMPILER variable in the CMake toolchain file (RHBZ #652435) 2010-11-11 23:39:31 +01:00
Ivan Romanov
a921aa1836 Added mingw32-qmake-qt4 2010-10-19 23:37:10 +06:00
Erik van Pienbroek
bd51a55b1a Provide mingw32(odbc32.dll) for Qt 2010-10-11 20:41:36 +02:00
Erik van Pienbroek
3eb87c918e Provide mingw32(gdiplus.dll) for gdk-pixbuf 2010-09-12 17:59:51 +02:00
Richard Jones
9844c01546 Provide virtual mingw32(ws2_32.dll) for libvirt. 2010-09-09 13:35:15 +01:00
Kalev Lember
7034ac899f Own /etc/rpmlint/ dir instead of depending on rpmlint package (RHBZ#629791) 2010-09-06 15:28:17 +03:00
Richard Jones
d8bcc2f5ac Remove requires setup and rpm (RHBZ#629791).
I checked back in the history, and these were inherited from
the first time we created this package:

http://git.annexia.org/?p=fedora-mingw.git;a=commitdiff;h=337c0675f1f1f8aa46b4ef166954b48eb8e3fe75
2010-09-03 11:55:00 +01:00
Fedora Release Engineering
cf660b2b31 dist-git conversion 2010-07-29 03:19:10 +00:00