1 %include /usr/lib/rpm/macros.perl
2 Summary: HTML photo album generator
3 Summary(pl): Generator albumów fotograficznych w HTML
8 Group: Applications/Graphics
9 Source0: http://jsautret.free.fr/BINS/%{name}-%{version}.tar.bz2
10 Patch0: %{name}-localedir.patch
11 Patch1: %{name}-gladedir.patch
12 Patch2: %{name}-gui_locale.patch
13 URL: http://bins.sautret.org/
15 BuildRequires: rpm-perlprov >= 3.0.3-18
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define _xprefix /usr/X11R6
20 %define _xbindir %{_xprefix}/bin
21 %define _xmandir %{_xprefix}/man
22 %define _xdatadir %{_xprefix}/share
23 %define _localedir %{_datadir}/locale
26 The aim of BINS is to generate static HTML photo albums.
29 BINS s³u¿y do generowania albumów fotograficznych w postaci statyczych
33 Summary: Editor GUI for BINS
34 Summary(pl): Interfejs u¿ytkownika do edycji albumów BINS
35 Group: Applications/Graphics
36 Requires: %{name} = %{version}
39 GUI for editing BINS albums.
41 %description edit-gui -l pl
42 Graficzny interfejs u¿ytkownika do edycji albumów BINS.
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} \
53 $RPM_BUILD_ROOT{%{_xbindir},%{_xmandir}/man1} \
54 $RPM_BUILD_ROOT%{_xdatadir}/%{name} \
55 $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/templates.default \
56 $RPM_BUILD_ROOT%{_localedir}/{fr,de,pl}/LC_MESSAGES
58 install bins bins_edit $RPM_BUILD_ROOT%{_bindir}
59 install bins-edit-gui $RPM_BUILD_ROOT%{_xbindir}
60 install binsrc $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
61 install templates/*.html $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/templates.default
62 install bins-edit-gui.glade $RPM_BUILD_ROOT%{_xdatadir}/%{name}
63 install doc/{bins,bins_edit}.1 $RPM_BUILD_ROOT%{_mandir}/man1
64 install doc/*gui*.1 $RPM_BUILD_ROOT%{_xmandir}/man1
66 for L in fr de pl ; do
67 install intl/$L.mo $RPM_BUILD_ROOT%{_localedir}/$L/LC_MESSAGES/%{name}.mo
68 if [ -f intl/gui-$L.mo ] ; then
69 install intl/gui-$L.mo $RPM_BUILD_ROOT%{_localedir}/$L/LC_MESSAGES/%{name}-edit-gui.mo
74 %find_lang %{name}-edit-gui
77 rm -rf $RPM_BUILD_ROOT
79 %files -f %{name}.lang
80 %defattr(644,root,root,755)
81 %doc CREDITS ChangeLog README TODO doc/*.html
82 %attr(755,root,root) %{_bindir}/*
83 %dir %{_sysconfdir}/%{name}
84 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/%{name}/binsrc
85 %dir %{_sysconfdir}/%{name}/templates.default
86 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/%{name}/templates.default/*
89 %files edit-gui -f %{name}-edit-gui.lang
90 %defattr(644,root,root,755)
91 %attr(755,root,root) %{_xbindir}/bins-edit-gui