]>
Commit | Line | Data |
---|---|---|
abe378b8 | 1 | # |
2cb000c0 KM |
2 | # Conditional build: |
3 | %bcond_with ps # enable postscript support | |
4 | ||
6e1ed481 | 5 | Summary: Powerful image loading and rendering library |
5dce206d | 6 | Summary(pl.UTF-8): Potężna biblioteka wczytująca i renderująca obrazki |
6e1ed481 | 7 | Name: imlib2 |
9bfdcd3f | 8 | Version: 1.10.0 |
0cda5432 | 9 | Release: 2 |
e59b42b0 | 10 | License: BSD-like |
6e1ed481 | 11 | Group: X11/Libraries |
37e4d806 | 12 | Source0: https://downloads.sourceforge.net/enlightenment/%{name}-%{version}.tar.xz |
9bfdcd3f | 13 | # Source0-md5: 8f692caffa3069d0da2aa87aa6cf5444 |
f95b3825 | 14 | URL: https://docs.enlightenment.org/api/imlib2/html/ |
b0ab6cb3 JB |
15 | BuildRequires: autoconf >= 2.52 |
16 | BuildRequires: automake >= 1.6 | |
82e9092e | 17 | BuildRequires: bzip2-devel |
37e4d806 | 18 | BuildRequires: doxygen |
e4663b36 | 19 | BuildRequires: freetype-devel >= 2.1 |
f9ff4964 | 20 | BuildRequires: giflib-devel |
37e4d806 | 21 | BuildRequires: libheif-devel |
ecc471a9 | 22 | BuildRequires: libid3tag-devel |
840d5c6c | 23 | BuildRequires: libjpeg-devel >= 6b-18 |
37e4d806 | 24 | BuildRequires: libjxl-devel |
840d5c6c | 25 | BuildRequires: libpng-devel >= 1.0.8 |
abe378b8 | 26 | BuildRequires: librsvg-devel >= 2.46 |
2cb000c0 | 27 | %{?with_ps:BuildRequires: libspectre-devel} |
abe378b8 JB |
28 | BuildRequires: libtiff-devel >= 4 |
29 | BuildRequires: libtool >= 2:2 | |
ecd20440 JP |
30 | BuildRequires: libwebp-devel |
31 | BuildRequires: libxcb-devel >= 1.9 | |
abe378b8 | 32 | BuildRequires: openjpeg2-devel >= 2 |
158801d8 | 33 | BuildRequires: pkgconfig |
abe378b8 | 34 | BuildRequires: tar >= 1:1.22 |
ecd20440 | 35 | BuildRequires: xorg-lib-libX11-devel |
6fef07ec | 36 | BuildRequires: xorg-lib-libXext-devel |
abe378b8 | 37 | BuildRequires: xz |
37e4d806 | 38 | BuildRequires: xz-devel |
ecc471a9 | 39 | BuildRequires: zlib-devel |
ecd20440 JP |
40 | Requires: freetype >= 2.1 |
41 | Requires: libjpeg >= 6b-18 | |
42 | Requires: libpng >= 1.0.8 | |
43 | Requires: libxcb >= 1.9 | |
abe378b8 | 44 | Obsoletes: libimlib2_1 < 2 |
7d8f53dc | 45 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
6e1ed481 | 46 | |
6e1ed481 AM |
47 | %description |
48 | Imlib2 is an advanced replacement library for libraries like libXpm | |
49 | that provides many more features with much greater flexibility and | |
50 | speed than standard libraries, including font rasterization, rotation, | |
51 | RGBA space rendering and blending, dynamic binary filters, scripting, | |
52 | and more. | |
53 | ||
ad92b7d9 JR |
54 | %description -l pl.UTF-8 |
55 | Imlib2 jest zaawansowaną biblioteką, zamiennikiem takich bibliotek jak | |
56 | libXpm. Imlib2 dostarcza o wiele więcej możliwości przy dużo większej | |
57 | szybkości niż standardowe biblioteki (włączając w to rasteryzację | |
485bf409 AM |
58 | fontów, obracanie, renderowanie przestrzeni RGBA, mieszanie, |
59 | dynamiczne filtry (w postaci binarnej), obsługa języka skryptowego i | |
60 | wiele więcej. | |
6e1ed481 AM |
61 | |
62 | %package devel | |
42a58ed5 | 63 | Summary: Imlib2 header files and development documentation |
5dce206d ER |
64 | Summary(fr.UTF-8): Fichiers entête pour Imlib2 |
65 | Summary(pl.UTF-8): Pliki nagłówkowe oraz dokumentacja do imlib2 | |
6e1ed481 | 66 | Group: X11/Development/Libraries |
deebefc7 | 67 | Requires: %{name} = %{version}-%{release} |
42a58ed5 | 68 | Requires: freetype-devel |
009059a1 | 69 | Requires: libltdl-devel |
6fef07ec | 70 | Requires: xorg-lib-libXext-devel |
abe378b8 | 71 | Obsoletes: libimlib2_1-devel < 2 |
6e1ed481 AM |
72 | |
73 | %description devel | |
42a58ed5 | 74 | Header files and development documentation for Imlib2. |
6e1ed481 | 75 | |
ad92b7d9 JR |
76 | %description devel -l fr.UTF-8 |
77 | Fichiers entête pour Imlib2. | |
6e1ed481 | 78 | |
ad92b7d9 JR |
79 | %description devel -l pl.UTF-8 |
80 | Pliki nagłówkowe oraz dokumentacja do biblioteki Imlib2. | |
6e1ed481 AM |
81 | |
82 | %package static | |
62e1a2f2 JB |
83 | Summary: Imlib2 static library |
84 | Summary(pl.UTF-8): Biblioteka statyczna imlib2 | |
6e1ed481 | 85 | Group: X11/Development/Libraries |
deebefc7 | 86 | Requires: %{name}-devel = %{version}-%{release} |
6e1ed481 AM |
87 | |
88 | %description static | |
62e1a2f2 | 89 | Imlib2 static library. |
6e1ed481 | 90 | |
ad92b7d9 | 91 | %description static -l pl.UTF-8 |
62e1a2f2 | 92 | Biblioteka statyczna imlib2. |
6e1ed481 AM |
93 | |
94 | %prep | |
485bf409 | 95 | %setup -q |
6e1ed481 | 96 | |
abe378b8 JB |
97 | # missing in dist tarball, make a stub |
98 | install -d test | |
99 | touch test/Makefile.am | |
100 | ||
6e1ed481 | 101 | %build |
abe378b8 JB |
102 | %{__libtoolize} |
103 | %{__aclocal} -I m4 | |
104 | %{__autoconf} | |
105 | %{__autoheader} | |
106 | %{__automake} | |
6e1ed481 | 107 | %configure \ |
62e1a2f2 | 108 | --disable-silent-rules \ |
37e4d806 | 109 | --enable-doc-build \ |
2cb000c0 | 110 | %{!?with_ps:--without-ps} \ |
df1bbb55 | 111 | %ifarch i586 i686 pentium3 pentium4 athlon |
37e4d806 | 112 | --enable-mmx \ |
6e1ed481 | 113 | %else |
37e4d806 KM |
114 | --disable-mmx \ |
115 | %endif | |
abe378b8 | 116 | %ifarch %{x8664} |
37e4d806 | 117 | --enable-amd64 \ |
6e1ed481 AM |
118 | %endif |
119 | ||
862bffff | 120 | %{__make} |
9189fbac | 121 | |
6e1ed481 AM |
122 | %install |
123 | rm -rf $RPM_BUILD_ROOT | |
124 | ||
125 | %{__make} install \ | |
126 | DESTDIR=$RPM_BUILD_ROOT | |
127 | ||
62e1a2f2 JB |
128 | # not needed |
129 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/imlib2/*/*.la | |
abe378b8 JB |
130 | # obsoleted by pkg-config |
131 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libImlib2.la | |
ea91e133 | 132 | |
6e1ed481 AM |
133 | %clean |
134 | rm -rf $RPM_BUILD_ROOT | |
135 | ||
009059a1 JB |
136 | %post -p /sbin/ldconfig |
137 | %postun -p /sbin/ldconfig | |
138 | ||
6e1ed481 AM |
139 | %files |
140 | %defattr(644,root,root,755) | |
e59b42b0 | 141 | %doc AUTHORS COPYING COPYING-PLAIN ChangeLog README |
e4663b36 | 142 | %attr(755,root,root) %{_bindir}/imlib2_* |
6e93d49a JB |
143 | %attr(755,root,root) %{_libdir}/libImlib2.so.*.*.* |
144 | %attr(755,root,root) %ghost %{_libdir}/libImlib2.so.1 | |
e4663b36 JB |
145 | %dir %{_libdir}/imlib2 |
146 | %dir %{_libdir}/imlib2/filters | |
df1bbb55 | 147 | %attr(755,root,root) %{_libdir}/imlib2/filters/*.so |
e4663b36 | 148 | %dir %{_libdir}/imlib2/loaders |
df1bbb55 | 149 | %attr(755,root,root) %{_libdir}/imlib2/loaders/*.so |
e4663b36 | 150 | %{_datadir}/imlib2 |
6e1ed481 AM |
151 | |
152 | %files devel | |
153 | %defattr(644,root,root,755) | |
37e4d806 | 154 | %doc doc/html |
df1bbb55 | 155 | %attr(755,root,root) %{_libdir}/libImlib2.so |
e4663b36 | 156 | %{_includedir}/Imlib2.h |
9bfdcd3f | 157 | %{_includedir}/Imlib2_Loader.h |
42a58ed5 | 158 | %{_pkgconfigdir}/imlib2.pc |
6e1ed481 AM |
159 | |
160 | %files static | |
161 | %defattr(644,root,root,755) | |
df1bbb55 | 162 | %{_libdir}/libImlib2.a |