]>
Commit | Line | Data |
---|---|---|
40c56dec | 1 | %define fver %(echo %{version} | tr -d .) |
941b4a25 | 2 | Summary: Library for handling different graphics files formats |
30392037 | 3 | Summary(pl.UTF-8): Biblioteka do manipulacji różnymi formatami plików graficznych |
941b4a25 | 4 | Name: FreeImage |
40c56dec | 5 | Version: 3.15.3 |
0104bc9d | 6 | Release: 1 |
40c56dec | 7 | License: GPL and FIPL v1.0 (see the license-fi.txt) |
941b4a25 | 8 | Group: Libraries |
40c56dec JB |
9 | Source0: http://downloads.sourceforge.net/freeimage/%{name}%{fver}.zip |
10 | # Source0-md5: 6c305b4086500ff8541c596ea6fc7cd7 | |
11 | Source1: http://downloads.sourceforge.net/freeimage/%{name}%{fver}.pdf | |
12 | # Source1-md5: 37bfb61df9051b204f40ef7fb9f92fb8 | |
941b4a25 | 13 | URL: http://freeimage.sourceforge.net/index.html |
7dc0d81d | 14 | BuildRequires: libstdc++-devel |
941b4a25 | 15 | BuildRequires: unzip |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
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. | |
23 | ||
9c7860e7 | 24 | %description -l pl.UTF-8 |
12be9d48 JB |
25 | FreeImage jest projektem biblioteki dla programistów chcących |
26 | obsługiwać popularne formaty plików graficznych takie jak PNG, BMP, | |
941b4a25 | 27 | JPEG, TIFF i inne wykorzystywane w aplikacjach multimedialnych. |
9c7860e7 | 28 | FreeImage jest łatwy w użyciu, szybki, wielowątkowy i bezpieczny. |
941b4a25 | 29 | |
30 | %package devel | |
31 | Summary: Header files for FreeImage library | |
30392037 | 32 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FreeImage |
941b4a25 | 33 | Group: Development/Libraries |
34 | Requires: %{name} = %{version}-%{release} | |
35 | ||
36 | %description devel | |
37 | Header files for FreeImage library. | |
38 | ||
9c7860e7 JR |
39 | %description devel -l pl.UTF-8 |
40 | Pliki nagłówkowe biblioteki FreeImage. | |
941b4a25 | 41 | |
42 | %package static | |
43 | Summary: Static FreeImage library | |
30392037 | 44 | Summary(pl.UTF-8): Statyczna biblioteka FreeImage |
941b4a25 | 45 | Group: Development/Libraries |
46 | Requires: %{name}-devel = %{version}-%{release} | |
47 | ||
48 | %description static | |
49 | Static FreeImage library. | |
50 | ||
9c7860e7 | 51 | %description static -l pl.UTF-8 |
941b4a25 | 52 | Statyczna biblioteka FreeImage. |
53 | ||
54 | %prep | |
55 | %setup -q -n %{name} | |
56 | ||
57 | %build | |
58 | %{__make} \ | |
39cd7938 JB |
59 | CC="%{__cc}" \ |
60 | CXX="%{__cxx}" \ | |
40c56dec JB |
61 | CFLAGS='%{rpmcflags} -fPIC -fvisibility=hidden -DNO_LCMS $(INCLUDE)' \ |
62 | CXXFLAGS='%{rpmcxxflags} -fPIC -fvisibility=hidden -Wno-ctor-dtor-privacy $(INCLUDE)' | |
941b4a25 | 63 | |
64 | %install | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}} | |
67 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
68 | ||
69 | install Dist/libfreeimage* $RPM_BUILD_ROOT%{_libdir} | |
70 | install Dist/*.h $RPM_BUILD_ROOT%{_includedir} | |
71 | ||
72 | cp -rf Examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
73 | cp -f %{SOURCE1} . | |
74 | ||
941b4a25 | 75 | ln -sf libfreeimage-%{version}.so \ |
76 | $RPM_BUILD_ROOT%{_libdir}/libfreeimage.so | |
77 | ||
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %post -p /sbin/ldconfig | |
82 | %postun -p /sbin/ldconfig | |
83 | ||
84 | %files | |
85 | %defattr(644,root,root,755) | |
86 | %doc README.linux Whatsnew.txt license-fi.txt | |
87 | %attr(755,root,root) %{_libdir}/libfreeimage-*.*.*.so | |
88 | ||
89 | %files devel | |
90 | %defattr(644,root,root,755) | |
40c56dec | 91 | %doc FreeImage%{fver}.pdf |
941b4a25 | 92 | %attr(755,root,root) %{_libdir}/libfreeimage.so |
39cd7938 | 93 | %{_includedir}/FreeImage.h |
941b4a25 | 94 | %{_examplesdir}/%{name}-%{version} |
95 | ||
96 | %files static | |
97 | %defattr(644,root,root,755) | |
39cd7938 | 98 | %{_libdir}/libfreeimage.a |