]> git.pld-linux.org Git - packages/crossmingw32-pixman.git/blame - crossmingw32-pixman.spec
- updated to 0.24.2
[packages/crossmingw32-pixman.git] / crossmingw32-pixman.spec
CommitLineData
474fa36b
JB
1Summary: Pixel manipulation library - cross MinGW32
2Summary(pl.UTF-8): Biblioteka operacji na pikselach - wersja skrośna MinGW32
b0f59df1 3Name: crossmingw32-pixman
f375829d 4Version: 0.24.2
b0f59df1
JB
5Release: 1
6License: MIT
7Group: Development/Libraries
8Source0: http://xorg.freedesktop.org/archive/individual/lib/pixman-%{version}.tar.bz2
f375829d 9# Source0-md5: 2ce7d12750664d2eebd51bf0a07b6205
b0f59df1
JB
10URL: http://xorg.freedesktop.org/
11BuildRequires: autoconf >= 2.57
12BuildRequires: automake
13BuildRequires: crossmingw32-gcc
b0f59df1 14BuildRequires: libtool
f33c3462 15BuildRequires: pkgconfig
b0f59df1
JB
16BuildRequires: sed >= 4.0
17Requires: crossmingw32-runtime
18BuildRoot: %{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
6f3319a2
JB
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
38%define filterout_ld -Wl,-z,.*
39
b0f59df1
JB
40%description
41pixman is a pixel manipulation library.
42
43This package contains the cross version for Win32.
44
45%description -l pl.UTF-8
46pixman to biblioteka do operacji na pikselach.
47
48Ten pakiet zawiera wersję skrośną dla Win32.
49
50%package static
474fa36b
JB
51Summary: Static pixman library (cross MinGW32 version)
52Summary(pl.UTF-8): Statyczna biblioteka pixman (wersja skrośna MinGW32)
b0f59df1
JB
53Group: Development/Libraries
54Requires: %{name} = %{version}-%{release}
55
56%description static
474fa36b 57Static pixman library (cross MinGW32 version).
b0f59df1
JB
58
59%description static -l pl.UTF-8
474fa36b 60Statyczna biblioteka pixman (wersja skrośna MinGW32).
b0f59df1
JB
61
62%package dll
63Summary: DLL pixman library for Windows
64Summary(pl.UTF-8): Biblioteka DLL pixman dla Windows
65Group: Applications/Emulators
66Requires: wine
67
68%description dll
69DLL pixman library for Windows.
70
71%description dll -l pl.UTF-8
72Biblioteka DLL pixman dla Windows.
73
74%prep
75%setup -q -n pixman-%{version}
b0f59df1
JB
76
77%build
78%{__libtoolize}
79%{__aclocal}
80%{__autoconf}
81%{__autoheader}
82%{__automake}
83%configure \
84 --target=%{target} \
ffd42c07 85 --host=%{target} \
f33c3462 86 --disable-gtk \
ffd42c07 87 --disable-silent-rules
b0f59df1
JB
88
89%{__make}
90
91%install
92rm -rf $RPM_BUILD_ROOT
93
94%{__make} install \
95 DESTDIR=$RPM_BUILD_ROOT
96
7921815b
JB
97sed -i -e 's#<pixman-version.h>#<pixman-1/pixman-version.h>#g' $RPM_BUILD_ROOT%{_includedir}/pixman-1/pixman.h
98
b0f59df1
JB
99install -d $RPM_BUILD_ROOT%{_dlldir}
100mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
101
102%if 0%{!?debug:1}
103%{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
104%{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
105%endif
106
107%clean
108rm -rf $RPM_BUILD_ROOT
109
110%files
111%defattr(644,root,root,755)
f33c3462 112%doc COPYING README TODO
b0f59df1
JB
113%{_libdir}/libpixman-1.dll.a
114%{_libdir}/libpixman-1.la
115%{_includedir}/pixman-1
116%{_pkgconfigdir}/pixman-1.pc
117
118%files static
119%defattr(644,root,root,755)
120%{_libdir}/libpixman-1.a
121
122%files dll
123%defattr(644,root,root,755)
124%{_dlldir}/libpixman-1-*.dll
This page took 0.107039 seconds and 4 git commands to generate.