]> git.pld-linux.org Git - packages/FreeImage.git/blame - FreeImage.spec
- rel 2
[packages/FreeImage.git] / FreeImage.spec
CommitLineData
dba30cc3 1%define _ver %(echo %{version} | tr -d .)
941b4a25 2Summary: Library for handling different graphics files formats
30392037 3Summary(pl.UTF-8): Biblioteka do manipulacji różnymi formatami plików graficznych
941b4a25 4Name: FreeImage
dba30cc3 5Version: 3.9.3
84c16e43 6Release: 2
941b4a25 7License: GPL and FIPL (see the license-fi.txt)
8Group: Libraries
dba30cc3 9Source0: http://dl.sourceforge.net/freeimage/%{name}%{_ver}.zip
10# Source0-md5: bf3574fa4e6135cf511d5ff4bc871ec3
11Source1: http://dl.sourceforge.net/freeimage/%{name}%{_ver}.pdf
12# Source1-md5: 5a59f1d2c380da666f1cd42e082e8041
941b4a25 13URL: http://freeimage.sourceforge.net/index.html
7dc0d81d 14BuildRequires: libstdc++-devel
941b4a25 15BuildRequires: unzip
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%description
19FreeImage is a library project for developers who would like to
20support popular graphics image formats like PNG, BMP, JPEG, TIFF and
21others as needed by multimedia applications. FreeImage is easy to use,
22fast, multithreading, safe.
23
9c7860e7 24%description -l pl.UTF-8
12be9d48
JB
25FreeImage jest projektem biblioteki dla programistów chcących
26obsługiwać popularne formaty plików graficznych takie jak PNG, BMP,
941b4a25 27JPEG, TIFF i inne wykorzystywane w aplikacjach multimedialnych.
9c7860e7 28FreeImage jest łatwy w użyciu, szybki, wielowątkowy i bezpieczny.
941b4a25 29
30%package devel
31Summary: Header files for FreeImage library
30392037 32Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FreeImage
941b4a25 33Group: Development/Libraries
34Requires: %{name} = %{version}-%{release}
35
36%description devel
37Header files for FreeImage library.
38
9c7860e7
JR
39%description devel -l pl.UTF-8
40Pliki nagłówkowe biblioteki FreeImage.
941b4a25 41
42%package static
43Summary: Static FreeImage library
30392037 44Summary(pl.UTF-8): Statyczna biblioteka FreeImage
941b4a25 45Group: Development/Libraries
46Requires: %{name}-devel = %{version}-%{release}
47
48%description static
49Static FreeImage library.
50
9c7860e7 51%description static -l pl.UTF-8
941b4a25 52Statyczna biblioteka FreeImage.
53
54%prep
55%setup -q -n %{name}
56
57%build
58%{__make} \
39cd7938
JB
59 CC="%{__cc}" \
60 CXX="%{__cxx}" \
61 COMPILERFLAGS="%{rpmcflags} -fPIC"
941b4a25 62
63%install
64rm -rf $RPM_BUILD_ROOT
65install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}}
66install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
67
68install Dist/libfreeimage* $RPM_BUILD_ROOT%{_libdir}
69install Dist/*.h $RPM_BUILD_ROOT%{_includedir}
70
71cp -rf Examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
72cp -f %{SOURCE1} .
73
941b4a25 74ln -sf libfreeimage-%{version}.so \
75 $RPM_BUILD_ROOT%{_libdir}/libfreeimage.so
76
77%clean
78rm -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)
dba30cc3 90%doc FreeImage%{_ver}.pdf
941b4a25 91%attr(755,root,root) %{_libdir}/libfreeimage.so
39cd7938 92%{_includedir}/FreeImage.h
941b4a25 93%{_examplesdir}/%{name}-%{version}
94
95%files static
96%defattr(644,root,root,755)
39cd7938 97%{_libdir}/libfreeimage.a
This page took 0.073926 seconds and 4 git commands to generate.