3 %bcond_with python # enable python integration (HIGHLY EXPERIMENTAL)
5 Summary: Bluefish - HTML editor for the experienced web designer
6 Summary(pl.UTF-8): Bluefish - Edytor HTML-a dla zaawansowanych
11 Group: X11/Applications/Editors
12 # The master server is here
13 Source0: http://www.bennewitz.com/bluefish/stable/source/%{name}-%{version}.tar.bz2
14 # Source0-md5: ac9b1e8ef6d5691718a0daa6c78d5618
15 # but if you want ftp: try this one
16 # Source0: ftp://bluefish.advancecreations.com/bluefish/downloads/%{name}-%{version}.tar.bz2
17 Patch0: %{name}-desktop.patch
18 Patch1: %{name}-locales.patch
19 URL: http://bluefish.openoffice.nl/
20 BuildRequires: autoconf
21 BuildRequires: automake
22 BuildRequires: gettext-devel
23 BuildRequires: gtk+2-devel >= 2.14
24 BuildRequires: gucharmap-devel
25 BuildRequires: intltool
26 BuildRequires: libpng >= 1.2.5
27 BuildRequires: libtool
28 BuildRequires: libxml2-progs
30 BuildRequires: pcre-devel >= 3.0
31 BuildRequires: pkgconfig
32 BuildRequires: rpmbuild(macros) >= 1.311
33 Requires(post,postun): desktop-file-utils
34 Requires(post,postun): gtk+2
35 Requires(post,postun): hicolor-icon-theme
36 Requires(post,postun): shared-mime-info
37 Requires: gnome-vfs2 >= 2.2
38 # sr@Latn vs. sr@latin
39 Conflicts: glibc-misc < 6:2.7
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 Bluefish is a GTK+ based HTML editor designed for the experienced web
46 %description -l pl.UTF-8
47 Bluefish jest opartym na GTK+ edytorem HTML-a, przeznaczonym dla
48 doświadczonych projektantów stron WWW.
50 %description -l pt_BR.UTF-8
51 O bluefish é um editor HTML feito com GTK+ para web designers
52 experientes. Atualmente ele está em estágio alfa, mas já está bastante
53 usável. Algumas opções ainda não estão completamente finalizadas.
54 Bluefish é liberado sob a licença GPL.
62 mv -f po/sr{,@Latn}.po
63 mv -f src/plugin_about/po/sr{,@Latn}.po
64 mv -f src/plugin_charmap/po/sr{,@Latn}.po
65 mv -f src/plugin_entities/po/sr{,@Latn}.po
66 mv -f src/plugin_htmlbar/po/sr{,@Latn}.po
67 mv -f src/plugin_infbrowser/po/sr{,@Latn}.po
68 mv -f src/plugin_snippets/po/sr{,@Latn}.po
75 --disable-update-databases \
76 %{?with_python:--enable-python}
81 rm -rf $RPM_BUILD_ROOT
84 DESTDIR=$RPM_BUILD_ROOT
86 install -d doc/bflang/
87 mv data/bflang/sample.bflang2 doc/bflang/
88 rm -r $RPM_BUILD_ROOT%{_docdir}/bluefish/
90 %find_lang %{name} --all-name
93 rm -rf $RPM_BUILD_ROOT
97 %update_desktop_database_post
98 %update_icon_cache hicolor
101 %update_desktop_database_postun
102 %update_mime_database
103 %update_icon_cache hicolor
105 %files -f %{name}.lang
106 %defattr(644,root,root,755)
107 %doc AUTHORS README TODO doc/
108 %attr(755,root,root) %{_bindir}/bluefish
109 %dir %{_datadir}/%{name}
110 %{_datadir}/mime/packages/bluefish.xml
111 %{_datadir}/xml/bluefish
112 %{_datadir}/bluefish/bflang
113 %{_datadir}/bluefish/bflib
114 %{_datadir}/bluefish/bluefish_splash.png
115 %{_datadir}/bluefish/encodings
116 %{_mandir}/man1/bluefish.1*
117 %{_iconsdir}/hicolor/128x128/apps/bluefish.png
118 %{_iconsdir}/hicolor/128x128/mimetypes/application-x-bluefish-project.png
119 %{_iconsdir}/hicolor/16x16/apps/bluefish.png
120 %{_iconsdir}/hicolor/16x16/mimetypes/application-x-bluefish-project.png
121 %{_iconsdir}/hicolor/192x192/apps/bluefish.png
122 %{_iconsdir}/hicolor/192x192/mimetypes/application-x-bluefish-project.png
123 %{_iconsdir}/hicolor/22x22/apps/bluefish.png
124 %{_iconsdir}/hicolor/22x22/mimetypes/application-x-bluefish-project.png
125 %{_iconsdir}/hicolor/32x32/apps/bluefish.png
126 %{_iconsdir}/hicolor/32x32/mimetypes/application-x-bluefish-project.png
127 %{_iconsdir}/hicolor/36x36/apps/bluefish.png
128 %{_iconsdir}/hicolor/36x36/mimetypes/application-x-bluefish-project.png
129 %{_iconsdir}/hicolor/48x48/apps/bluefish.png
130 %{_iconsdir}/hicolor/48x48/mimetypes/application-x-bluefish-project.png
131 %{_iconsdir}/hicolor/64x64/apps/bluefish.png
132 %{_iconsdir}/hicolor/64x64/mimetypes/application-x-bluefish-project.png
133 %{_iconsdir}/hicolor/72x72/apps/bluefish.png
134 %{_iconsdir}/hicolor/72x72/mimetypes/application-x-bluefish-project.png
135 %{_iconsdir}/hicolor/96x96/apps/bluefish.png
136 %{_iconsdir}/hicolor/96x96/mimetypes/application-x-bluefish-project.png
137 %{_iconsdir}/hicolor/scalable/apps/bluefish-icon.svg
138 %{_iconsdir}/hicolor/scalable/mimetypes/bluefish-project.svg
139 %{_desktopdir}/bluefish.desktop
140 %{_pixmapsdir}/application-x-bluefish-project.png
141 %{_pixmapsdir}/bluefish.png
142 %dir %{_libdir}/bluefish
143 %attr(755,root,root) %{_libdir}/bluefish/*.so