]>
Commit | Line | Data |
---|---|---|
b372f7bf | 1 | # |
3747df4a | 2 | # Conditional build: |
3 | %bcond_without static_libs # don't build static library | |
4 | # | |
964af0e2 | 5 | Summary: FlashPIX OpenSource Toolkit |
68e7c762 | 6 | Summary(pl.UTF-8): Biblioteka do obróbki obrazków FlashPIX |
8fe316d7 | 7 | Name: libfpx |
2d7ecbb0 | 8 | Version: 1.3.1.7 |
75545b91 | 9 | Release: 1 |
b3153ded | 10 | License: distributable (see COPYING) |
964af0e2 | 11 | Group: Libraries |
2d7ecbb0 JB |
12 | Source0: http://www.imagemagick.org/download/delegates/%{name}-1.3.1-7.tar.xz |
13 | # Source0-md5: 1b3a5297aaae4101e84d1e50e6a853ee | |
44a2769a | 14 | Patch0: %{name}-link.patch |
2d7ecbb0 | 15 | URL: http://www.imagemagick.org/ |
a2fc4e2d | 16 | BuildRequires: autoconf >= 2.60 |
44a2769a | 17 | BuildRequires: automake >= 1:1.11 |
f25ce4fd | 18 | BuildRequires: libtool >= 2:1.5 |
f3fe73a1 | 19 | BuildRequires: libstdc++-devel >= 3.2.2 |
44a2769a JB |
20 | BuildRequires: tar >= 1:1.22 |
21 | BuildRequires: xz | |
8fe316d7 AF |
22 | Provides: fpx |
23 | Obsoletes: fpx | |
964af0e2 JB |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
27 | FlashPIX OpenSource Toolkit is based on source obtained from the | |
28 | Digital Imaging Group Inc. and includes a sample FlashPIX library | |
29 | implementation contributed by Eastman Kodak Company. | |
30 | ||
8aee36ee JR |
31 | %description -l pl.UTF-8 |
32 | FlashPIX OpenSource Toolkit jest bazowany na źródłach uzyskanych od | |
33 | Digital Imaging Group i zawiera przykładową implementację biblioteki | |
34 | FlashPIX, do której przyczynił się Eastman Kodak Company. | |
964af0e2 JB |
35 | |
36 | %package devel | |
37 | Summary: FlashPIX header file and documentation | |
68e7c762 | 38 | Summary(pl.UTF-8): Plik nagłówkowy i dokumentacja do FlashPIX |
964af0e2 | 39 | Group: Development/Libraries |
270d7eed | 40 | Requires: %{name} = %{version}-%{release} |
8fe316d7 | 41 | Obsoletes: fpx-devel |
964af0e2 JB |
42 | |
43 | %description devel | |
44 | FlashPIX header files and programmer's documentation. | |
45 | ||
8aee36ee JR |
46 | %description devel -l pl.UTF-8 |
47 | Plik nagłówkowy potrzebny do kompilowania programów korzystających z | |
964af0e2 JB |
48 | biblioteki FlashPIX oraz dokumentacja do tej biblioteki. |
49 | ||
50 | %package static | |
51 | Summary: FlashPIX static library | |
68e7c762 | 52 | Summary(pl.UTF-8): Statyczna biblioteka FlashPIX |
964af0e2 | 53 | Group: Development/Libraries |
270d7eed | 54 | Requires: %{name}-devel = %{version}-%{release} |
8fe316d7 | 55 | Obsoletes: fpx-static |
964af0e2 JB |
56 | |
57 | %description static | |
58 | Static version of FlashPIX library. | |
59 | ||
8aee36ee | 60 | %description static -l pl.UTF-8 |
964af0e2 JB |
61 | Statyczna wersja biblioteki FlashPIX. |
62 | ||
63 | %prep | |
2d7ecbb0 | 64 | %setup -q -n %{name}-1.3.1-7 |
44a2769a | 65 | %patch0 -p1 |
964af0e2 | 66 | |
b274fc65 JB |
67 | ln -f flashpix.h COPYING |
68 | ||
964af0e2 | 69 | %build |
c079563a | 70 | %{__libtoolize} |
1e674391 | 71 | %{__aclocal} |
e808a0a3 | 72 | %{__autoconf} |
73 | %{__automake} | |
3763b874 | 74 | %configure \ |
3747df4a | 75 | --enable-fast-install \ |
76 | %{!?with_static_libs:--disable-static} | |
964af0e2 JB |
77 | %{__make} |
78 | ||
79 | %install | |
80 | rm -rf $RPM_BUILD_ROOT | |
ead459f7 | 81 | |
270d7eed JB |
82 | %{__make} install \ |
83 | DESTDIR=$RPM_BUILD_ROOT | |
964af0e2 | 84 | |
964af0e2 JB |
85 | %clean |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %post -p /sbin/ldconfig | |
89 | %postun -p /sbin/ldconfig | |
90 | ||
91 | %files | |
92 | %defattr(644,root,root,755) | |
38b41398 | 93 | %doc AUTHORS COPYING ChangeLog NEWS README |
270d7eed | 94 | %attr(755,root,root) %{_libdir}/libfpx.so.*.*.* |
a2fc4e2d | 95 | %attr(755,root,root) %ghost %{_libdir}/libfpx.so.1 |
964af0e2 JB |
96 | |
97 | %files devel | |
98 | %defattr(644,root,root,755) | |
38b41398 | 99 | %doc doc/*.pdf doc/readme.txt |
270d7eed JB |
100 | %attr(755,root,root) %{_libdir}/libfpx.so |
101 | %{_libdir}/libfpx.la | |
102 | %{_includedir}/fpxlib.h | |
964af0e2 | 103 | |
3747df4a | 104 | %if %{with static_libs} |
964af0e2 JB |
105 | %files static |
106 | %defattr(644,root,root,755) | |
270d7eed | 107 | %{_libdir}/libfpx.a |
3747df4a | 108 | %endif |