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