]> git.pld-linux.org Git - packages/bogl.git/blobdiff - bogl.spec
- restore changelog
[packages/bogl.git] / bogl.spec
index 38755fa94ed5665a2136c770b2f9f54b1cfc193c..506e4f6f5ae619fc9a73cd59dea9d9fe1b5a06a3 100644 (file)
--- a/bogl.spec
+++ b/bogl.spec
@@ -1,54 +1,85 @@
-Summary:       A terminal program for displaying Unicode on the console.
+# TODO
+# - optflags
+Summary:       A terminal program for displaying Unicode on the console
+Summary(pl):   Program terminalowy do wy¶wietlania Unikodu na konsoli
 Name:          bogl
 Version:       0.1.18
 Release:       1
+Epoch:         0
 License:       GPL
-Group:         System Environment/Libraries
+Group:         Libraries
 Source0:       %{name}_%{version}-1.tar.gz
 # Source0-md5: 9658700ed196eb1789c12aca0a095cb5
 Source1:       wlite-0.8.1.tar.gz
 # Source1-md5: 03a2faa33978e88ea2b9ff4679b8f2df
 Source2:       http://www.cl.cam.ac.uk/~mgk25/download/ucs-fonts.tar.gz
-# Source2-md5: 10f3f2839d686bc8490421ddb8c001b9
+# Source2-md5: cca6a3cb6cfbde5f3ebb24278a9022a4
 Source3:       http://www.cl.cam.ac.uk/~mgk25/download/ucs-fonts-asian.tar.gz
-# Source3-md5: cbad2d5e91bab16acf1a92f2814b3f1e
+# Source3-md5: d3184f182c6eebfcf156d08a65696496
 Source4:       14x14cjk.bdf.gz
 # Source4-md5: c08ab351a43a91632127f509aadc6797
-Patch0:                bogl-0.1.18-rh.patch
-Patch1:                bogl-0.1.9-fpic.patch
-Patch3:                bogl-0.1.9-2.6fbdev.patch
-Patch4:                bogl-0.1.18-gcc.patch
-Patch5:                bogl-0.1.18-noexecstack.patch
-URL:           http://www.msu.edu/user/pfaffben/projects.html
+Patch0:                %{name}-0.1.18-rh.patch
+Patch1:                %{name}-0.1.9-fpic.patch
+Patch3:                %{name}-0.1.9-2.6fbdev.patch
+Patch4:                %{name}-0.1.18-gcc.patch
+Patch5:                %{name}-0.1.18-noexecstack.patch
+URL:           http://www.stanford.edu/~blp/projects.html
 BuildRequires: gd-devel
 BuildRequires: libpng-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-BOGL stands for Ben's Own Graphics Library.  It is a small graphics
-library for Linux kernel frame buffers.  It supports only very simple
+BOGL stands for Ben's Own Graphics Library. It is a small graphics
+library for Linux kernel framebuffers. It supports only very simple
 graphics.
 
+%description -l pl
+BOGL oznacza Ben's Own Graphics Library (bibliotekê graficzn± Bena).
+Jest to ma³a biblioteka dla framebufferów j±dra Linuksa. Obs³uguje
+tylko bardzo prost± grafikê.
+
 %package devel
-Summary:       Development files required to build BOGL applications.
+Summary:       Development files required to build BOGL applications
+Summary(pl):   Pliki programistyczne potrzebne do budowania aplikacji BOGL
 Group:         Development/Libraries
-Requires:      bogl = %{epoch}:%{version}-%{release}
+Requires:      %{name} = %{epoch}:%{version}-%{release}
 
 %description devel
-The bogl-devel package contains the static libraries and header files
-for writing BOGL applications.
+The bogl-devel package contains the header files for writing BOGL
+applications.
+
+%description devel -l pl
+Ten pakiet zawiera pliki nag³ówkowe do pisania aplikacji BOGL.
+
+%package static
+Summary:       Static BOGL libraries
+Summary(pl):   Statyczne biblioteki BOGL
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{epoch}:%{version}-%{release}
+
+%description static
+Static BOGL libraries.
+
+%description static -l pl
+Statyczne biblioteki BOGL.
 
 %package bterm
