]> git.pld-linux.org Git - packages/epeg.git/blobdiff - epeg.spec
- rel 4
[packages/epeg.git] / epeg.spec
index f1c9ed563fa77bedc6033a492ed7a92f77b53816..0cc67a78f1cb4d346ce5d5e5239159f4e3fd037d 100644 (file)
--- a/epeg.spec
+++ b/epeg.spec
@@ -1,15 +1,21 @@
+#
+# Conditional build:
+%bcond_without static_libs     # don't build static library
+#
+%define                _snap   20080813
+%define                rel     4
 Summary:       JPEG Scaling Library
-Summary(pl):   Biblioteka do skalowania JPEG-ów
+Summary(pl.UTF-8):     Biblioteka do skalowania JPEG-ów
 Name:          epeg
-Version:       0.9.0.004
-Release:       1
+Version:       0.9.1.043
+Release:       0.%{_snap}.%{rel}
 License:       BSD
 Group:         Libraries
-Source0:       http://enlightenment.freedesktop.org/files/%{name}-%{version}.tar.gz
-# Source0-md5: ad8505bed8deb7049dfa6322ce908f99
+Source0:       %{name}-%{version}-%{_snap}.tar.bz2
+# Source0-md5: a7331984bef4543a6ed1b385ccd7cc0d
 URL:           http://enlightenment.org/Libraries/Epeg/
-BuildRequires: autoconf
-BuildRequires: automake
+BuildRequires: autoconf >= 2.52
+BuildRequires: automake >= 1.6
 BuildRequires: libjpeg-devel
 BuildRequires: libtool
 Requires:      %{name}-libs = %{version}-%{release}
@@ -19,23 +25,29 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Epeg is a library which provides facilities for scaling JPEG images
 very quickly.
 
-%description -l pl
-Epeg to biblioteka u³atwiaj±ca bardzo szybkie skalowanie obrazów JPEG.
+Note: this library is obsolete; new software uses Evas to scale JPEG
+images.
+
+%description -l pl.UTF-8
+Epeg to biblioteka ułatwiająca bardzo szybkie skalowanie obrazów JPEG.
+
+Uwaga: ta biblioteka jest przestarzała; nowy kod do skalowania obrazów
+JPEG wykorzystuje bibliotekę Evas.
 
 %package libs
 Summary:       Epeg library
-Summary(pl):   Biblioteka epeg
+Summary(pl.UTF-8):     Biblioteka epeg
 Group:         Libraries
 
 %description libs
 Epeg library.
 
-%description libs -l pl
+%description libs -l pl.UTF-8
 Biblioteka epeg.
 
 %package devel
 Summary:       Epeg header files
-Summary(pl):   Pliki nag³ówkowe Epeg
+Summary(pl.UTF-8):     Pliki nagłówkowe Epeg
 Group:         Development/Libraries
 Requires:      %{name}-libs = %{version}-%{release}
 Requires:      libjpeg-devel
@@ -43,23 +55,23 @@ Requires:   libjpeg-devel
 %description devel
 Header files for Epeg.
 
-%description devel -l pl
-Pliki nag³ówkowe Epeg.
+%description devel -l pl.UTF-8
+Pliki nagłówkowe Epeg.
 
 %package static
 Summary:       Static Epeg library
-Summary(pl):   Statyczna biblioteka Epeg
+Summary(pl.UTF-8):     Statyczna biblioteka Epeg
 Group:         Development/Libraries
 Requires:      %{name}-devel = %{version}-%{release}
 
 %description static
 Static Epeg library.
 
-%description static -l pl
+%description static -l pl.UTF-8
 Statyczna biblioteka Epeg.
 
 %prep
-%setup -q
+%setup -q -n %{name}-%{version}-%{_snap}
 
 %build
 %{__libtoolize}
@@ -67,7 +79,8 @@ Statyczna biblioteka Epeg.
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-%configure
+%configure \
+       %{!?with_static_libs:--disable-static}
 %{__make}
 
 %install
@@ -79,25 +92,28 @@ rm -rf $RPM_BUILD_ROOT
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post libs     -p /sbin/ldconfig
-%postun libs   -p /sbin/ldconfig
+%post  libs -p /sbin/ldconfig
+%postun        libs -p /sbin/ldconfig
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS COPYING COPYING-PLAIN INSTALL README
+%doc AUTHORS COPYING COPYING-PLAIN README
 %attr(755,root,root) %{_bindir}/epeg
 
 %files libs
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libepeg.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libepeg.so.0
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/epeg-config
 %attr(755,root,root) %{_libdir}/libepeg.so
 %{_libdir}/libepeg.la
-%{_includedir}/Epeg*
+%{_includedir}/Epeg.h
+%{_pkgconfigdir}/epeg.pc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libepeg.a
+%endif
This page took 0.034023 seconds and 4 git commands to generate.