- shared lib
[packages/crossmingw32-libjpeg.git] / crossmingw32-libjpeg.spec
index f5dbf39799233773d41807d18c93ac63b8776662..edbb94d766b0154ec8d6cda6eff35d9083645a28 100644 (file)
@@ -11,6 +11,7 @@ Source0:      ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v%{version}.tar.gz
 Patch0:                %{realname}-DESTDIR.patch
 Patch1:                %{realname}-include.patch
 Patch2:                %{realname}-c++.patch
+Patch3:                %{name}-shared.patch
 URL:           http://www.ijg.org/
 BuildRequires: crossmingw32-gcc
 BuildRequires: crossmingw32-w32api
@@ -35,11 +36,23 @@ JPEG images.
 %description -l pl
 Ten pakiet zawiera bibliotek√™ funkcji do manipulacji plikami jpeg.
 
+%package dll
+Summary:       libjpeg - DLL library for Windows
+Summary(pl):   libjpeg - biblioteka DLL dla Windows
+Group:         Applications/Emulators
+
+%description dll
+libjpeg - DLL library for Windows.
+
+%description dll -l pl
+libjpeg - biblioteka DLL dla Windows.
+
 %prep
 %setup -q -n jpeg-%{version}
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 CC=%{target}-gcc ; export CC
@@ -60,15 +73,19 @@ TARGET="%{target}" ; export TARGET
        --prefix=%{arch}
 
 %{__make}
+%{__make} jpeg.dll
+
+%{target}-strip jpeg.dll
+%{target}-strip -g -R.comment -R.note *.a
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{arch}/{include,lib}
+install -d $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
 
-%{target}-strip -g -R.comment -R.note libjpeg.a
-
-install libjpeg.a $RPM_BUILD_ROOT%{arch}/lib
 install jconfig.h jerror.h jmorecfg.h jpeglib.h jversion.h $RPM_BUILD_ROOT%{arch}/include
+install *.a $RPM_BUILD_ROOT%{arch}/lib
+install jpeg.dll $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -77,3 +94,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %{arch}/include/*
 %{arch}/lib/*
+
+%files dll
+%defattr(644,root,root,755)
+%{_datadir}/wine/windows/system/*
This page took 0.104868 seconds and 4 git commands to generate.