-Summary:       A Unicode capable terminal program for the Linux frame buffer.
+Summary:       A Unicode capable terminal program for the Linux framebuffer
+Summary(pl):   Obs³uguj±cy Unikod program terminalowy dla linuksowego framebuffera
 Group:         Applications/System
-Requires:      bogl = %{epoch}:%{version}-%{release}
+Requires:      %{name} = %{epoch}:%{version}-%{release}
 
 %description bterm
 The bterm application is a terminal emulator that displays to a Linux
-frame buffer.  It is able to display Unicode text on the console.
+framebuffer. It is able to display Unicode text on the console.
+
+%description bterm -l pl
+Aplikacja bterm to emulator terminala wy¶wietlaj±cy obraz na
+linuksowym framebufferze. Potrafi wy¶wietlaæ tekst unikodowy na
+konsoli.
 
 %prep
-%setup -q -n bogl -a 1
+%setup -q -n %{name} -a 1
 %patch0 -p1
 %patch1 -p1
 %patch3 -p1
@@ -61,35 +92,42 @@ tar zxf %{SOURCE2}
 tar zxf %{SOURCE3}
 
 %build
-make CFLAGS="$RPM_OPT_FLAGS"
+%{__make} \
+       CFLAGS="%{rpmcflags}"
 #./mergebdf fonts/9x18.bdf fonts/18x18ja.bdf > font.bdf
 gunzip -c %{SOURCE4} > font.bdf
 ./bdftobogl -b font.bdf > font.bgf
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make DESTDIR=$RPM_BUILD_ROOT libdir=%{_libdir} install
-make -C wlite prefix=$RPM_BUILD_ROOT/%{_prefix} libdir=$RPM_BUILD_ROOT/%{_libdir} install
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT \
+       libdir=%{_libdir}
+
+%{__make} -C wlite install \
+       prefix=$RPM_BUILD_ROOT%{_prefix} \
+       libdir=$RPM_BUILD_ROOT%{_libdir}
+
 if [ -f wlite/libwlitediet.a ]; then
-    install -m 644 wlite/libwlitediet.a $RPM_BUILD_ROOT/%{_libdir}
+       install -m 644 wlite/libwlitediet.a $RPM_BUILD_ROOT%{_libdir}
 fi
-mkdir -p $RPM_BUILD_ROOT/usr/lib/bogl/
-cp font.bgf $RPM_BUILD_ROOT/usr/lib/bogl/
-cp font.bdf $RPM_BUILD_ROOT/usr/lib/bogl/
-gzip -9 $RPM_BUILD_ROOT/usr/lib/bogl/font.bdf
-gzip -9 $RPM_BUILD_ROOT/usr/lib/bogl/font.bgf
+install -d $RPM_BUILD_ROOT%{_libdir}/bogl
+install font.bgf $RPM_BUILD_ROOT%{_libdir}/bogl
+install font.bdf $RPM_BUILD_ROOT%{_libdir}/bogl
+gzip -9n $RPM_BUILD_ROOT%{_libdir}/bogl/font.bdf
+gzip -9n $RPM_BUILD_ROOT%{_libdir}/bogl/font.bgf
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post -p /sbin/ldconfig
-
-%postun -p /sbin/ldconfig
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
 
 %files
 %defattr(644,root,root,755)
 %doc README
-%{_libdir}/*.so.*
+%attr(755,root,root) %{_libdir}/libbogl.so.*.*
 
 %files devel
 %defattr(644,root,root,755)
@@ -97,17 +135,21 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/mergebdf
 %attr(755,root,root) %{_bindir}/pngtobogl
 %attr(755,root,root) %{_bindir}/reduce-font
-%{_libdir}/*.a
-%{_libdir}/*.so
+%attr(755,root,root) %{_libdir}/libbogl.so
+%{_libdir}/libbterm.a
+%{_libdir}/libwlite.a
 %{_includedir}/bogl
-%{_includedir}/wlite*
+%{_includedir}/wlite*.h
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libbogl.a
 
 %files bterm
 %defattr(644,root,root,755)
 %doc README.BOGL-bterm
 %attr(755,root,root) %{_bindir}/bterm
+# XXX: dir duplicated with terminfo package
 %dir %{_datadir}/terminfo/b
 %{_datadir}/terminfo/b/bterm
 %{_libdir}/bogl
-
-%changelog
This page took 0.117237 seconds and 4 git commands to generate.