]> git.pld-linux.org Git - packages/FreeImage.git/blame - FreeImage.spec
- updated to 3.16.0
[packages/FreeImage.git] / FreeImage.spec
CommitLineData
1deef207
JB
1# TODO: use system libraries (if possible):
2# libjpeg 9a
3# libpng 1.6.10
4# libtiff 4.0.3+CVS
5# libraw 0.16.0
6# openjpeg 2.1.0+svn
7# zlib 1.2.8
8# libwebp 0.4.0+git
9# LibJXR 1.1+git
10# OpenEXR 1.7.1
40c56dec 11%define fver %(echo %{version} | tr -d .)
941b4a25 12Summary: Library for handling different graphics files formats
30392037 13Summary(pl.UTF-8): Biblioteka do manipulacji różnymi formatami plików graficznych
941b4a25 14Name: FreeImage
1deef207 15Version: 3.16.0
0104bc9d 16Release: 1
40c56dec 17License: GPL and FIPL v1.0 (see the license-fi.txt)
941b4a25 18Group: Libraries
40c56dec 19Source0: http://downloads.sourceforge.net/freeimage/%{name}%{fver}.zip
1deef207 20# Source0-md5: 1a2d1fff6204adbd479cc98818892fc1
40c56dec 21Source1: http://downloads.sourceforge.net/freeimage/%{name}%{fver}.pdf
1deef207 22# Source1-md5: f8df04e0c5fb7a9af850a23df7ac244e
0605af56 23Patch0: %{name}-includes.patch
941b4a25 24URL: http://freeimage.sourceforge.net/index.html
7dc0d81d 25BuildRequires: libstdc++-devel
941b4a25 26BuildRequires: unzip
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%description
30FreeImage is a library project for developers who would like to
31support popular graphics image formats like PNG, BMP, JPEG, TIFF and
32others as needed by multimedia applications. FreeImage is easy to use,
33fast, multithreading, safe.
34
9c7860e7 35%description -l pl.UTF-8
12be9d48
JB
36FreeImage jest projektem biblioteki dla programistów chcących
37obsługiwać popularne formaty plików graficznych takie jak PNG, BMP,
941b4a25 38JPEG, TIFF i inne wykorzystywane w aplikacjach multimedialnych.
9c7860e7 39FreeImage jest łatwy w użyciu, szybki, wielowątkowy i bezpieczny.
941b4a25 40
41%package devel
42Summary: Header files for FreeImage library
30392037 43Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FreeImage
941b4a25 44Group: Development/Libraries
45Requires: %{name} = %{version}-%{release}
46
47%description devel
48Header files for FreeImage library.
49
9c7860e7
JR
50%description devel -l pl.UTF-8
51Pliki nagłówkowe biblioteki FreeImage.
941b4a25 52
53%package static
54Summary: Static FreeImage library
30392037 55Summary(pl.UTF-8): Statyczna biblioteka FreeImage
941b4a25 56Group: Development/Libraries
57Requires: %{name}-devel = %{version}-%{release}
58
59%description static
60Static FreeImage library.
61
9c7860e7 62%description static -l pl.UTF-8
941b4a25 63Statyczna biblioteka FreeImage.
64
65%prep
66%setup -q -n %{name}
0605af56 67%patch0 -p1
941b4a25 68
69%build
1deef207
JB
70CFLAGS="%{rpmcflags} -fPIC -fvisibility=hidden" \
71CXXFLAGS="%{rpmcxxflags} -fPIC -fvisibility=hidden -Wno-ctor-dtor-privacy" \
941b4a25 72%{__make} \
39cd7938 73 CC="%{__cc}" \
1deef207 74 CXX="%{__cxx}"
941b4a25 75
76%install
77rm -rf $RPM_BUILD_ROOT
78install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}}
79install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
80
81install Dist/libfreeimage* $RPM_BUILD_ROOT%{_libdir}
82install Dist/*.h $RPM_BUILD_ROOT%{_includedir}
83
84cp -rf Examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
85cp -f %{SOURCE1} .
86
1deef207 87/sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir}
941b4a25 88ln -sf libfreeimage-%{version}.so \
89 $RPM_BUILD_ROOT%{_libdir}/libfreeimage.so
90
91%clean
92rm -rf $RPM_BUILD_ROOT
93
94%post -p /sbin/ldconfig
95%postun -p /sbin/ldconfig
96
97%files
98%defattr(644,root,root,755)
99%doc README.linux Whatsnew.txt license-fi.txt
100%attr(755,root,root) %{_libdir}/libfreeimage-*.*.*.so
1deef207 101%attr(755,root,root) %ghost %{_libdir}/libfreeimage.so.3
941b4a25 102
103%files devel
104%defattr(644,root,root,755)
40c56dec 105%doc FreeImage%{fver}.pdf
941b4a25 106%attr(755,root,root) %{_libdir}/libfreeimage.so
39cd7938 107%{_includedir}/FreeImage.h
941b4a25 108%{_examplesdir}/%{name}-%{version}
109
110%files static
111%defattr(644,root,root,755)
39cd7938 112%{_libdir}/libfreeimage.a
This page took 0.072331 seconds and 4 git commands to generate.