]>
Commit | Line | Data |
---|---|---|
b764493e KK |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
4 | # | |
da7d704c | 5 | %define _snap 20080813 |
55cda8e2 | 6 | %define rel 4 |
6ac0d5bf | 7 | Summary: JPEG Scaling Library |
d1291455 | 8 | Summary(pl.UTF-8): Biblioteka do skalowania JPEG-ów |
6ac0d5bf | 9 | Name: epeg |
da7d704c | 10 | Version: 0.9.1.043 |
55cda8e2 | 11 | Release: 0.%{_snap}.%{rel} |
6ac0d5bf | 12 | License: BSD |
b706a223 | 13 | Group: Libraries |
da7d704c | 14 | Source0: %{name}-%{version}-%{_snap}.tar.bz2 |
15 | # Source0-md5: a7331984bef4543a6ed1b385ccd7cc0d | |
df230c26 | 16 | URL: http://enlightenment.org/Libraries/Epeg/ |
b9078f89 JB |
17 | BuildRequires: autoconf >= 2.52 |
18 | BuildRequires: automake >= 1.6 | |
6ac0d5bf | 19 | BuildRequires: libjpeg-devel |
20 | BuildRequires: libtool | |
5590224c | 21 | Requires: %{name}-libs = %{version}-%{release} |
6ac0d5bf | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
25 | Epeg is a library which provides facilities for scaling JPEG images | |
26 | very quickly. | |
27 | ||
27bbfa12 JB |
28 | Note: this library is obsolete; new software uses Evas to scale JPEG |
29 | images. | |
30 | ||
728f9aa6 JR |
31 | %description -l pl.UTF-8 |
32 | Epeg to biblioteka ułatwiająca bardzo szybkie skalowanie obrazów JPEG. | |
31df5cf3 | 33 | |
27bbfa12 JB |
34 | Uwaga: ta biblioteka jest przestarzała; nowy kod do skalowania obrazów |
35 | JPEG wykorzystuje bibliotekę Evas. | |
36 | ||
5590224c | 37 | %package libs |
38 | Summary: Epeg library | |
d1291455 | 39 | Summary(pl.UTF-8): Biblioteka epeg |
5590224c | 40 | Group: Libraries |
41 | ||
42 | %description libs | |
43 | Epeg library. | |
44 | ||
728f9aa6 | 45 | %description libs -l pl.UTF-8 |
5590224c | 46 | Biblioteka epeg. |
47 | ||
6ac0d5bf | 48 | %package devel |
31df5cf3 | 49 | Summary: Epeg header files |
d1291455 | 50 | Summary(pl.UTF-8): Pliki nagłówkowe Epeg |
6ac0d5bf | 51 | Group: Development/Libraries |
5590224c | 52 | Requires: %{name}-libs = %{version}-%{release} |
6ac0d5bf | 53 | Requires: libjpeg-devel |
54 | ||
55 | %description devel | |
31df5cf3 JB |
56 | Header files for Epeg. |
57 | ||
728f9aa6 JR |
58 | %description devel -l pl.UTF-8 |
59 | Pliki nagłówkowe Epeg. | |
6ac0d5bf | 60 | |
61 | %package static | |
31df5cf3 | 62 | Summary: Static Epeg library |
d1291455 | 63 | Summary(pl.UTF-8): Statyczna biblioteka Epeg |
6ac0d5bf | 64 | Group: Development/Libraries |
31df5cf3 | 65 | Requires: %{name}-devel = %{version}-%{release} |
6ac0d5bf | 66 | |
67 | %description static | |
31df5cf3 JB |
68 | Static Epeg library. |
69 | ||
728f9aa6 | 70 | %description static -l pl.UTF-8 |
31df5cf3 | 71 | Statyczna biblioteka Epeg. |
6ac0d5bf | 72 | |
73 | %prep | |
da7d704c | 74 | %setup -q -n %{name}-%{version}-%{_snap} |
6ac0d5bf | 75 | |
76 | %build | |
77 | %{__libtoolize} | |
a6a7f7d3 | 78 | %{__aclocal} |
6ac0d5bf | 79 | %{__autoconf} |
80 | %{__autoheader} | |
81 | %{__automake} | |
b764493e KK |
82 | %configure \ |
83 | %{!?with_static_libs:--disable-static} | |
6ac0d5bf | 84 | %{__make} |
85 | ||
86 | %install | |
87 | rm -rf $RPM_BUILD_ROOT | |
31df5cf3 | 88 | |
6ac0d5bf | 89 | %{__make} install \ |
90 | DESTDIR=$RPM_BUILD_ROOT | |
91 | ||
92 | %clean | |
93 | rm -rf $RPM_BUILD_ROOT | |
94 | ||
b9078f89 JB |
95 | %post libs -p /sbin/ldconfig |
96 | %postun libs -p /sbin/ldconfig | |
6ac0d5bf | 97 | |
98 | %files | |
99 | %defattr(644,root,root,755) | |
1a70b182 | 100 | %doc AUTHORS COPYING COPYING-PLAIN README |
6ac0d5bf | 101 | %attr(755,root,root) %{_bindir}/epeg |
5590224c | 102 | |
103 | %files libs | |
104 | %defattr(644,root,root,755) | |
b9078f89 JB |
105 | %attr(755,root,root) %{_libdir}/libepeg.so.*.*.* |
106 | %attr(755,root,root) %ghost %{_libdir}/libepeg.so.0 | |
6ac0d5bf | 107 | |
108 | %files devel | |
109 | %defattr(644,root,root,755) | |
31df5cf3 JB |
110 | %attr(755,root,root) %{_libdir}/libepeg.so |
111 | %{_libdir}/libepeg.la | |
1a70b182 | 112 | %{_includedir}/Epeg.h |
70c4a716 | 113 | %{_pkgconfigdir}/epeg.pc |
6ac0d5bf | 114 | |
b764493e | 115 | %if %{with static_libs} |
6ac0d5bf | 116 | %files static |
117 | %defattr(644,root,root,755) | |
118 | %{_libdir}/libepeg.a | |
b764493e | 119 | %endif |