]> git.pld-linux.org Git - packages/libcaca.git/commitdiff
- pl description
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 4 Jan 2004 20:59:16 +0000 (20:59 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added shared patch, use standard lib scheme
- use -fomit-frame-pointer only if not debug

Changed files:
    libcaca.spec -> 1.4

libcaca.spec

index efca488ad840fd18ab75f128f189511bc2b14e74..13cc9e934652bfe570ad45a4312be7597a7e9e6d 100644 (file)
@@ -7,36 +7,84 @@ License:      LGPL
 Group:         Libraries
 Source0:       http://sam.zoy.org/projects/libcaca/%{name}-%{version}.tar.bz2
 # Source0-md5: 0540e5c24aa6747c67805958185afe3b
+Patch0:                %{name}-shared.patch
 URL:           http://sam.zoy.org/projects/libcaca/
-#BuildRequires:        XFree86-devel
+BuildRequires: autoconf >= 2.50
+BuildRequires: automake
 BuildRequires: imlib2-devel
+BuildRequires: libtool
 BuildRequires: slang-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                specflags       -fomit-frame-pointer
+
 %description
 The libcaca library is a graphics library that outputs text instead of
 pixels, so that it can work on older video cards or text terminals. It
 is not unlike the famous AAlib library.
 
 The differences with AAlib are the following:
-
 - 16 available colours for character output (256 colour pairs)
 - dithering of colour images
 - basic sprite primitives
 
 But libcaca also has the following limitations:
-
 - no support for brightness, contrast, gamma
 - unefficient character-choosing algorithms
 - no raw keyboard support
 
+%description -l pl
+Biblioteka libcaca to biblioteka graficzna wy¶wietlaj±ca tekst zamiast
+pikseli, dziêki czemu mo¿e dzia³aæ na starszych kartach graficznych
+oraz terminalach tekstowych. Pod tym wzglêdem jest podobna do s³ynnej
+biblioteki AAlib.
+
+Ró¿nice w stosunku do AAlib s± nastêpuj±ce:
+- 16 dostêpnych kolorów dla znaków (256 par kolorów)
+- dithering kolorowych obrazów
+- proste kszta³ty duszków (sprites)
+
+Ale libcaca ma tak¿e nastêpuj±ce ograniczenia:
+- brak obs³ugi jasno¶ci, kontrakstu, korekcji gamma
+- ma³o wydajne algorytmy wyboru znaków
+- brak obs³ugi klawiatury w trybie surowym
+
+%package devel
+Summary:       Header files for libcaca library
+Summary(pl):   Pliki nag³ówkowe biblioteki libcaca
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+Requires:      slang-devel
+
+%description devel
+Header files for libcaca library.
+
+%description devel -l pl
+Pliki nag³ówkowe biblioteki libcaca.
+
+%package static
+Summary:       Static libcaca library
+Summary(pl):   Statyczna biblioteka libcaca
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static libcaca library.
+
+%description static -l pl
+Statyczna biblioteka libcaca.
+
 %prep
 %setup -q
+%patch0 -p1
 
 %build
-# TODO: fix configure, so it can find ncurses includes
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
 %configure \
-       --prefix=%{_prefix} \
        --disable-x11 \
        --disable-ncurses \
        --enable-slang
@@ -45,16 +93,39 @@ But libcaca also has the following limitations:
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$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 AUTHORS BUGS ChangeLog NEWS NOTES README TODO
-%attr(755,root,root) %{_bindir}/*
-%{_includedir}/*
-%{_libdir}/*
+%attr(755,root,root) %{_bindir}/caca-spritedit
+%attr(755,root,root) %{_bindir}/cacademo
+%attr(755,root,root) %{_bindir}/cacafire
+%attr(755,root,root) %{_bindir}/cacaview
+%attr(755,root,root) %{_libdir}/libcaca.so.*.*.*
 %{_datadir}/%{name}
-%{_mandir}/man1/*
+%{_mandir}/man1/caca-spritedit.1*
+%{_mandir}/man1/cacademo.1*
+%{_mandir}/man1/cacafire.1*
+%{_mandir}/man1/cacaview.1*
+
+%files devel
+%defattr(644,root,root,755)
+%doc doc/html/*
+%attr(755,root,root) %{_bindir}/caca-config
+%attr(755,root,root) %{_libdir}/libcaca.so
+%{_libdir}/libcaca.la
+%{_includedir}/*.h
+# man3 pages have too common base names to be included
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libcaca.a
This page took 0.87362 seconds and 4 git commands to generate.