3 %bcond_without static_libs # don't build static library
6 Summary: JPEG Scaling Library
7 Summary(pl.UTF-8): Biblioteka do skalowania JPEG-ów
13 Source0: %{name}-%{version}-%{_snap}.tar.bz2
14 # Source0-md5: a7331984bef4543a6ed1b385ccd7cc0d
15 URL: http://enlightenment.org/Libraries/Epeg/
16 BuildRequires: autoconf >= 2.52
17 BuildRequires: automake >= 1.6
18 BuildRequires: libjpeg-devel
19 BuildRequires: libtool
20 Requires: %{name}-libs = %{version}-%{release}
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Epeg is a library which provides facilities for scaling JPEG images
27 %description -l pl.UTF-8
28 Epeg to biblioteka ułatwiająca bardzo szybkie skalowanie obrazów JPEG.
32 Summary(pl.UTF-8): Biblioteka epeg
38 %description libs -l pl.UTF-8
42 Summary: Epeg header files
43 Summary(pl.UTF-8): Pliki nagłówkowe Epeg
44 Group: Development/Libraries
45 Requires: %{name}-libs = %{version}-%{release}
46 Requires: libjpeg-devel
49 Header files for Epeg.
51 %description devel -l pl.UTF-8
52 Pliki nagłówkowe Epeg.
55 Summary: Static Epeg library
56 Summary(pl.UTF-8): Statyczna biblioteka Epeg
57 Group: Development/Libraries
58 Requires: %{name}-devel = %{version}-%{release}
63 %description static -l pl.UTF-8
64 Statyczna biblioteka Epeg.
67 %setup -q -n %{name}-%{version}-%{_snap}
76 %{!?with_static_libs:--disable-static}
80 rm -rf $RPM_BUILD_ROOT
83 DESTDIR=$RPM_BUILD_ROOT
86 rm -rf $RPM_BUILD_ROOT
88 %post libs -p /sbin/ldconfig
89 %postun libs -p /sbin/ldconfig
92 %defattr(644,root,root,755)
93 %doc AUTHORS COPYING COPYING-PLAIN README
94 %attr(755,root,root) %{_bindir}/epeg
97 %defattr(644,root,root,755)
98 %attr(755,root,root) %{_libdir}/libepeg.so.*.*.*
99 %attr(755,root,root) %ghost %{_libdir}/libepeg.so.0
102 %defattr(644,root,root,755)
103 %attr(755,root,root) %{_libdir}/libepeg.so
104 %{_libdir}/libepeg.la
105 %{_includedir}/Epeg.h
106 %{_pkgconfigdir}/epeg.pc
108 %if %{with static_libs}
110 %defattr(644,root,root,755)