From 7d33202d23368e028edd293731a67ab8392a419d Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sun, 27 May 2007 22:42:05 +0000 Subject: [PATCH] - new Changed files: corona.spec -> 1.1 --- corona.spec | 107 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 corona.spec diff --git a/corona.spec b/corona.spec new file mode 100644 index 0000000..06ba743 --- /dev/null +++ b/corona.spec @@ -0,0 +1,107 @@ +Summary: Image input/output library +Summary(pl.UTF-8): Biblioteka wejścia/wyjścia dla obrazów +Name: corona +Version: 1.0.2 +Release: 1 +License: zlib +Group: Libraries +Source0: http://dl.sourceforge.net/corona/%{name}-%{version}.tar.gz +# Source0-md5: 29d1a7f1e2c85a83e9620496c62740ce +Patch0: %{name}-system-gif.patch +Patch1: %{name}-config.patch +URL: http://corona.sourceforge.net/ +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: giflib-devel >= 4.1.0 +BuildRequires: libjpeg-devel +BuildRequires: libpng-devel +BuildRequires: libstdc++-devel +BuildRequires: libtool >= 2:1.5 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Corona is an image input/output library that can read, write, and +manipulate image files in just a few lines of code. It can write PNG +and TGA files, and read PNG, JPEG, PCX, BMP, TGA, and GIF. Corona was +designed to be easy to use, and exports a straightforward C++ API. +With just a few lines of C++, you can add image loading to your +application. + +%description -l pl.UTF-8 +Corona to biblioteka wejścia/wyjścia dla obrazów, potrafiąca czytać, +zapisywać i obrabiać pliki obrazów w zaledwie kilku liniach kodu. +Potrafi zapisywać pliki PNG i TGA, a czytać PNG, JPEG, PCX, BMP, TGA i +GIF. Została zaprojektowana jako łatwa w użyciu i eksportuje +bezpośrednie API C++. Za pomocą tylko kilku linii kodu C++ można dodać +wczytywanie obrazów do swojej aplikacji. + +%package devel +Summary: Header files for corona library +Summary(pl.UTF-8): Pliki nagłówkowe biblioteki corona +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: giflib-devel >= 4.1.0 +Requires: libjpeg-devel +Requires: libpng-devel +Requires: libstdc++-devel + +%description devel +Header files for corona library. + +%description devel -l pl.UTF-8 +Pliki nagłówkowe biblioteki corona. + +%package static +Summary: Static corona library +Summary(pl.UTF-8): Statyczna biblioteka corona +Group: Development/Libraries +Requires: %{name}-devel = %{version}-%{release} + +%description static +Static corona library. + +%description static -l pl.UTF-8 +Statyczna biblioteka corona. + +%prep +%setup -q +%patch0 -p1 +%patch1 -p1 + +%build +%{__libtoolize} +%{__aclocal} +%{__autoconf} +%{__automake} +%configure +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(644,root,root,755) +%doc doc/{changelog.txt,faq.txt,license.txt,literature.txt,readme.txt} +%attr(755,root,root) %{_bindir}/corconvert +%attr(755,root,root) %{_libdir}/libcorona-*.so + +%files devel +%defattr(644,root,root,755) +%doc doc/tutorial.txt +%attr(755,root,root) %{_bindir}/corona-config +%attr(755,root,root) %{_libdir}/libcorona.so +%{_libdir}/libcorona.la +%{_includedir}/corona.h + +%files static +%defattr(644,root,root,755) +%{_libdir}/libcorona.a -- 2.44.0