]>
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 |
b372f7bf | 8 | Version: 1.2.0.13 |
450b75f8 | 9 | Release: 2 |
b3153ded | 10 | License: distributable (see COPYING) |
964af0e2 | 11 | Group: Libraries |
964af0e2 JB |
12 | # Strange... [URL] says you can order it (for money) and doesn't contain any |
13 | # link, but sources can be freely redistributed. Can be found on any IM mirror. | |
f3fe73a1 | 14 | Source0: ftp://ftp.simplesystems.org/pub/ImageMagick/delegates/%{name}-%{version}.tar.bz2 |
b372f7bf | 15 | # Source0-md5: 5e781a17ec96e8f9af8c2ff319e8d706 |
8fe316d7 | 16 | URL: http://www.i3a.org/i_flashpix.html |
270d7eed JB |
17 | BuildRequires: autoconf >= 2.55 |
18 | BuildRequires: automake >= 1:1.9 | |
f25ce4fd | 19 | BuildRequires: libtool >= 2:1.5 |
f3fe73a1 | 20 | BuildRequires: libstdc++-devel >= 3.2.2 |
8fe316d7 AF |
21 | Provides: fpx |
22 | Obsoletes: fpx | |
964af0e2 JB |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
26 | FlashPIX OpenSource Toolkit is based on source obtained from the | |
27 | Digital Imaging Group Inc. and includes a sample FlashPIX library | |
28 | implementation contributed by Eastman Kodak Company. | |
29 | ||
8aee36ee JR |
30 | %description -l pl.UTF-8 |
31 | FlashPIX OpenSource Toolkit jest bazowany na źródłach uzyskanych od | |
32 | Digital Imaging Group i zawiera przykładową implementację biblioteki | |
33 | FlashPIX, do której przyczynił się Eastman Kodak Company. | |
964af0e2 JB |
34 | |
35 | %package devel | |
36 | Summary: FlashPIX header file and documentation | |
68e7c762 | 37 | Summary(pl.UTF-8): Plik nagłówkowy i dokumentacja do FlashPIX |
964af0e2 | 38 | Group: Development/Libraries |
270d7eed | 39 | Requires: %{name} = %{version}-%{release} |
8fe316d7 | 40 | Obsoletes: fpx-devel |
964af0e2 JB |
41 | |
42 | %description devel | |
43 | FlashPIX header files and programmer's documentation. | |
44 | ||
8aee36ee JR |
45 | %description devel -l pl.UTF-8 |
46 | Plik nagłówkowy potrzebny do kompilowania programów korzystających z | |
964af0e2 JB |
47 | biblioteki FlashPIX oraz dokumentacja do tej biblioteki. |
48 | ||
49 | %package static | |
50 | Summary: FlashPIX static library | |
68e7c762 | 51 | Summary(pl.UTF-8): Statyczna biblioteka FlashPIX |
964af0e2 | 52 | Group: Development/Libraries |
270d7eed | 53 | Requires: %{name}-devel = %{version}-%{release} |
8fe316d7 | 54 | Obsoletes: fpx-static |
964af0e2 JB |
55 | |
56 | %description static | |
57 | Static version of FlashPIX library. | |
58 | ||
8aee36ee | 59 | %description static -l pl.UTF-8 |
964af0e2 JB |
60 | Statyczna wersja biblioteki FlashPIX. |
61 | ||
62 | %prep | |
270d7eed | 63 | %setup -q |
964af0e2 JB |
64 | |
65 | %build | |
c079563a | 66 | %{__libtoolize} |
1e674391 | 67 | %{__aclocal} |
e808a0a3 | 68 | %{__autoconf} |
69 | %{__automake} | |
3763b874 | 70 | %configure \ |
3747df4a | 71 | --enable-fast-install \ |
72 | %{!?with_static_libs:--disable-static} | |
964af0e2 JB |
73 | %{__make} |
74 | ||
75 | %install | |
76 | rm -rf $RPM_BUILD_ROOT | |
ead459f7 | 77 | |
270d7eed JB |
78 | %{__make} install \ |
79 | DESTDIR=$RPM_BUILD_ROOT | |
964af0e2 | 80 | |
964af0e2 JB |
81 | %clean |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %post -p /sbin/ldconfig | |
85 | %postun -p /sbin/ldconfig | |
86 | ||
87 | %files | |
88 | %defattr(644,root,root,755) | |
38b41398 | 89 | %doc AUTHORS COPYING ChangeLog NEWS README |
270d7eed | 90 | %attr(755,root,root) %{_libdir}/libfpx.so.*.*.* |
964af0e2 JB |
91 | |
92 | %files devel | |
93 | %defattr(644,root,root,755) | |
38b41398 | 94 | %doc doc/*.pdf doc/readme.txt |
270d7eed JB |
95 | %attr(755,root,root) %{_libdir}/libfpx.so |
96 | %{_libdir}/libfpx.la | |
97 | %{_includedir}/fpxlib.h | |
964af0e2 | 98 | |
3747df4a | 99 | %if %{with static_libs} |
964af0e2 JB |
100 | %files static |
101 | %defattr(644,root,root,755) | |
270d7eed | 102 | %{_libdir}/libfpx.a |
3747df4a | 103 | %endif |