]> git.pld-linux.org Git - packages/FreeImage.git/blob - FreeImage.spec
0fc25465279ec81b921331833c3fb747753be869
[packages/FreeImage.git] / FreeImage.spec
1 Summary:        Library for handling different graphics files formats
2 Summary(pl):    Biblioteka do manipulacji ró¿nymi formatami plików graficznych
3 Name:           FreeImage
4 Version:        3.6.0
5 Release:        1
6 License:        GPL and FIPL (see the license-fi.txt)
7 Group:          Libraries
8 Source0:        http://dl.sourceforge.net/freeimage/%{name}360.zip
9 # Source0-md5:  3db869abfa1ceaf8f831f39e0935bc8e
10 Source1:        http://dl.sourceforge.net/freeimage/%{name}360.pdf
11 # Source1-md5:  fb2141db11c35a60d8511dda4ce8a09d
12 URL:            http://freeimage.sourceforge.net/index.html
13 BuildRequires:  unzip
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 FreeImage is a library project for developers who would like to
18 support popular graphics image formats like PNG, BMP, JPEG, TIFF and
19 others as needed by multimedia applications. FreeImage is easy to use,
20 fast, multithreading, safe.
21
22 %description -l pl
23 FreeImage jest projektem biblioteki dla deweloperów, którzy chc±
24 wspieraæ popularne formaty plików graficznych takie jak PNG, BMP,
25 JPEG, TIFF i inne wykorzystywane w aplikacjach multimedialnych.
26 FreeImage jest ³atwy w u¿yciu, szybki, wielow±tkowy i bezpieczny.
27
28 %package devel
29 Summary:        Header files for FreeImage library
30 Summary(pl):    Pliki nag³ówkowe biblioteki FreeImage
31 Group:          Development/Libraries
32 Requires:       %{name} = %{version}-%{release}
33
34 %description devel
35 Header files for FreeImage library.
36
37 %description devel -l pl
38 Pliki nag³ówkowe biblioteki FreeImage.
39
40 %package static
41 Summary:        Static FreeImage library
42 Summary(pl):    Statyczna biblioteka FreeImage
43 Group:          Development/Libraries
44 Requires:       %{name}-devel = %{version}-%{release}
45
46 %description static
47 Static FreeImage library.
48
49 %description static -l pl
50 Statyczna biblioteka FreeImage.
51
52 %prep
53 %setup -q -n %{name}
54
55 %build
56 %{__make} \
57         COMPILERFLAGS="%{rpmcflags}"
58
59 %install
60 rm -rf $RPM_BUILD_ROOT
61 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}}
62 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
63
64 install Dist/libfreeimage* $RPM_BUILD_ROOT%{_libdir}
65 install Dist/*.h $RPM_BUILD_ROOT%{_includedir}
66
67 cp -rf Examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
68 cp -f %{SOURCE1} .
69
70 cd Dist
71 ln -sf libfreeimage-%{version}.so \
72         $RPM_BUILD_ROOT%{_libdir}/libfreeimage.so
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
76
77 %post   -p /sbin/ldconfig
78 %postun -p /sbin/ldconfig
79
80 %files
81 %defattr(644,root,root,755)
82 %doc README.linux Whatsnew.txt license-fi.txt
83 %attr(755,root,root) %{_libdir}/libfreeimage-*.*.*.so
84
85 %files devel
86 %defattr(644,root,root,755)
87 %doc FreeImage360.pdf
88 %attr(755,root,root) %{_libdir}/libfreeimage.so
89 %{_includedir}/*
90 %{_examplesdir}/%{name}-%{version}
91
92 %files static
93 %defattr(644,root,root,755)
94 %{_libdir}/lib*.a
This page took 0.078586 seconds and 2 git commands to generate.