]>
Commit | Line | Data |
---|---|---|
7855f545 | 1 | # TODO: |
2 | # - add desktop and png icon for bins-edit-gui. | |
3 | # | |
f23d592d | 4 | Summary: HTML photo album generator |
0fa4d94a | 5 | Summary(pl.UTF-8): Generator albumów fotograficznych w HTML-u |
f23d592d | 6 | Name: bins |
ff312f1f | 7 | Version: 1.1.29 |
5bc89a63 | 8 | Release: 1 |
f23d592d JK |
9 | License: GPL |
10 | Group: Applications/Graphics | |
5bc89a63 | 11 | Source0: http://zubro.chez.tiscali.fr/BINS/%{name}-%{version}.tar.bz2 |
ff312f1f | 12 | # Source0-md5: 3398d0ea3a97e49f5aaabb3b79da334a |
f23d592d | 13 | Patch0: %{name}-localedir.patch |
a9c57c34 | 14 | Patch1: %{name}-gladedir.patch |
391100a8 | 15 | Patch2: %{name}-datadir.patch |
4355ee8d | 16 | Patch3: %{name}-po.patch |
f23d592d | 17 | URL: http://bins.sautret.org/ |
3f77f1a7 | 18 | BuildRequires: gettext-tools |
4a768219 | 19 | BuildRequires: rpm-perlprov >= 3.0.3-18 |
899bae77 | 20 | Requires: ImageMagick |
d545a7ee | 21 | BuildArch: noarch |
f23d592d JK |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
f23d592d JK |
24 | %description |
25 | The aim of BINS is to generate static HTML photo albums. | |
26 | ||
605d8f59 JR |
27 | %description -l pl.UTF-8 |
28 | BINS służy do generowania albumów fotograficznych w postaci | |
649019ed | 29 | statycznych stron HTML. |
f23d592d JK |
30 | |
31 | %package edit-gui | |
32 | Summary: Editor GUI for BINS | |
0fa4d94a | 33 | Summary(pl.UTF-8): Interfejs użytkownika do edycji albumów BINS |
f23d592d | 34 | Group: Applications/Graphics |
600f513a | 35 | Requires: %{name} = %{version}-%{release} |
f23d592d JK |
36 | |
37 | %description edit-gui | |
38 | GUI for editing BINS albums. | |
39 | ||
605d8f59 JR |
40 | %description edit-gui -l pl.UTF-8 |
41 | Graficzny interfejs użytkownika do edycji albumów BINS. | |
f23d592d JK |
42 | |
43 | %prep | |
44 | %setup -q | |
45 | %patch0 -p1 | |
a9c57c34 | 46 | %patch1 -p1 |
391100a8 | 47 | %patch2 -p1 |
4355ee8d | 48 | %patch3 -p1 |
49 | ||
50 | # outdated | |
51 | rm -f intl/zh_TW.Big5.po | |
52 | rm -f intl/*.mo | |
4355ee8d | 53 | |
54 | %build | |
55 | cd intl | |
56 | for L in *.po ; do | |
57 | msgfmt -o `basename $L .po`.mo $L | |
58 | done | |
59 | cd - | |
f23d592d | 60 | |
f23d592d JK |
61 | %install |
62 | rm -rf $RPM_BUILD_ROOT | |
391100a8 | 63 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name} \ |
0d0f36ea | 64 | $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} \ |
65 | $RPM_BUILD_ROOT%{_datadir}/%{name} | |
f23d592d | 66 | |
ff312f1f JB |
67 | install bins bins_edit $RPM_BUILD_ROOT%{_bindir} |
68 | install tools/{anti_bins,bins_cleanupgallery,bins_addtext,bins_txt2xml} $RPM_BUILD_ROOT%{_bindir} | |
69 | install tools/add_num_prefix $RPM_BUILD_ROOT%{_bindir}/bins_add_num_prefix | |
70 | install tools/remove_num_prefix $RPM_BUILD_ROOT%{_bindir}/bins_remove_num_prefix | |
7855f545 | 71 | install bins-edit-gui $RPM_BUILD_ROOT%{_bindir} |
f23d592d | 72 | install binsrc $RPM_BUILD_ROOT%{_sysconfdir}/%{name} |
391100a8 | 73 | cp -r templates* $RPM_BUILD_ROOT%{_datadir}/%{name} |
7855f545 | 74 | install bins-edit-gui.glade $RPM_BUILD_ROOT%{_datadir}/%{name} |
f23d592d | 75 | install doc/{bins,bins_edit}.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
7855f545 | 76 | install doc/*gui*.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
f23d592d | 77 | |
4355ee8d | 78 | cd intl |
79 | for L in ??.mo ??_??.mo ; do | |
391100a8 | 80 | LL=`basename $L .mo` |
81 | install -d $RPM_BUILD_ROOT%{_datadir}/locale/$LL/LC_MESSAGES | |
4355ee8d | 82 | install $LL.mo $RPM_BUILD_ROOT%{_datadir}/locale/$LL/LC_MESSAGES/%{name}.mo |
83 | if [ -f gui-$LL.mo ] ; then | |
84 | install gui-$LL.mo $RPM_BUILD_ROOT%{_datadir}/locale/$LL/LC_MESSAGES/%{name}-edit-gui.mo | |
f23d592d JK |
85 | fi |
86 | done | |
4355ee8d | 87 | cd - |
f23d592d JK |
88 | |
89 | %find_lang %{name} | |
a7e2b8e7 | 90 | # The only file here is empty... |
91 | #%%find_lang %{name}-edit-gui | |
f23d592d JK |
92 | |
93 | %clean | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %files -f %{name}.lang | |
97 | %defattr(644,root,root,755) | |
98 | %doc CREDITS ChangeLog README TODO doc/*.html | |
4a768219 JB |
99 | %attr(755,root,root) %{_bindir}/bins |
100 | %attr(755,root,root) %{_bindir}/bins_edit | |
ff312f1f | 101 | %attr(755,root,root) %{_bindir}/bins_add_num_prefix |
391100a8 | 102 | %attr(755,root,root) %{_bindir}/anti_bins |
ff312f1f JB |
103 | %attr(755,root,root) %{_bindir}/bins_cleanupgallery |
104 | %attr(755,root,root) %{_bindir}/bins_addtext | |
105 | %attr(755,root,root) %{_bindir}/bins_txt2xml | |
106 | %attr(755,root,root) %{_bindir}/bins_remove_num_prefix | |
f23d592d | 107 | %dir %{_sysconfdir}/%{name} |
649019ed | 108 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/binsrc |
391100a8 | 109 | %dir %{_datadir}/%{name} |
649019ed | 110 | %config(noreplace) %verify(not md5 mtime size) %{_datadir}/%{name}/templates* |
4a768219 JB |
111 | %{_mandir}/man1/bins.1* |
112 | %{_mandir}/man1/bins_edit.1* | |
f23d592d | 113 | |
a41ec48f | 114 | #%files edit-gui -f %{name}-edit-gui.lang |
5d4bdc37 | 115 | %files edit-gui |
f23d592d | 116 | %defattr(644,root,root,755) |
7855f545 | 117 | %attr(755,root,root) %{_bindir}/bins-edit-gui |
600f513a | 118 | %{_datadir}/%{name}/bins-edit-gui.glade |
4a768219 | 119 | %{_mandir}/man1/bins-edit-gui.1* |