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