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
14 BuildRequires: libstdc++-devel
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 FreeImage is a library project for developers who would like to
20 support popular graphics image formats like PNG, BMP, JPEG, TIFF and
21 others as needed by multimedia applications. FreeImage is easy to use,
22 fast, multithreading, safe.
24 %description -l pl.UTF-8
25 FreeImage jest projektem biblioteki dla programistów chcących
26 obsługiwać popularne formaty plików graficznych takie jak PNG, BMP,
27 JPEG, TIFF i inne wykorzystywane w aplikacjach multimedialnych.
28 FreeImage jest łatwy w użyciu, szybki, wielowątkowy i bezpieczny.
31 Summary: Header files for FreeImage library
32 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FreeImage
33 Group: Development/Libraries
34 Requires: %{name} = %{version}-%{release}
37 Header files for FreeImage library.
39 %description devel -l pl.UTF-8
40 Pliki nagłówkowe biblioteki FreeImage.
43 Summary: Static FreeImage library
44 Summary(pl.UTF-8): Statyczna biblioteka FreeImage
45 Group: Development/Libraries
46 Requires: %{name}-devel = %{version}-%{release}
49 Static FreeImage library.
51 %description static -l pl.UTF-8
52 Statyczna biblioteka FreeImage.
59 RPM_OPT_FLAGS="%{rpmcflags}"
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}}
64 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
66 install Dist/libfreeimage* $RPM_BUILD_ROOT%{_libdir}
67 install Dist/*.h $RPM_BUILD_ROOT%{_includedir}
69 cp -rf Examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
72 ln -sf libfreeimage-%{version}.so \
73 $RPM_BUILD_ROOT%{_libdir}/libfreeimage.so
76 rm -rf $RPM_BUILD_ROOT
78 %post -p /sbin/ldconfig
79 %postun -p /sbin/ldconfig
82 %defattr(644,root,root,755)
83 %doc README.linux Whatsnew.txt license-fi.txt
84 %attr(755,root,root) %{_libdir}/libfreeimage-*.*.*.so
87 %defattr(644,root,root,755)
88 %doc FreeImage%{_ver}.pdf
89 %attr(755,root,root) %{_libdir}/libfreeimage.so
91 %{_examplesdir}/%{name}-%{version}
94 %defattr(644,root,root,755)