You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mingw-dlfcn/mingw-dlfcn.spec

141 lines
4.3 KiB

%global __strip %{mingw32_strip}
%global __objdump %{mingw32_objdump}
%define __debug_install_post %{mingw32_debug_install_post}
16 years ago
%global realname dlfcn-win32
16 years ago
%global alphatag r11
16 years ago
Name: mingw-dlfcn
16 years ago
Version: 0
Release: 0.12.%{alphatag}%{?dist}
16 years ago
Summary: Implements a wrapper for dlfcn (dlopen dlclose dlsym dlerror)
License: LGPLv2+
Group: Development/Libraries
URL: http://code.google.com/p/dlfcn-win32/
Source0: http://dlfcn-win32.googlecode.com/files/%{realname}-%{alphatag}.tar.bz2
BuildArch: noarch
BuildRequires: mingw32-filesystem >= 68
16 years ago
BuildRequires: mingw32-gcc
BuildRequires: mingw32-binutils
#BuildRequires: dos2unix
Patch1: dlfcn_configure.patch
Patch2: dlfcn-fix-cplusplus-linkage.patch
Patch3: dlfcn-fix-static-lib.patch
16 years ago
%description
This library implements a wrapper for dlfcn, as specified in POSIX and SUS,
around the dynamic link library functions found in the Windows API.
%package -n mingw32-dlfcn
Summary: Implements a wrapper for dlfcn (dlopen dlclose dlsym dlerror)
%description -n mingw32-dlfcn
This library implements a wrapper for dlfcn, as specified in POSIX and SUS,
around the dynamic link library functions found in the Windows API.
%package -n mingw32-dlfcn-static
Summary: Static version of the MinGW Windows dlfcn library
Requires: mingw32-dlfcn = %{version}-%{release}
Group: Development/Libraries
%description -n mingw32-dlfcn-static
Static version of the MinGW Windows dlfcn library.
%{?mingw32_debug_package}
16 years ago
%prep
%setup -q -n %{realname}-%{alphatag}
%{__sed} -i 's/\r//' configure
%{__sed} -i 's/\r//' README
%{__sed} -i 's/\r//' COPYING
%patch1 -p1
%patch2 -p0
%patch3 -p0
16 years ago
%build
%{mingw32_configure} \
--incdir=%{mingw32_includedir} \
--cc=i686-w64-mingw32-gcc \
16 years ago
--enable-shared=yes \
--enable-static=yes \
--enable-strip=i686-w64-mingw32-strip
16 years ago
make %{?_smp_mflags}
%install
make DESTDIR=$RPM_BUILD_ROOT install
%files -n mingw32-dlfcn
16 years ago
%doc README COPYING
%{mingw32_bindir}/libdl.dll
%{mingw32_libdir}/libdl.dll.a
%{mingw32_includedir}/dlfcn.h
16 years ago
%files -n mingw32-dlfcn-static
%{mingw32_libdir}/libdl.a
16 years ago
%changelog
* Wed Mar 07 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 0-0.12.r11
- Renamed the source package to mingw-dlfcn (RHBZ #800861)
- Use mingw macros without leading underscore
* Mon Feb 27 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 0-0.11.r11
- Rebuild against the mingw-w64 toolchain
* Thu Feb 16 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 0-0.10.r11
- Make sure the static lib is compiled correctly (RHBZ #791191)
- Various cleanups
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.9.r11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.8.r11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Fri Oct 30 2009 Erik van Pienbroek <epienbro@fedoraproject.org> - 0-0.7.r11
- Use %%global instead of %%define
- Automatically generate debuginfo subpackage
- Fixed %%defattr line
- Added -static subpackage
- Fixed linker error with C++ applications
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.6.r11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.5.r11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Fri Feb 20 2009 Richard W.M. Jones <rjones@redhat.com> - 0-0.4.r11
- Rebuild for mingw32-gcc 4.4
16 years ago
* Wed Jan 14 2009 Richard W.M. Jones <rjones@redhat.com> - 0-0.3.r11
- Use Version 0
(https://www.redhat.com/archives/fedora-packaging/2009-January/msg00064.html)
- Revert use of dos2unix for now
(https://www.redhat.com/archives/fedora-packaging/2009-January/msg00066.html)
- Use _smp_mflags.
* Tue Jan 13 2009 Richard W.M. Jones <rjones@redhat.com> - 0.1-0.2.r11
- Import into fedora-mingw temporary repository because there are packages
which will depend on this.
- Fix the version/release according to packaging guidelines.
- Tidy up the spec file.
- Use dos2unix and keep the timestamps.
* Fri Jan 02 2009 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - r11-1
- Initial RPM release.