]> git.pld-linux.org Git - packages/imlib2.git/blame - imlib2.spec
Release 2 (by relup.sh)
[packages/imlib2.git] / imlib2.spec
CommitLineData
abe378b8 1#
2cb000c0
KM
2# Conditional build:
3%bcond_with ps # enable postscript support
4
6e1ed481 5Summary: Powerful image loading and rendering library
5dce206d 6Summary(pl.UTF-8): Potężna biblioteka wczytująca i renderująca obrazki
6e1ed481 7Name: imlib2
9bfdcd3f 8Version: 1.10.0
0cda5432 9Release: 2
e59b42b0 10License: BSD-like
6e1ed481 11Group: X11/Libraries
37e4d806 12Source0: https://downloads.sourceforge.net/enlightenment/%{name}-%{version}.tar.xz
9bfdcd3f 13# Source0-md5: 8f692caffa3069d0da2aa87aa6cf5444
f95b3825 14URL: https://docs.enlightenment.org/api/imlib2/html/
b0ab6cb3
JB
15BuildRequires: autoconf >= 2.52
16BuildRequires: automake >= 1.6
82e9092e 17BuildRequires: bzip2-devel
37e4d806 18BuildRequires: doxygen
e4663b36 19BuildRequires: freetype-devel >= 2.1
f9ff4964 20BuildRequires: giflib-devel
37e4d806 21BuildRequires: libheif-devel
ecc471a9 22BuildRequires: libid3tag-devel
840d5c6c 23BuildRequires: libjpeg-devel >= 6b-18
37e4d806 24BuildRequires: libjxl-devel
840d5c6c 25BuildRequires: libpng-devel >= 1.0.8
abe378b8 26BuildRequires: librsvg-devel >= 2.46
2cb000c0 27%{?with_ps:BuildRequires: libspectre-devel}
abe378b8
JB
28BuildRequires: libtiff-devel >= 4
29BuildRequires: libtool >= 2:2
ecd20440
JP
30BuildRequires: libwebp-devel
31BuildRequires: libxcb-devel >= 1.9
abe378b8 32BuildRequires: openjpeg2-devel >= 2
158801d8 33BuildRequires: pkgconfig
abe378b8 34BuildRequires: tar >= 1:1.22
ecd20440 35BuildRequires: xorg-lib-libX11-devel
6fef07ec 36BuildRequires: xorg-lib-libXext-devel
abe378b8 37BuildRequires: xz
37e4d806 38BuildRequires: xz-devel
ecc471a9 39BuildRequires: zlib-devel
ecd20440
JP
40Requires: freetype >= 2.1
41Requires: libjpeg >= 6b-18
42Requires: libpng >= 1.0.8
43Requires: libxcb >= 1.9
abe378b8 44Obsoletes: libimlib2_1 < 2
7d8f53dc 45BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
6e1ed481 46
6e1ed481
AM
47%description
48Imlib2 is an advanced replacement library for libraries like libXpm
49that provides many more features with much greater flexibility and
50speed than standard libraries, including font rasterization, rotation,
51RGBA space rendering and blending, dynamic binary filters, scripting,
52and more.
53
ad92b7d9
JR
54%description -l pl.UTF-8
55Imlib2 jest zaawansowaną biblioteką, zamiennikiem takich bibliotek jak
56libXpm. Imlib2 dostarcza o wiele więcej możliwości przy dużo większej
57szybkości niż standardowe biblioteki (włączając w to rasteryzację
485bf409
AM
58fontów, obracanie, renderowanie przestrzeni RGBA, mieszanie,
59dynamiczne filtry (w postaci binarnej), obsługa języka skryptowego i
60wiele więcej.
6e1ed481
AM
61
62%package devel
42a58ed5 63Summary: Imlib2 header files and development documentation
5dce206d
ER
64Summary(fr.UTF-8): Fichiers entête pour Imlib2
65Summary(pl.UTF-8): Pliki nagłówkowe oraz dokumentacja do imlib2
6e1ed481 66Group: X11/Development/Libraries
deebefc7 67Requires: %{name} = %{version}-%{release}
42a58ed5 68Requires: freetype-devel
009059a1 69Requires: libltdl-devel
6fef07ec 70Requires: xorg-lib-libXext-devel
abe378b8 71Obsoletes: libimlib2_1-devel < 2
6e1ed481
AM
72
73%description devel
42a58ed5 74Header files and development documentation for Imlib2.
6e1ed481 75
ad92b7d9
JR
76%description devel -l fr.UTF-8
77Fichiers entête pour Imlib2.
6e1ed481 78
ad92b7d9
JR
79%description devel -l pl.UTF-8
80Pliki nagłówkowe oraz dokumentacja do biblioteki Imlib2.
6e1ed481
AM
81
82%package static
62e1a2f2
JB
83Summary: Imlib2 static library
84Summary(pl.UTF-8): Biblioteka statyczna imlib2
6e1ed481 85Group: X11/Development/Libraries
deebefc7 86Requires: %{name}-devel = %{version}-%{release}
6e1ed481
AM
87
88%description static
62e1a2f2 89Imlib2 static library.
6e1ed481 90
ad92b7d9 91%description static -l pl.UTF-8
62e1a2f2 92Biblioteka statyczna imlib2.
6e1ed481
AM
93
94%prep
485bf409 95%setup -q
6e1ed481 96
abe378b8
JB
97# missing in dist tarball, make a stub
98install -d test
99touch 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
123rm -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
134rm -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
This page took 0.166457 seconds and 4 git commands to generate.