]> git.pld-linux.org Git - packages/crossmingw32-pixman.git/blob - crossmingw32-pixman.spec
- updated to 0.42.2
[packages/crossmingw32-pixman.git] / crossmingw32-pixman.spec
1 Summary:        Pixel manipulation library - cross MinGW32
2 Summary(pl.UTF-8):      Biblioteka operacji na pikselach - wersja skrośna MinGW32
3 Name:           crossmingw32-pixman
4 Version:        0.42.2
5 Release:        1
6 License:        MIT
7 Group:          Development/Libraries
8 Source0:        https://www.cairographics.org/releases/pixman-%{version}.tar.gz
9 # Source0-md5:  a0f6ab8a1d8e0e2cd80e935525e2a864
10 URL:            http://pixman.org/
11 BuildRequires:  autoconf >= 2.62
12 BuildRequires:  automake
13 BuildRequires:  crossmingw32-gcc
14 BuildRequires:  libtool
15 BuildRequires:  pkgconfig
16 BuildRequires:  sed >= 4.0
17 Requires:       crossmingw32-runtime
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         no_install_post_strip   1
21 %define         _enable_debug_packages  0
22
23 %define         target                  i386-mingw32
24 %define         target_platform         i386-pc-mingw32
25
26 %define         _sysprefix              /usr
27 %define         _prefix                 %{_sysprefix}/%{target}
28 %define         _libdir                 %{_prefix}/lib
29 %define         _pkgconfigdir           %{_prefix}/lib/pkgconfig
30 %define         _dlldir                 /usr/share/wine/windows/system
31 %define         __cc                    %{target}-gcc
32 %define         __cxx                   %{target}-g++
33 %define         __pkgconfig_provides    %{nil}
34 %define         __pkgconfig_requires    %{nil}
35
36 %ifnarch %{ix86}
37 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
38 %define         optflags        -O2
39 %endif
40 # -z options are invalid for mingw linker, most of -f options are Linux-specific
41 %define         filterout_ld    -Wl,-z,.*
42 %define         filterout_c     -f[-a-z0-9=]*
43
44 %description
45 pixman is a pixel manipulation library.
46
47 This package contains the cross version for Win32.
48
49 %description -l pl.UTF-8
50 pixman to biblioteka do operacji na pikselach.
51
52 Ten pakiet zawiera wersję skrośną dla Win32.
53
54 %package static
55 Summary:        Static pixman library (cross MinGW32 version)
56 Summary(pl.UTF-8):      Statyczna biblioteka pixman (wersja skrośna MinGW32)
57 Group:          Development/Libraries
58 Requires:       %{name} = %{version}-%{release}
59
60 %description static
61 Static pixman library (cross MinGW32 version).
62
63 %description static -l pl.UTF-8
64 Statyczna biblioteka pixman (wersja skrośna MinGW32).
65
66 %package dll
67 Summary:        DLL pixman library for Windows
68 Summary(pl.UTF-8):      Biblioteka DLL pixman dla Windows
69 Group:          Applications/Emulators
70 Requires:       wine
71
72 %description dll
73 DLL pixman library for Windows.
74
75 %description dll -l pl.UTF-8
76 Biblioteka DLL pixman dla Windows.
77
78 %prep
79 %setup -q -n pixman-%{version}
80
81 %{__sed} -i -e 's#<pixman-version.h>#"pixman-version.h"#' pixman/pixman.h
82
83 %build
84 %{__libtoolize}
85 %{__aclocal}
86 %{__autoconf}
87 %{__autoheader}
88 %{__automake}
89 %configure \
90         --target=%{target} \
91         --host=%{target} \
92         --disable-gtk \
93         --disable-openmp \
94         --disable-silent-rules
95
96 %{__make}
97
98 %install
99 rm -rf $RPM_BUILD_ROOT
100
101 %{__make} install \
102         DESTDIR=$RPM_BUILD_ROOT
103
104 install -d $RPM_BUILD_ROOT%{_dlldir}
105 %{__mv} $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
106
107 %if 0%{!?debug:1}
108 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
109 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
110 %endif
111
112 %clean
113 rm -rf $RPM_BUILD_ROOT
114
115 %files
116 %defattr(644,root,root,755)
117 %doc COPYING README
118 %{_libdir}/libpixman-1.dll.a
119 %{_libdir}/libpixman-1.la
120 %{_includedir}/pixman-1
121 %{_pkgconfigdir}/pixman-1.pc
122
123 %files static
124 %defattr(644,root,root,755)
125 %{_libdir}/libpixman-1.a
126
127 %files dll
128 %defattr(644,root,root,755)
129 %{_dlldir}/libpixman-1-*.dll
This page took 0.21347 seconds and 3 git commands to generate.