2014-02-03 19:19:44 +01:00
|
|
|
#
|
|
|
|
# spec file for package mingw64-winpthreads
|
|
|
|
#
|
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2014-06-01 14:11:11 +02:00
|
|
|
%define __strip %{_mingw64_strip}
|
|
|
|
%define __objdump %{_mingw64_objdump}
|
2014-02-03 19:19:44 +01:00
|
|
|
%define _use_internal_dependency_generator 0
|
2014-06-01 14:11:11 +02:00
|
|
|
%define __find_requires %{_mingw64_findrequires}
|
|
|
|
%define __find_provides %{_mingw64_findprovides}
|
|
|
|
%define __os_install_post %{_mingw64_debug_install_post} \
|
|
|
|
%{_mingw64_install_post}
|
2014-02-03 19:19:44 +01:00
|
|
|
Name: mingw64-winpthreads
|
2014-06-01 14:11:11 +02:00
|
|
|
Version: 3.1.0
|
|
|
|
Release: 0
|
2014-02-03 19:19:44 +01:00
|
|
|
Summary: A pthreads implementation for Windows
|
|
|
|
License: MIT and BSD-3-Clause
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Url: http://mingw-w64.sf.net/
|
2014-06-01 14:11:11 +02:00
|
|
|
Source: mingw-w64-winpthreads-%{version}.tar.xz
|
2014-06-16 11:11:21 +02:00
|
|
|
BuildRequires: mingw64-cross-gcc-bootstrap
|
|
|
|
BuildRequires: mingw64-cross-pkg-config
|
2014-02-03 19:19:44 +01:00
|
|
|
BuildRequires: mingw64-filesystem
|
|
|
|
BuildRequires: xz
|
2014-06-01 14:11:11 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
2014-02-14 21:10:23 +01:00
|
|
|
#!BuildIgnore: post-build-checks
|
2014-02-03 19:19:44 +01:00
|
|
|
|
|
|
|
%description
|
2014-06-01 14:11:11 +02:00
|
|
|
mingw-w64's implementation of POSIX threads for Windows.
|
2014-02-03 19:19:44 +01:00
|
|
|
|
|
|
|
%package devel
|
2014-02-14 21:10:23 +01:00
|
|
|
Summary: Development files for mingw64-winpthreads
|
2014-02-03 19:19:44 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2014-06-01 14:11:11 +02:00
|
|
|
Requires: %{name} = %{version}
|
2014-02-03 19:19:44 +01:00
|
|
|
Provides: mingw64-unistd-pthread-devel
|
|
|
|
Conflicts: mingw64-headers-dummy-pthread otherproviders(mingw64-unistd-pthread-devel)
|
|
|
|
|
|
|
|
%description devel
|
2014-06-01 14:11:11 +02:00
|
|
|
mingw-w64's implementation of POSIX threads for Windows.
|
2014-02-03 19:19:44 +01:00
|
|
|
|
|
|
|
%_mingw64_debug_package
|
|
|
|
|
|
|
|
%prep
|
2014-06-01 14:11:11 +02:00
|
|
|
%setup -q -n winpthreads
|
2014-02-03 19:19:44 +01:00
|
|
|
|
|
|
|
%build
|
2014-06-16 15:56:03 +02:00
|
|
|
# There build is trying to link with libpthread.a but it has no need
|
|
|
|
# of any symbol from there, so just create a fake library and use it.
|
|
|
|
mkdir fakelib
|
|
|
|
pushd fakelib
|
|
|
|
touch empty.c
|
|
|
|
%{_mingw64_cc} -c empty.c
|
|
|
|
%{_mingw64_ar} rsc libpthread.a empty.o
|
|
|
|
popd
|
2014-06-16 11:11:21 +02:00
|
|
|
%{_mingw64_configure} \
|
|
|
|
--disable-static \
|
|
|
|
--enable-shared
|
2014-02-03 19:19:44 +01:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2014-06-16 11:11:21 +02:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
2014-02-03 19:19:44 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2014-06-01 14:11:11 +02:00
|
|
|
%{_mingw64_bindir}/*.dll
|
2014-02-03 19:19:44 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2014-06-01 14:11:11 +02:00
|
|
|
%{_mingw64_includedir}/
|
|
|
|
%{_mingw64_libdir}/
|
2014-02-03 19:19:44 +01:00
|
|
|
|
|
|
|
%changelog
|