]> git.pld-linux.org Git - packages/FreeImage.git/blob - FreeImage.spec
0e8447de939c37cd1896875636b08962fab80286
[packages/FreeImage.git] / FreeImage.spec
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
4 Name:           FreeImage
5 Version:        3.12.0
6 Release:        1
7 License:        GPL and FIPL (see the license-fi.txt)
8 Group:          Libraries
9 Source0:        http://dl.sourceforge.net/freeimage/%{name}%{_ver}.zip
10 # Source0-md5:  47b259102f776a4bcd7affc00942f3b4
11 Source1:        http://dl.sourceforge.net/freeimage/%{name}%{_ver}.pdf
12 # Source1-md5:  241b0d44f9e0fd84d91244ec4e050ab6
13 URL:            http://freeimage.sourceforge.net/index.html
14 BuildRequires:  libstdc++-devel
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
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.
29
30 %package devel
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}
35
36 %description devel
37 Header files for FreeImage library.
38
39 %description devel -l pl.UTF-8
40 Pliki nagłówkowe biblioteki FreeImage.
41
42 %package static
43 Summary:        Static FreeImage library
44 Summary(pl.UTF-8):      Statyczna biblioteka FreeImage
45 Group:          Development/Libraries
46 Requires:       %{name}-devel = %{version}-%{release}
47
48 %description static
49 Static FreeImage library.
50
51 %description static -l pl.UTF-8
52 Statyczna biblioteka FreeImage.
53
54 %prep
55 %setup -q -n %{name}
56
57 %build
58 %{__make} \
59         CC="%{__cc}" \
60         CXX="%{__cxx}" \
61         COMPILERFLAGS="%{rpmcflags} -fPIC"
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}}
66 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
67
68 install Dist/libfreeimage* $RPM_BUILD_ROOT%{_libdir}
69 install Dist/*.h $RPM_BUILD_ROOT%{_includedir}
70
71 cp -rf Examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
72 cp -f %{SOURCE1} .
73
74 ln -sf libfreeimage-%{version}.so \
75         $RPM_BUILD_ROOT%{_libdir}/libfreeimage.so
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %post   -p /sbin/ldconfig
81 %postun -p /sbin/ldconfig
82
83 %files
84 %defattr(644,root,root,755)
85 %doc README.linux Whatsnew.txt license-fi.txt
86 %attr(755,root,root) %{_libdir}/libfreeimage-*.*.*.so
87
88 %files devel
89 %defattr(644,root,root,755)
90 %doc FreeImage%{_ver}.pdf
91 %attr(755,root,root) %{_libdir}/libfreeimage.so
92 %{_includedir}/FreeImage.h
93 %{_examplesdir}/%{name}-%{version}
94
95 %files static
96 %defattr(644,root,root,755)
97 %{_libdir}/libfreeimage.a
This page took 0.027457 seconds and 2 git commands to generate.