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