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