1 %define _ver %(echo %{version} | tr -d .)
2 Summary: Library for handling different graphics files formats
3 Summary(pl.UTF-8): Biblioteka do manipulacji różnymi formatami plików graficznych
7 License: GPL and FIPL (see the license-fi.txt)
9 Source0: http://dl.sourceforge.net/freeimage/%{name}%{_ver}.zip
10 # Source0-md5: bf3574fa4e6135cf511d5ff4bc871ec3
11 Source1: http://dl.sourceforge.net/freeimage/%{name}%{_ver}.pdf
12 # Source1-md5: 5a59f1d2c380da666f1cd42e082e8041
13 URL: http://freeimage.sourceforge.net/index.html
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 FreeImage is a library project for developers who would like to
19 support popular graphics image formats like PNG, BMP, JPEG, TIFF and
20 others as needed by multimedia applications. FreeImage is easy to use,
21 fast, multithreading, safe.
23 %description -l pl.UTF-8
24 FreeImage jest projektem biblioteki dla programistów chcących
25 obsługiwać popularne formaty plików graficznych takie jak PNG, BMP,
26 JPEG, TIFF i inne wykorzystywane w aplikacjach multimedialnych.
27 FreeImage jest łatwy w użyciu, szybki, wielowątkowy i bezpieczny.
30 Summary: Header files for FreeImage library
31 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FreeImage
32 Group: Development/Libraries
33 Requires: %{name} = %{version}-%{release}
36 Header files for FreeImage library.
38 %description devel -l pl.UTF-8
39 Pliki nagłówkowe biblioteki FreeImage.
42 Summary: Static FreeImage library
43 Summary(pl.UTF-8): Statyczna biblioteka FreeImage
44 Group: Development/Libraries
45 Requires: %{name}-devel = %{version}-%{release}
48 Static FreeImage library.
50 %description static -l pl.UTF-8
51 Statyczna biblioteka FreeImage.
58 RPM_OPT_FLAGS="%{rpmcflags}"
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}}
63 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
65 install Dist/libfreeimage* $RPM_BUILD_ROOT%{_libdir}
66 install Dist/*.h $RPM_BUILD_ROOT%{_includedir}
68 cp -rf Examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
71 ln -sf libfreeimage-%{version}.so \
72 $RPM_BUILD_ROOT%{_libdir}/libfreeimage.so
75 rm -rf $RPM_BUILD_ROOT
77 %post -p /sbin/ldconfig
78 %postun -p /sbin/ldconfig
81 %defattr(644,root,root,755)
82 %doc README.linux Whatsnew.txt license-fi.txt
83 %attr(755,root,root) %{_libdir}/libfreeimage-*.*.*.so
86 %defattr(644,root,root,755)
87 %doc FreeImage%{_ver}.pdf
88 %attr(755,root,root) %{_libdir}/libfreeimage.so
90 %{_examplesdir}/%{name}-%{version}
93 %defattr(644,root,root,755)