]> git.pld-linux.org Git - packages/crossmingw32-pixman.git/blobdiff - crossmingw32-pixman.spec
- updated to 0.42.2
[packages/crossmingw32-pixman.git] / crossmingw32-pixman.spec
index ab8adcb7e7e66a365251a882f67c55e1ff8a9b1a..a65eeff619dfe3a1ffb0c4b9208b3d14d3041e58 100644 (file)
@@ -1,24 +1,24 @@
-Summary:       Pixel manipulation library - cross Mingw32
-Summary(pl.UTF-8):     Biblioteka operacji na pikselach - wersja skrośna Mingw32
+Summary:       Pixel manipulation library - cross MinGW32
+Summary(pl.UTF-8):     Biblioteka operacji na pikselach - wersja skrośna MinGW32
 Name:          crossmingw32-pixman
-Version:       0.18.0
+Version:       0.42.2
 Release:       1
 License:       MIT
 Group:         Development/Libraries
-Source0:       http://xorg.freedesktop.org/archive/individual/lib/pixman-%{version}.tar.bz2
-# Source0-md5: a1b5a0a145cab653f5c1e8cf2f98f945
-Patch0:                pixman-no_pkgconfig.patch
-Patch1:                pixman-notls.patch
-URL:           http://xorg.freedesktop.org/
-BuildRequires: autoconf >= 2.57
+Source0:       https://www.cairographics.org/releases/pixman-%{version}.tar.gz
+# Source0-md5: a0f6ab8a1d8e0e2cd80e935525e2a864
+URL:           http://pixman.org/
+BuildRequires: autoconf >= 2.62
 BuildRequires: automake
 BuildRequires: crossmingw32-gcc
 BuildRequires: libtool
+BuildRequires: pkgconfig
 BuildRequires: sed >= 4.0
 Requires:      crossmingw32-runtime
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                no_install_post_strip   1
+%define                _enable_debug_packages  0
 
 %define                target                  i386-mingw32
 %define                target_platform         i386-pc-mingw32
@@ -30,13 +30,16 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define                _dlldir                 /usr/share/wine/windows/system
 %define                __cc                    %{target}-gcc
 %define                __cxx                   %{target}-g++
+%define                __pkgconfig_provides    %{nil}
+%define                __pkgconfig_requires    %{nil}
 
 %ifnarch %{ix86}
 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
 %define                optflags        -O2
 %endif
-# -z options are invalid for mingw linker
+# -z options are invalid for mingw linker, most of -f options are Linux-specific
 %define                filterout_ld    -Wl,-z,.*
+%define                filterout_c     -f[-a-z0-9=]*
 
 %description
 pixman is a pixel manipulation library.
@@ -49,16 +52,16 @@ pixman to biblioteka do operacji na pikselach.
 Ten pakiet zawiera wersję skrośną dla Win32.
 
 %package static
-Summary:       Static pixman library (cross mingw32 version)
-Summary(pl.UTF-8):     Statyczna biblioteka pixman (wersja skrośna mingw32)
+Summary:       Static pixman library (cross MinGW32 version)
+Summary(pl.UTF-8):     Statyczna biblioteka pixman (wersja skrośna MinGW32)
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
 
 %description static
-Static pixman library (cross mingw32 version).
+Static pixman library (cross MinGW32 version).
 
 %description static -l pl.UTF-8
-Statyczna biblioteka pixman (wersja skrośna mingw32).
+Statyczna biblioteka pixman (wersja skrośna MinGW32).
 
 %package dll
 Summary:       DLL pixman library for Windows
@@ -74,13 +77,8 @@ Biblioteka DLL pixman dla Windows.
 
 %prep
 %setup -q -n pixman-%{version}
-%patch0 -p1
-%patch1 -p1
 
-# disable gtk-based test
-:> test/Makefile.am
-# needed to build dll
-sed -i -e 's/^libpixman_1_la_LDFLAGS =/& -no-undefined/' pixman/Makefile.am
+%{__sed} -i -e 's#<pixman-version.h>#"pixman-version.h"#' pixman/pixman.h
 
 %build
 %{__libtoolize}
@@ -89,9 +87,10 @@ sed -i -e 's/^libpixman_1_la_LDFLAGS =/& -no-undefined/' pixman/Makefile.am
 %{__autoheader}
 %{__automake}
 %configure \
-       CPPFLAGS="%{rpmcppflags} -DPIXMAN_NO_TLS" \
        --target=%{target} \
        --host=%{target} \
+       --disable-gtk \
+       --disable-openmp \
        --disable-silent-rules
 
 %{__make}
@@ -102,10 +101,8 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-sed -i -e 's#<pixman-version.h>#<pixman-1/pixman-version.h>#g' $RPM_BUILD_ROOT%{_includedir}/pixman-1/pixman.h
-
 install -d $RPM_BUILD_ROOT%{_dlldir}
-mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
+%{__mv} $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
 
 %if 0%{!?debug:1}
 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
@@ -117,7 +114,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README TODO
+%doc COPYING README
 %{_libdir}/libpixman-1.dll.a
 %{_libdir}/libpixman-1.la
 %{_includedir}/pixman-1
This page took 0.099803 seconds and 4 git commands to generate.