From 7a7afb248234a901cb8b28b76fe45838b76985f05396d63981f0d6b91572bd10 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Sun, 1 Jun 2014 12:09:01 +0000 Subject: [PATCH] spec-cleaner -i OBS-URL: https://build.opensuse.org/package/show/windows:mingw:win32/mingw32-winpthreads?expand=0&rev=3 --- mingw32-winpthreads.spec | 38 ++++++++++++++++++-------------------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/mingw32-winpthreads.spec b/mingw32-winpthreads.spec index 3fe8c63..cd386f8 100644 --- a/mingw32-winpthreads.spec +++ b/mingw32-winpthreads.spec @@ -16,30 +16,28 @@ # -%define __strip %_mingw32_strip -%define __objdump %_mingw32_objdump +%define __strip %{_mingw32_strip} +%define __objdump %{_mingw32_objdump} %define _use_internal_dependency_generator 0 -%define __find_requires %_mingw32_findrequires -%define __find_provides %_mingw32_findprovides -%define __os_install_post %_mingw32_debug_install_post \ - %_mingw32_install_post - +%define __find_requires %{_mingw32_findrequires} +%define __find_provides %{_mingw32_findprovides} +%define __os_install_post %{_mingw32_debug_install_post} \ + %{_mingw32_install_post} Name: mingw32-winpthreads +Version: 3.1.0 +Release: 0 Summary: A pthreads implementation for Windows License: MIT and BSD-3-Clause Group: Development/Libraries/C and C++ -Version: 3.1.0 -Release: 0 Url: http://mingw-w64.sf.net/ - -Source: mingw-w64-winpthreads-%version.tar.xz -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildArch: noarch +Source: mingw-w64-winpthreads-%{version}.tar.xz BuildRequires: mingw32-cross-gcc BuildRequires: mingw32-cross-gcc-c++ BuildRequires: mingw32-filesystem BuildRequires: mingw32-pkg-config BuildRequires: xz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch #!BuildIgnore: post-build-checks %description @@ -48,7 +46,7 @@ mingw-w64's implementation of POSIX threads for Windows. %package devel Summary: Development files for mingw32-winpthreads Group: Development/Libraries/C and C++ -Requires: %name = %version +Requires: %{name} = %{version} Provides: mingw32-unistd-pthread-devel Conflicts: mingw32-headers-dummy-pthread otherproviders(mingw32-unistd-pthread-devel) @@ -58,23 +56,23 @@ mingw-w64's implementation of POSIX threads for Windows. %_mingw32_debug_package %prep -%setup -qn winpthreads +%setup -q -n winpthreads %build -%_mingw32_configure +%{_mingw32_configure} make %{?_smp_mflags} %install -b="%buildroot"; +b=%{buildroot}; make install DESTDIR="$b" %files %defattr(-,root,root) -%_mingw32_bindir/*.dll +%{_mingw32_bindir}/*.dll %files devel %defattr(-,root,root) -%_mingw32_includedir/ -%_mingw32_libdir/ +%{_mingw32_includedir}/ +%{_mingw32_libdir}/ %changelog