1 %include /usr/lib/rpm/macros.perl
2 Summary: HTML photo album generator
3 Summary(pl): Generator albumów foto
8 Group: Applications/Graphics
9 Source0: http://jsautret.free.fr/BINS/%{name}-%{version}.tar.bz2
10 Patch0: %{name}-localedir.patch
11 URL: http://bins.sautret.org/
13 BuildRequires: rpm-perlprov >= 3.0.3-18
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 %define _xbindir %{_prefix}/X11R6/bin/
18 %define _xmandir %{_prefix}/X11R6/man/
19 %define _localedir %{_datadir}/locale/
22 The aim of BINS is to generate static HTML photo albums.
25 BINS s³u¿y do generowania albumów photo w postaci statyczych stron
29 Summary: Editor GUI for BINS
30 Summary(pl): Interfejs u¿ytkownika do edycji albumów bins
31 Group: Applications/Graphics
32 Requires: %{name} = %{version}
35 GUI for editing BINS albums.
37 %description edit-gui -l pl
38 Interfejs u¿ytkownika do edycji albumów BINS.
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} \
49 $RPM_BUILD_ROOT{%{_xbindir},%{_xmandir}/man1} \
50 $RPM_BUILD_ROOT%{_datadir}/%{name}} \
51 $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/templates.default \
52 $RPM_BUILD_ROOT%{_localedir}/{fr,de,pl}/LC_MESSAGES
54 install bins bins_edit $RPM_BUILD_ROOT%{_bindir}
55 install bins-edit-gui $RPM_BUILD_ROOT%{_xbindir}
56 install binsrc $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
57 install templates/*.html $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/templates.default
58 install bins-edit-gui.glade $RPM_BUILD_ROOT%{_datadir}/%{name}
59 install doc/{bins,bins_edit}.1 $RPM_BUILD_ROOT%{_mandir}/man1
60 install doc/*gui*.1 $RPM_BUILD_ROOT%{_xmandir}/man1
62 for L in fr de pl ; do
63 install intl/$L.mo $RPM_BUILD_ROOT%{_localedir}/$L/LC_MESSAGES/%{name}.mo
64 if [ -f intl/gui-$L.mo ] ; then
65 install intl/gui-$L.mo $RPM_BUILD_ROOT%{_localedir}/$L/LC_MESSAGES/%{name}-edit-gui.mo
70 %find_lang %{name}-edit-gui
73 rm -rf $RPM_BUILD_ROOT
75 %files -f %{name}.lang
76 %defattr(644,root,root,755)
77 %doc CREDITS ChangeLog README TODO doc/*.html
78 %attr(755,root,root) %{_bindir}/*
80 %dir %{_sysconfdir}/%{name}
81 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/%{name}/binsrc
82 %dir %{_sysconfdir}/%{name}/templates.default
83 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/%{name}/templates.default/*
86 %files -f %{name}-edit-gui.lang edit-gui
87 %defattr(644,root,root,755)
88 %attr(755,root,root) %{_xbindir}/bins-edit-gui