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