]> git.pld-linux.org Git - packages/FreeImage.git/blame - FreeImage.spec
- cosmetics
[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
941b4a25 6Release: 1
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
14BuildRequires: unzip
15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17%description
18FreeImage is a library project for developers who would like to
19support popular graphics image formats like PNG, BMP, JPEG, TIFF and
20others as needed by multimedia applications. FreeImage is easy to use,
21fast, multithreading, safe.
22
9c7860e7 23%description -l pl.UTF-8
12be9d48
JB
24FreeImage jest projektem biblioteki dla programistów chcących
25obsługiwać popularne formaty plików graficznych takie jak PNG, BMP,
941b4a25 26JPEG, TIFF i inne wykorzystywane w aplikacjach multimedialnych.
9c7860e7 27FreeImage jest łatwy w użyciu, szybki, wielowątkowy i bezpieczny.
941b4a25 28
29%package devel
30Summary: Header files for FreeImage library
30392037 31Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FreeImage
941b4a25 32Group: Development/Libraries
33Requires: %{name} = %{version}-%{release}
34
35%description devel
36Header files for FreeImage library.
37
9c7860e7
JR
38%description devel -l pl.UTF-8
39Pliki nagłówkowe biblioteki FreeImage.
941b4a25 40
41%package static
42Summary: Static FreeImage library
30392037 43Summary(pl.UTF-8): Statyczna biblioteka FreeImage
941b4a25 44Group: Development/Libraries
45Requires: %{name}-devel = %{version}-%{release}
46
47%description static
48Static FreeImage library.
49
9c7860e7 50%description static -l pl.UTF-8
941b4a25 51Statyczna biblioteka FreeImage.
52
53%prep
54%setup -q -n %{name}
55
56%build
57%{__make} \
dba30cc3 58 RPM_OPT_FLAGS="%{rpmcflags}"
941b4a25 59
60%install
61rm -rf $RPM_BUILD_ROOT
62install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}}
63install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
64
65install Dist/libfreeimage* $RPM_BUILD_ROOT%{_libdir}
66install Dist/*.h $RPM_BUILD_ROOT%{_includedir}
67
68cp -rf Examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
69cp -f %{SOURCE1} .
70
941b4a25 71ln -sf libfreeimage-%{version}.so \
72 $RPM_BUILD_ROOT%{_libdir}/libfreeimage.so
73
74%clean
75rm -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)
dba30cc3 87%doc FreeImage%{_ver}.pdf
941b4a25 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.081246 seconds and 4 git commands to generate.