rpms/mingw32-dlfcn/F-11 mingw32-dlfcn.spec,1.3,1.4

epienbro epienbro at fedoraproject.org
Fri Oct 30 14:44:03 UTC 2009


Author: epienbro

Update of /cvs/pkgs/rpms/mingw32-dlfcn/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv3530/F-11

Modified Files:
	mingw32-dlfcn.spec 
Log Message:
* Fri Oct 30 2009 Erik van Pienbroek <epienbro at fedoraproject.org> - 0-0.7.r11
- Use %global instead of %define
- Automatically generate debuginfo subpackage (F-12+)
- Fixed %defattr line
- Added -static subpackage
- Fixed linker error with C++ applications



Index: mingw32-dlfcn.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-dlfcn/F-11/mingw32-dlfcn.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- mingw32-dlfcn.spec	26 Feb 2009 01:02:03 -0000	1.3
+++ mingw32-dlfcn.spec	30 Oct 2009 14:44:02 -0000	1.4
@@ -1,16 +1,16 @@
-%define __strip %{_mingw32_strip}
-%define __objdump %{_mingw32_objdump}
-%define _use_internal_dependency_generator 0
-%define __find_requires %{_mingw32_findrequires}
-%define __find_provides %{_mingw32_findprovides}
+%global __strip %{_mingw32_strip}
+%global __objdump %{_mingw32_objdump}
+%global _use_internal_dependency_generator 0
+%global __find_requires %{_mingw32_findrequires}
+%global __find_provides %{_mingw32_findprovides}
 
-%define realname dlfcn-win32
+%global realname dlfcn-win32
 
-%define alphatag r11
+%global alphatag r11
 
 Name:          mingw32-dlfcn
 Version:       0
-Release:       0.5.%{alphatag}%{?dist}
+Release:       0.7.%{alphatag}%{?dist}
 Summary:       Implements a wrapper for dlfcn (dlopen dlclose dlsym dlerror)
 
 License:       LGPLv2+
@@ -27,6 +27,7 @@ BuildRequires: mingw32-binutils
 #BuildRequires: dos2unix
 
 Patch1:        dlfcn_configure.patch
+Patch2:        dlfcn-fix-cplusplus-linkage.patch
 
 
 %description
@@ -34,6 +35,15 @@ This library implements a wrapper for dl
 around the dynamic link library functions found in the Windows API.
 
 
+%package static
+Summary:        Static version of the MinGW Windows dlfcn library
+Requires:       %{name} = %{version}-%{release}
+Group:          Development/Libraries
+
+%description static
+Static version of the MinGW Windows dlfcn library.
+
+
 %prep
 %setup -q -n %{realname}-%{alphatag}
 
@@ -42,6 +52,7 @@ around the dynamic link library function
 %{__sed} -i 's/\r//' COPYING
 
 %patch1 -p1
+%patch2 -p0
 
 
 %build
@@ -49,7 +60,7 @@ around the dynamic link library function
   --incdir=%{_mingw32_includedir} \
   --cc=i686-pc-mingw32-gcc \
   --enable-shared=yes \
-  --enable-static=no \
+  --enable-static=yes \
   --enable-strip=i686-pc-mingw32-strip
 make %{?_smp_mflags}
 
@@ -64,14 +75,27 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %files
-%defattr(-,root,root)
+%defattr(-,root,root,-)
 %doc README COPYING
 %{_mingw32_bindir}/libdl.dll
 %{_mingw32_libdir}/libdl.dll.a
 %{_mingw32_includedir}/dlfcn.h
 
+%files static
+%defattr(-,root,root,-)
+%{_mingw32_libdir}/libdl.a
+
 
 %changelog
+* Fri Oct 30 2009 Erik van Pienbroek <epienbro at fedoraproject.org> - 0-0.7.r11
+- Use %%global instead of %%define
+- Fixed %%defattr line
+- Added -static subpackage
+- Fixed linker error with C++ applications
+
+* Sat Jul 25 2009 Fedora Release Engineering <rel-eng at 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 at lists.fedoraproject.org> - 0-0.5.r11
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
 




More information about the mingw mailing list