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