3 %bcond_without static_libs # don't build static library
5 Summary: FlashPIX OpenSource Toolkit
6 Summary(pl.UTF-8): Biblioteka do obróbki obrazków FlashPIX
10 License: distributable (see COPYING)
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.
14 Source0: ftp://ftp.imagemagick.org/pub/ImageMagick/delegates/%{name}-1.3.1-6.tar.xz
15 # Source0-md5: f7735e67b0af83404aab8cfa45808136
16 Patch0: %{name}-link.patch
17 URL: http://www.i3a.org/technologies/digitalimaging/flashpix/
18 BuildRequires: autoconf >= 2.60
19 BuildRequires: automake >= 1:1.11
20 BuildRequires: libtool >= 2:1.5
21 BuildRequires: libstdc++-devel >= 3.2.2
22 BuildRequires: tar >= 1:1.22
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 FlashPIX OpenSource Toolkit is based on source obtained from the
30 Digital Imaging Group Inc. and includes a sample FlashPIX library
31 implementation contributed by Eastman Kodak Company.
33 %description -l pl.UTF-8
34 FlashPIX OpenSource Toolkit jest bazowany na źródłach uzyskanych od
35 Digital Imaging Group i zawiera przykładową implementację biblioteki
36 FlashPIX, do której przyczynił się Eastman Kodak Company.
39 Summary: FlashPIX header file and documentation
40 Summary(pl.UTF-8): Plik nagłówkowy i dokumentacja do FlashPIX
41 Group: Development/Libraries
42 Requires: %{name} = %{version}-%{release}
46 FlashPIX header files and programmer's documentation.
48 %description devel -l pl.UTF-8
49 Plik nagłówkowy potrzebny do kompilowania programów korzystających z
50 biblioteki FlashPIX oraz dokumentacja do tej biblioteki.
53 Summary: FlashPIX static library
54 Summary(pl.UTF-8): Statyczna biblioteka FlashPIX
55 Group: Development/Libraries
56 Requires: %{name}-devel = %{version}-%{release}
60 Static version of FlashPIX library.
62 %description static -l pl.UTF-8
63 Statyczna wersja biblioteki FlashPIX.
66 %setup -q -n %{name}-1.3.1-6
69 ln -f flashpix.h COPYING
77 --enable-fast-install \
78 %{!?with_static_libs:--disable-static}
82 rm -rf $RPM_BUILD_ROOT
85 DESTDIR=$RPM_BUILD_ROOT
88 rm -rf $RPM_BUILD_ROOT
90 %post -p /sbin/ldconfig
91 %postun -p /sbin/ldconfig
94 %defattr(644,root,root,755)
95 %doc AUTHORS COPYING ChangeLog NEWS README
96 %attr(755,root,root) %{_libdir}/libfpx.so.*.*.*
97 %attr(755,root,root) %ghost %{_libdir}/libfpx.so.1
100 %defattr(644,root,root,755)
101 %doc doc/*.pdf doc/readme.txt
102 %attr(755,root,root) %{_libdir}/libfpx.so
104 %{_includedir}/fpxlib.h
106 %if %{with static_libs}
108 %defattr(644,root,root,755)