]>
Commit | Line | Data |
---|---|---|
e98355e6 | 1 | Summary: C++ Template Image Processing Library |
dc91e000 | 2 | Summary(pl.UTF-8): Biblioteka szablonów C++ do przetwarzania obrazu |
e98355e6 | 3 | Name: CImg |
5e2383ba | 4 | Version: 1.7.9 |
e98355e6 JB |
5 | Release: 1 |
6 | License: CeCILL Free Software License | |
7 | Group: Development/Libraries | |
003e941c | 8 | Source0: http://cimg.eu/files/%{name}_%{version}.zip |
5e2383ba | 9 | # Source0-md5: 81c26cfd69624270ddf63b09e93e6783 |
003e941c | 10 | URL: http://cimg.eu/ |
e98355e6 | 11 | BuildRequires: unzip |
57ac1875 | 12 | Conflicts: gcc-c++ < 4.0 |
e98355e6 JB |
13 | Requires: libstdc++-devel |
14 | Requires: xorg-lib-libX11-devel | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
18 | The CImg Library is an open-source C++ toolkit for image processing. | |
19 | It consists in a single header file 'CImg.h' providing a set of C++ | |
20 | classes and functions that can be used in your own sources, to | |
21 | load/save, process and display images. Very portable (Unix/X11, | |
22 | Windows, MacOS X, FreeBSD, ...), efficient, easy to use, it's a | |
23 | pleasant toolkit for coding image processing stuffs in C++. | |
24 | ||
91deddf3 JR |
25 | %description -l pl.UTF-8 |
26 | Biblioteka CImg to toolkit C++ o otwartych źródłach służący do | |
27 | przetwarzania obrazu. Składa się z pojedynczego pliku nagłówkowego | |
28 | CImg.h udostępniającego zbiór klas i funkcji C++, które można | |
29 | wykorzystać we własnych źródłach do wczytywania, zapisywania, | |
30 | przetwarzania i wyświetlania obrazów. Jest przenośny (Unix/X11, | |
31 | Windows, MacOS X, FreeBSD...), wydajny, łatwy w użyciu i przyjemny do | |
e98355e6 JB |
32 | kodowania przetwarzania obrazu w C++. |
33 | ||
34 | %prep | |
003e941c | 35 | %setup -q |
e98355e6 JB |
36 | |
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
455debd4 | 39 | install -d $RPM_BUILD_ROOT{%{_includedir}/%{name}/plugins,%{_examplesdir}/%{name}-%{version}/img} |
e98355e6 | 40 | |
94ad015e JR |
41 | install CImg.h $RPM_BUILD_ROOT%{_includedir}/%{name} |
42 | install plugins/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/plugins | |
43 | install examples/{*.cpp,*.m,Makefile} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
455debd4 | 44 | install examples/img/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/img |
e98355e6 JB |
45 | |
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
003e941c | 51 | %doc Licence* README*.txt |
94ad015e JR |
52 | %dir %{_includedir}/%{name} |
53 | %dir %{_includedir}/%{name}/plugins | |
54 | %{_includedir}/%{name}/CImg.h | |
55 | %{_includedir}/%{name}/plugins/*.h | |
e98355e6 | 56 | %{_examplesdir}/%{name}-%{version} |