]> git.pld-linux.org Git - packages/corona.git/blame - corona.spec
- release 8 (by relup.sh)
[packages/corona.git] / corona.spec
CommitLineData
7d33202d
JB
1Summary: Image input/output library
2Summary(pl.UTF-8): Biblioteka wejścia/wyjścia dla obrazów
3Name: corona
4Version: 1.0.2
7d5167be 5Release: 8
7d33202d
JB
6License: zlib
7Group: Libraries
8199924e 8Source0: http://downloads.sourceforge.net/corona/%{name}-%{version}.tar.gz
7d33202d
JB
9# Source0-md5: 29d1a7f1e2c85a83e9620496c62740ce
10Patch0: %{name}-system-gif.patch
11Patch1: %{name}-config.patch
040626c1 12Patch2: %{name}-gcc43.patch
b24de89e 13Patch3: %{name}-libpng15.patch
7d33202d
JB
14URL: http://corona.sourceforge.net/
15BuildRequires: autoconf
16BuildRequires: automake
3459428b 17BuildRequires: dos2unix
7d33202d
JB
18BuildRequires: giflib-devel >= 4.1.0
19BuildRequires: libjpeg-devel
20BuildRequires: libpng-devel
21BuildRequires: libstdc++-devel
22BuildRequires: libtool >= 2:1.5
2f3122f6 23BuildRequires: rpmbuild(macros) >= 1.565
7d33202d
JB
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
27Corona is an image input/output library that can read, write, and
28manipulate image files in just a few lines of code. It can write PNG
29and TGA files, and read PNG, JPEG, PCX, BMP, TGA, and GIF. Corona was
30designed to be easy to use, and exports a straightforward C++ API.
31With just a few lines of C++, you can add image loading to your
32application.
33
34%description -l pl.UTF-8
35Corona to biblioteka wejścia/wyjścia dla obrazów, potrafiąca czytać,
36zapisywać i obrabiać pliki obrazów w zaledwie kilku liniach kodu.
37Potrafi zapisywać pliki PNG i TGA, a czytać PNG, JPEG, PCX, BMP, TGA i
38GIF. Została zaprojektowana jako łatwa w użyciu i eksportuje
39bezpośrednie API C++. Za pomocą tylko kilku linii kodu C++ można dodać
40wczytywanie obrazów do swojej aplikacji.
41
42%package devel
43Summary: Header files for corona library
44Summary(pl.UTF-8): Pliki nagłówkowe biblioteki corona
45Group: Development/Libraries
46Requires: %{name} = %{version}-%{release}
47Requires: giflib-devel >= 4.1.0
48Requires: libjpeg-devel
49Requires: libpng-devel
50Requires: libstdc++-devel
51
52%description devel
53Header files for corona library.
54
55%description devel -l pl.UTF-8
56Pliki nagłówkowe biblioteki corona.
57
58%package static
59Summary: Static corona library
60Summary(pl.UTF-8): Statyczna biblioteka corona
61Group: Development/Libraries
62Requires: %{name}-devel = %{version}-%{release}
63
64%description static
65Static corona library.
66
67%description static -l pl.UTF-8
68Statyczna biblioteka corona.
69
70%prep
71%setup -q
2f3122f6 72%undos src/*.cpp src/*.h
7d33202d
JB
73%patch0 -p1
74%patch1 -p1
040626c1 75%patch2 -p1
b24de89e 76%patch3 -p1
7d33202d
JB
77
78%build
79%{__libtoolize}
80%{__aclocal}
81%{__autoconf}
82%{__automake}
83%configure
84%{__make}
85
86%install
87rm -rf $RPM_BUILD_ROOT
88
89%{__make} install \
90 DESTDIR=$RPM_BUILD_ROOT
91
92%clean
93rm -rf $RPM_BUILD_ROOT
94
95%post -p /sbin/ldconfig
96%postun -p /sbin/ldconfig
97
98%files
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
103
104%files devel
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
111
112%files static
113%defattr(644,root,root,755)
114%{_libdir}/libcorona.a
This page took 0.119029 seconds and 4 git commands to generate.