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