[PATCH] bins
Michal Kochanowicz
michal w michal.waw.pl
Śro, 30 Cze 2004, 21:24:22 CEST
On Wed, Jun 30, 2004 at 08:07:50PM +0200, Michal Kochanowicz wrote:
> update bins do 1.1.26.
Po bliższym przyjrzeniu wyszło trochę niedoróbek:
- Nie wszystkie locale instalowane
- Nie wszystkie templaty instalowane
- Błędna lokalizacja templatów
- Nie wszystkie binarki instalowane.
Galeria mi się właśnie generuje, więc tym razem powinno być OK.
--
--= Michal Kochanowicz =--==--==BOFH==--==--= michal w michal.waw.pl =--
--= finger me for PGP public key or visit http://michal.waw.pl/PGP =--
--==--==--==--==--==-- Vodka. Connecting people.--==--==--==--==--==--
A chodzenie po górach SSIE!!!
-------------- następna część ---------
Index: bins-gladedir.patch
===================================================================
RCS file: /cvsroot/SOURCES/bins-gladedir.patch,v
retrieving revision 1.1
diff -u -r1.1 bins-gladedir.patch
--- bins-gladedir.patch 24 May 2002 12:01:22 -0000 1.1
+++ bins-gladedir.patch 30 Jun 2004 18:58:35 -0000
@@ -6,7 +6,7 @@
Gtk->init;
-$glade = "/usr/local/share/bins/bins-edit-gui.glade";
-+$glade = "/usr/X11R6/share/bins/bins-edit-gui.glade";
++$glade = "/usr/share/bins/bins-edit-gui.glade";
if (! -r $glade) {
$glade = "bins-edit-gui.glade" ; # developer hack
print "DEVELOPER HACK\n";
-------------- następna część ---------
Index: bins.spec
===================================================================
RCS file: /cvsroot/SPECS/bins.spec,v
retrieving revision 1.26
diff -u -r1.26 bins.spec
--- bins.spec 24 Feb 2004 01:11:54 -0000 1.26
+++ bins.spec 30 Jun 2004 19:12:59 -0000
@@ -6,14 +6,15 @@
Summary: HTML photo album generator
Summary(pl): Generator albumów fotograficznych w HTML-u
Name: bins
-Version: 1.1.24
+Version: 1.1.26
Release: 1
License: GPL
Group: Applications/Graphics
Source0: http://jsautret.free.fr/BINS/%{name}-%{version}.tar.bz2
-# Source0-md5: ade7641c266387fd30aa97de67ef4b4f
+# Source0-md5: b260838a854557781e23b43e64c06f6b
Patch0: %{name}-localedir.patch
Patch1: %{name}-gladedir.patch
+Patch2: %{name}-datadir.patch
URL: http://bins.sautret.org/
BuildRequires: rpm-perlprov >= 3.0.3-18
Requires: ImageMagick
@@ -43,32 +44,29 @@
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} \
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name} \
$RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} \
- $RPM_BUILD_ROOT%{_datadir}/%{name} \
- $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/templates.default \
- $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/templates.joi \
- $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/templates.joi/static \
- $RPM_BUILD_ROOT%{_datadir}/locale/{fr,de,pl}/LC_MESSAGES
+ $RPM_BUILD_ROOT%{_datadir}/%{name}
-install bins bins_edit $RPM_BUILD_ROOT%{_bindir}
+install anti_bins bins bins_edit $RPM_BUILD_ROOT%{_bindir}
install bins_cleanupgallery $RPM_BUILD_ROOT%{_bindir}
install bins-edit-gui $RPM_BUILD_ROOT%{_bindir}
install binsrc $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
-install templates/*.html $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/templates.default
-install templates.joi/*.html $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/templates.joi
-install templates.joi/static/* $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/templates.joi/static
+cp -r templates* $RPM_BUILD_ROOT%{_datadir}/%{name}
install bins-edit-gui.glade $RPM_BUILD_ROOT%{_datadir}/%{name}
install doc/{bins,bins_edit}.1 $RPM_BUILD_ROOT%{_mandir}/man1
install doc/*gui*.1 $RPM_BUILD_ROOT%{_mandir}/man1
-for L in fr de pl ; do
- install intl/$L.mo $RPM_BUILD_ROOT%{_datadir}/locale/$L/LC_MESSAGES/%{name}.mo
- if [ -f intl/gui-$L.mo ] ; then
- install intl/gui-$L.mo $RPM_BUILD_ROOT%{_datadir}/locale/$L/LC_MESSAGES/%{name}-edit-gui.mo
+for L in intl/??.mo ; do
+ LL=`basename $L .mo`
+ install -d $RPM_BUILD_ROOT%{_datadir}/locale/$LL/LC_MESSAGES
+ install intl/$LL.mo $RPM_BUILD_ROOT%{_datadir}/locale/$LL/LC_MESSAGES/%{name}.mo
+ if [ -f intl/gui-$LL.mo ] ; then
+ install intl/gui-$LL.mo $RPM_BUILD_ROOT%{_datadir}/locale/$LL/LC_MESSAGES/%{name}-edit-gui.mo
fi
done
@@ -84,12 +82,11 @@
%attr(755,root,root) %{_bindir}/bins
%attr(755,root,root) %{_bindir}/bins_edit
%attr(755,root,root) %{_bindir}/bins_cleanupgallery
+%attr(755,root,root) %{_bindir}/anti_bins
%dir %{_sysconfdir}/%{name}
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/%{name}/binsrc
-%dir %{_sysconfdir}/%{name}/templates.default
-%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/%{name}/templates.default/*
-%dir %{_sysconfdir}/%{name}/templates.joi
-%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/%{name}/templates.joi/*
+%dir %{_datadir}/%{name}
+%config(noreplace) %verify(not md5 size mtime) %{_datadir}/%{name}/templates*
%{_mandir}/man1/bins.1*
%{_mandir}/man1/bins_edit.1*
-------------- następna część ---------
diff -urN bins-1.1.26.orig/bins bins-1.1.26/bins
--- bins-1.1.26.orig/bins 2004-06-30 20:55:02.275705000 +0200
+++ bins-1.1.26/bins 2004-06-30 20:55:57.137365528 +0200
@@ -341,7 +341,7 @@
# The following parameters cannot be set in config files for now :
globalConfigDir => "/etc/bins", # System wide configuration directory
- globalDataDir => "/usr/local/share/bins", # System wide data directory
+ globalDataDir => "/usr/share/bins", # System wide data directory
userConfigDir => "~/.bins", # User configuration directory
configFileName => "binsrc", # Configuration file.
Więcej informacji o liście dyskusyjnej pld-devel-pl