]>
Commit | Line | Data |
---|---|---|
57cad80a | 1 | %bcond_without tests |
df5bf5b9 | 2 | Summary: Pixel manipulation library |
3a80489e | 3 | Summary(pl.UTF-8): Biblioteka operacji na pikselach |
20bebe02 | 4 | Name: pixman |
57cad80a AM |
5 | # 0.32.x is stable, 0.33.x is unstable |
6 | Version: 0.32.0 | |
ef2844a0 | 7 | Release: 2 |
1ff231ba | 8 | License: MIT |
20bebe02 | 9 | Group: Libraries |
8a3ccc19 | 10 | Source0: http://xorg.freedesktop.org/archive/individual/lib/%{name}-%{version}.tar.bz2 |
57cad80a | 11 | # Source0-md5: 1b8314aff2a29c921f79efdbf07a0887 |
ef2844a0 | 12 | Patch0: %{name}-ssse3.patch |
5fa26eca | 13 | URL: http://pixman.org/ |
b33794b6 | 14 | BuildRequires: autoconf >= 2.57 |
20bebe02 AM |
15 | BuildRequires: automake |
16 | BuildRequires: libtool | |
21f36854 | 17 | BuildRequires: pkgconfig |
0da7eedf | 18 | BuildRequires: rpmbuild(macros) >= 1.453 |
ee885697 | 19 | BuildRequires: sed >= 4.0 |
1ff231ba | 20 | Obsoletes: libic |
df5bf5b9 | 21 | Obsoletes: libpixman |
1ff231ba | 22 | Obsoletes: libpixregion |
20bebe02 AM |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
26 | pixman is a pixel manipulation library. | |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | pixman to biblioteka do operacji na pikselach. | |
30 | ||
31 | %package devel | |
df5bf5b9 AM |
32 | Summary: Development files for pixman |
33 | Summary(pl.UTF-8): Pliki dla programistów do biblioteki pixman | |
20bebe02 AM |
34 | Group: Development/Libraries |
35 | Requires: %{name} = %{version}-%{release} | |
1ff231ba | 36 | Obsoletes: libic-devel |
df5bf5b9 | 37 | Obsoletes: libpixman-devel |
1ff231ba | 38 | Obsoletes: libpixregion-devel |
20bebe02 AM |
39 | |
40 | %description devel | |
df5bf5b9 | 41 | This package contains development files for pixman library. |
20bebe02 AM |
42 | |
43 | %description devel -l pl.UTF-8 | |
44 | Ten pakiet zawiera pliki dla programistów korzystających z biblioteki | |
df5bf5b9 | 45 | pixman. |
20bebe02 AM |
46 | |
47 | %package static | |
48 | Summary: Static pixman library | |
49 | Summary(pl.UTF-8): Statyczna biblioteka pixman | |
50 | Group: Development/Libraries | |
51 | Requires: %{name}-devel = %{version}-%{release} | |
1ff231ba | 52 | Obsoletes: libic-static |
df5bf5b9 | 53 | Obsoletes: libpixman-static |
1ff231ba | 54 | Obsoletes: libpixregion-static |
20bebe02 AM |
55 | |
56 | %description static | |
57 | This package contains static pixman library. | |
58 | ||
59 | %description static -l pl.UTF-8 | |
60 | Ten pakiet zawiera statyczną wersję biblioteki pixman. | |
61 | ||
62 | %prep | |
361825e7 | 63 | %setup -q |
ef2844a0 | 64 | %patch0 -p1 |
20bebe02 AM |
65 | |
66 | %build | |
67 | %{__libtoolize} | |
68 | %{__aclocal} | |
69 | %{__autoconf} | |
70 | %{__autoheader} | |
71 | %{__automake} | |
6d29bdb1 | 72 | %configure \ |
21f36854 | 73 | --disable-gtk \ |
ab1a8eb7 | 74 | --disable-silent-rules \ |
050c1547 | 75 | %ifarch %{x8664} |
6d29bdb1 ER |
76 | %if "%{cc_version}" < "4.2" |
77 | --disable-sse2 | |
78 | %endif | |
050c1547 | 79 | %endif |
cc1da373 | 80 | |
20bebe02 AM |
81 | %{__make} |
82 | ||
57cad80a AM |
83 | %{?with_tests:%{__make} check} |
84 | ||
20bebe02 AM |
85 | %install |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %{__make} install \ | |
89 | DESTDIR=$RPM_BUILD_ROOT | |
90 | ||
996cc551 AM |
91 | sed -i -e 's#<pixman-version.h>#<pixman-1/pixman-version.h>#g' $RPM_BUILD_ROOT%{_includedir}/pixman-1/pixman.h |
92 | ||
20bebe02 AM |
93 | %clean |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %post -p /sbin/ldconfig | |
97 | %postun -p /sbin/ldconfig | |
98 | ||
99 | %files | |
100 | %defattr(644,root,root,755) | |
523e6b7f | 101 | %doc COPYING README |
1ff231ba | 102 | %attr(755,root,root) %{_libdir}/libpixman-1.so.*.*.* |
5f34610e | 103 | %attr(755,root,root) %ghost %{_libdir}/libpixman-1.so.0 |
20bebe02 AM |
104 | |
105 | %files devel | |
106 | %defattr(644,root,root,755) | |
1ff231ba JB |
107 | %attr(755,root,root) %{_libdir}/libpixman-1.so |
108 | %{_libdir}/libpixman-1.la | |
109 | %{_includedir}/pixman-1 | |
110 | %{_pkgconfigdir}/pixman-1.pc | |
20bebe02 AM |
111 | |
112 | %files static | |
113 | %defattr(644,root,root,755) | |
1ff231ba | 114 | %{_libdir}/libpixman-1.a |