Uaktualniłem sobie klavaro i działa, ale nie wiem, co zrobić z
niespakietowanymi plikami z wymaganego przez powyższy gtkdatabox. Zechciałby
ktoś zerknąć i poprawić?
pozdrawiam
Kuba
(null)
--- klavaro.spec.old 2009-12-15 21:09:34.565853873 +0000
+++ klavaro.spec 2009-12-16 21:24:40.462476225 +0000
@@ -1,25 +1,20 @@
# $Revision: 1.8 $, $Date: 2007/03/26 20:30:36 $
-# TODO:
-# - does not build:
-# mv: cannot stat `/home/users/darekr/tmp/klavaro-0.9.9-root-darekr/usr/share/locale/cs_CZ':
-# No such file or directory
-# - updated to 1.0.2
Summary: Touch typing tutor program
Summary(pl.UTF-8): Program do nauki pisania bezwzrokowego na klawiaturze
Name: klavaro
-Version: 0.9.9
+Version: 1.4.0
Release: 1
License: GPL v2
Group: Applications/Text
-Source0: http://dl.sourceforge.net/klavaro/%{name}-%{version}.tar.gz
-# Source0-md5: 2f8b79dbe3e94dcca8646576afeb2325
+Source0: http://dl.sourceforge.net/klavaro/%{name}-%{version}.tar.bz2
+# Source0-md5: a568aecd05f8eeb8a40c95fcf6de43d0
Source1: %{name}.desktop
Source2: %{name}.png
-Patch0: %{name}-lc_numeric.patch
URL: http://klavaro.sourceforge.net/en/
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gtk+2-devel >= 2:2.6.2
+BuildRequires: gtkdatabox-devel
BuildRequires: pkgconfig
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -33,10 +28,9 @@
%prep
%setup -q
-%patch0 -p1
%build
-%{__aclocal} -I m4
+%{__aclocal}
%{__autoconf}
%{__autoheader}
%{__automake}
@@ -53,17 +47,19 @@
install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
-mv $RPM_BUILD_ROOT%{_datadir}/locale/{cs_CZ,cs}
-mv $RPM_BUILD_ROOT%{_datadir}/locale/{de_DE,de}
-mv $RPM_BUILD_ROOT%{_datadir}/locale/{eo_EO,eo}
-mv $RPM_BUILD_ROOT%{_datadir}/locale/{fr_FR,fr}
-mv $RPM_BUILD_ROOT%{_datadir}/locale/{hu_HU,hu}
-mv $RPM_BUILD_ROOT%{_datadir}/locale/{sv_SE,sv}
%find_lang %{name} --with-gnome --all-name
%clean
rm -rf $RPM_BUILD_ROOT
+
+%post
+%update_icon_cache hicolor
+
+%postun
+%update_icon_cache hicolor
+
+
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README
@@ -72,6 +68,7 @@
%{_mandir}/man1/*
%{_desktopdir}/%{name}.desktop
%{_pixmapsdir}/%{name}.png
+%{_iconsdir}/hicolor/*/*/*
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
# $Revision:$, $Date:$
Summary: GtkDatabox - a GTK+ widget for fast data display
Summary(pl.UTF-8): GtkDatabox - widget dla GTK+ do szybkiego wyÅwietlania
danych
Name: gtkdatabox
Version: 0.9.1.1
Release: 1
License: LGPL
Group: Libraries
Source0: http://dl.sourceforge.net/gtkdatabox/%{name}-%{version}.tar.gz
# Source0-md5: 910921da2198ebd02ea8a7eb622916ce
URL: http://www.eudoxos.de/gtk/gtkdatabox/
BuildRequires: cairo-devel >= 1.4.0
BuildRequires: gtk+2-devel >= 1:2.8.0
BuildRequires: pkgconfig
Requires: cairo >= 1.4.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
GtkDatabox is a widget for the Gtk+-library designed to display large
amounts of numerical data fast and easy.
%description -l pl.UTF-8
GtkDatabox jest widgetem dla biblioteki Gtk+ zaprojektowanym do
wyÅwietlania dużych iloÅci danych numerycznych prosto i szybko.
%package devel
Summary: Header files for GtkDatabox library
Summary(pl.UTF-8): Pliki nagÅówkowe biblioteki GtDatabox
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: cairo-devel >= 1.4.0
Requires: gtk+2-devel >= 2.8.0
%description devel
Header files for GtkDatabox library.
%description devel -l pl.UTF-8
Pliki nagÅówkowe biblioteki GtkDatabox.
%package static
Summary: Static GtkDatabox library
Summary(pl.UTF-8): Statyczna biblioteka GtkDatabox
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description static
Static GtkDatabox library.
%description static -l pl.UTF-8
Statyczna biblioteka GtkDatabox.
%prep
%setup -q
%build
%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 AUTHORS ChangeLog README
%attr(755,root,root) %{_libdir}/lib*.so.*
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/lib*.so
%{_libdir}/lib*.la
%{_includedir}/gtkdatabox*.h
%{_pkgconfigdir}/gtkdatabox.pc
%files static
%defattr(644,root,root,755)
%{_libdir}/lib*.a
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <[email protected]>
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log:$
_______________________________________________
pld-devel-pl mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-devel-pl