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