3 %bcond_without static_libs # don't build static library
5 Summary: JPEG Scaling Library
6 Summary(pl.UTF-8): Biblioteka do skalowania JPEG-ów
12 Source0: http://enlightenment.freedesktop.org/files/%{name}-%{version}.tar.gz
13 # Source0-md5: 383db51e46d13d986966459e4918d236
14 URL: http://enlightenment.org/Libraries/Epeg/
15 BuildRequires: autoconf
16 BuildRequires: automake
17 BuildRequires: libjpeg-devel
18 BuildRequires: libtool
19 Requires: %{name}-libs = %{version}-%{release}
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Epeg is a library which provides facilities for scaling JPEG images
26 %description -l pl.UTF-8
27 Epeg to biblioteka ułatwiająca bardzo szybkie skalowanie obrazów JPEG.
31 Summary(pl.UTF-8): Biblioteka epeg
37 %description libs -l pl.UTF-8
41 Summary: Epeg header files
42 Summary(pl.UTF-8): Pliki nagłówkowe Epeg
43 Group: Development/Libraries
44 Requires: %{name}-libs = %{version}-%{release}
45 Requires: libjpeg-devel
48 Header files for Epeg.
50 %description devel -l pl.UTF-8
51 Pliki nagłówkowe Epeg.
54 Summary: Static Epeg library
55 Summary(pl.UTF-8): Statyczna biblioteka Epeg
56 Group: Development/Libraries
57 Requires: %{name}-devel = %{version}-%{release}
62 %description static -l pl.UTF-8
63 Statyczna biblioteka Epeg.
75 %{!?with_static_libs:--disable-static}
79 rm -rf $RPM_BUILD_ROOT
82 DESTDIR=$RPM_BUILD_ROOT
85 rm -rf $RPM_BUILD_ROOT
87 %post libs -p /sbin/ldconfig
88 %postun libs -p /sbin/ldconfig
91 %defattr(644,root,root,755)
92 %doc AUTHORS COPYING COPYING-PLAIN INSTALL README
93 %attr(755,root,root) %{_bindir}/epeg
96 %defattr(644,root,root,755)
97 %attr(755,root,root) %{_libdir}/libepeg.so.*.*.*
100 %defattr(644,root,root,755)
101 %attr(755,root,root) %{_bindir}/epeg-config
102 %attr(755,root,root) %{_libdir}/libepeg.so
103 %{_libdir}/libepeg.la
105 %{_pkgconfigdir}/epeg.pc
107 %if %{with static_libs}
109 %defattr(644,root,root,755)