1 Summary: Image input/output library
2 Summary(pl.UTF-8): Biblioteka wejścia/wyjścia dla obrazów
8 Source0: http://downloads.sourceforge.net/corona/%{name}-%{version}.tar.gz
9 # Source0-md5: 29d1a7f1e2c85a83e9620496c62740ce
10 Patch0: %{name}-system-gif.patch
11 Patch1: %{name}-config.patch
12 Patch2: %{name}-gcc43.patch
13 Patch3: %{name}-libpng15.patch
14 URL: http://corona.sourceforge.net/
15 BuildRequires: autoconf
16 BuildRequires: automake
17 BuildRequires: dos2unix
18 BuildRequires: giflib-devel >= 4.1.0
19 BuildRequires: libjpeg-devel
20 BuildRequires: libpng-devel
21 BuildRequires: libstdc++-devel
22 BuildRequires: libtool >= 2:1.5
23 BuildRequires: rpmbuild(macros) >= 1.565
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Corona is an image input/output library that can read, write, and
28 manipulate image files in just a few lines of code. It can write PNG
29 and TGA files, and read PNG, JPEG, PCX, BMP, TGA, and GIF. Corona was
30 designed to be easy to use, and exports a straightforward C++ API.
31 With just a few lines of C++, you can add image loading to your
34 %description -l pl.UTF-8
35 Corona to biblioteka wejścia/wyjścia dla obrazów, potrafiąca czytać,
36 zapisywać i obrabiać pliki obrazów w zaledwie kilku liniach kodu.
37 Potrafi zapisywać pliki PNG i TGA, a czytać PNG, JPEG, PCX, BMP, TGA i
38 GIF. Została zaprojektowana jako łatwa w użyciu i eksportuje
39 bezpośrednie API C++. Za pomocą tylko kilku linii kodu C++ można dodać
40 wczytywanie obrazów do swojej aplikacji.
43 Summary: Header files for corona library
44 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki corona
45 Group: Development/Libraries
46 Requires: %{name} = %{version}-%{release}
47 Requires: giflib-devel >= 4.1.0
48 Requires: libjpeg-devel
49 Requires: libpng-devel
50 Requires: libstdc++-devel
53 Header files for corona library.
55 %description devel -l pl.UTF-8
56 Pliki nagłówkowe biblioteki corona.
59 Summary: Static corona library
60 Summary(pl.UTF-8): Statyczna biblioteka corona
61 Group: Development/Libraries
62 Requires: %{name}-devel = %{version}-%{release}
65 Static corona library.
67 %description static -l pl.UTF-8
68 Statyczna biblioteka corona.
72 %undos src/*.cpp src/*.h
87 rm -rf $RPM_BUILD_ROOT
90 DESTDIR=$RPM_BUILD_ROOT
93 rm -rf $RPM_BUILD_ROOT
95 %post -p /sbin/ldconfig
96 %postun -p /sbin/ldconfig
99 %defattr(644,root,root,755)
100 %doc doc/{changelog.txt,faq.txt,license.txt,literature.txt,readme.txt}
101 %attr(755,root,root) %{_bindir}/corconvert
102 %attr(755,root,root) %{_libdir}/libcorona-*.so
105 %defattr(644,root,root,755)
106 %doc doc/tutorial.txt
107 %attr(755,root,root) %{_bindir}/corona-config
108 %attr(755,root,root) %{_libdir}/libcorona.so
109 %{_libdir}/libcorona.la
110 %{_includedir}/corona.h
113 %defattr(644,root,root,755)
114 %{_libdir}/libcorona.a