]> git.pld-linux.org Git - packages/crossmingw32-pixman.git/blob - crossmingw32-pixman.spec
6b5079d24214b9fdf606413470b0c577700cd167
[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.11.4
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:  781ea328ad7340470235587b5101f343
10 URL:            http://xorg.freedesktop.org/
11 BuildRequires:  autoconf >= 2.57
12 BuildRequires:  automake
13 BuildRequires:  crossmingw32-gcc
14 BuildRequires:  crossmingw32-zlib
15 BuildRequires:  libtool
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 %description
34 pixman is a pixel manipulation library.
35
36 This package contains the cross version for Win32.
37
38 %description -l pl.UTF-8
39 pixman to biblioteka do operacji na pikselach.
40
41 Ten pakiet zawiera wersję skrośną dla Win32.
42
43 %package static
44 Summary:        Static pixman library (cross mingw32 version)
45 Summary(pl.UTF-8):      Statyczna biblioteka pixman (wersja skrośna mingw32)
46 Group:          Development/Libraries
47 Requires:       %{name} = %{version}-%{release}
48
49 %description static
50 Static pixman library (cross mingw32 version).
51
52 %description static -l pl.UTF-8
53 Statyczna biblioteka pixman (wersja skrośna mingw32).
54
55 %package dll
56 Summary:        DLL pixman library for Windows
57 Summary(pl.UTF-8):      Biblioteka DLL pixman dla Windows
58 Group:          Applications/Emulators
59 Requires:       wine
60
61 %description dll
62 DLL pixman library for Windows.
63
64 %description dll -l pl.UTF-8
65 Biblioteka DLL pixman dla Windows.
66
67 %prep
68 %setup -q -n pixman-%{version}
69
70 # disable gtk-based test
71 :> test/Makefile.am
72 # needed to build dll
73 sed -i -e 's/^libpixman_1_la_LDFLAGS =/& -no-undefined/' pixman/Makefile.am
74
75 %build
76 %{__libtoolize}
77 %{__aclocal}
78 %{__autoconf}
79 %{__autoheader}
80 %{__automake}
81 %configure \
82         --target=%{target} \
83         --host=%{target}
84
85 %{__make}
86
87 %install
88 rm -rf $RPM_BUILD_ROOT
89
90 %{__make} install \
91         DESTDIR=$RPM_BUILD_ROOT
92
93 install -d $RPM_BUILD_ROOT%{_dlldir}
94 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
95
96 %if 0%{!?debug:1}
97 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
98 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
99 %endif
100
101 %clean
102 rm -rf $RPM_BUILD_ROOT
103
104 %files
105 %defattr(644,root,root,755)
106 %doc README TODO
107 %{_libdir}/libpixman-1.dll.a
108 %{_libdir}/libpixman-1.la
109 %{_includedir}/pixman-1
110 %{_pkgconfigdir}/pixman-1.pc
111
112 %files static
113 %defattr(644,root,root,755)
114 %{_libdir}/libpixman-1.a
115
116 %files dll
117 %defattr(644,root,root,755)
118 %{_dlldir}/libpixman-1-*.dll
This page took 0.081916 seconds and 2 git commands to generate.