]>
Commit | Line | Data |
---|---|---|
44bbdb3d | 1 | # |
07b54fcc | 2 | # TODO: |
3 | # - separate subpackages for plugins | |
4 | # - package locales for plugins | |
5 | # | |
44bbdb3d | 6 | # Conditional build: |
6c2e2335 | 7 | %bcond_with python # enable python integration (HIGHLY EXPERIMENTAL) |
44bbdb3d | 8 | # |
66f146dd | 9 | Summary: Bluefish - HTML editor for the experienced web designer |
a9d13e49 | 10 | Summary(pl.UTF-8): Bluefish - Edytor HTML-a dla zaawansowanych |
66f146dd | 11 | Name: bluefish |
97f8e5fc | 12 | Version: 2.2.0 |
d28c6cc5 | 13 | Release: 1 |
07b54fcc | 14 | License: GPL v3+ |
66f146dd | 15 | Group: X11/Applications/Editors |
ff5390f4 | 16 | # The master server is here |
c4938fc8 | 17 | Source0: http://www.bennewitz.com/bluefish/stable/source/%{name}-%{version}.tar.bz2 |
97f8e5fc | 18 | # Source0-md5: 23d894e065585d35dbc74c246c15cc9d |
ff5390f4 | 19 | # but if you want ftp: try this one |
20 | # Source0: ftp://bluefish.advancecreations.com/bluefish/downloads/%{name}-%{version}.tar.bz2 | |
8e6d4a5d | 21 | Patch0: %{name}-locales.patch |
faff6fd6 | 22 | URL: http://bluefish.openoffice.nl/ |
974c773f ŁK |
23 | BuildRequires: autoconf >= 2.59 |
24 | BuildRequires: automake >= 1.8 | |
2ac41583 | 25 | BuildRequires: enchant-devel >= 1.4 |
357f2ee2 | 26 | BuildRequires: gettext-devel |
974c773f | 27 | BuildRequires: glib2-devel >= 2.16 |
d2b71259 | 28 | BuildRequires: gtk+2-devel >= 2.14 |
97f8e5fc | 29 | BuildRequires: gucharmap-devel >= 2.20 |
d2b71259 | 30 | BuildRequires: intltool |
e17c2ffc | 31 | BuildRequires: libpng >= 1.2.5 |
d2b71259 | 32 | BuildRequires: libtool |
33 | BuildRequires: libxml2-progs | |
34 | BuildRequires: man | |
4e0e8de3 | 35 | BuildRequires: pkgconfig |
d7696316 | 36 | BuildRequires: rpmbuild(macros) >= 1.311 |
c7335370 | 37 | Requires(post,postun): desktop-file-utils |
cd60ef48 | 38 | Requires(post,postun): gtk-update-icon-cache |
d7696316 | 39 | Requires(post,postun): hicolor-icon-theme |
30a92923 | 40 | Requires(post,postun): shared-mime-info |
0c367979 | 41 | Requires: gnome-vfs2 >= 2.2 |
9d9d293f | 42 | # sr@Latn vs. sr@latin |
43 | Conflicts: glibc-misc < 6:2.7 | |
46e12e23 | 44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
66f146dd | 45 | |
66f146dd | 46 | %description |
238e0715 | 47 | Bluefish is a GTK+ based HTML editor designed for the experienced web |
48 | designer. | |
66f146dd | 49 | |
61a76009 | 50 | %description -l pl.UTF-8 |
f0d4d6a4 | 51 | Bluefish jest opartym na GTK+ edytorem HTML-a, przeznaczonym dla |
61a76009 | 52 | doświadczonych projektantów stron WWW. |
66f146dd | 53 | |
61a76009 JR |
54 | %description -l pt_BR.UTF-8 |
55 | O bluefish é um editor HTML feito com GTK+ para web designers | |
56 | experientes. Atualmente ele está em estágio alfa, mas já está bastante | |
57 | usável. Algumas opções ainda não estão completamente finalizadas. | |
58 | Bluefish é liberado sob a licença GPL. | |
aacf0def | 59 | |
f53be2ae | 60 | %prep |
66f146dd | 61 | %setup -q |
8e6d4a5d | 62 | %patch0 -p1 |
5758e991 | 63 | |
5758e991 | 64 | mv -f po/sr{,@Latn}.po |
d2b71259 | 65 | mv -f src/plugin_about/po/sr{,@Latn}.po |
66 | mv -f src/plugin_charmap/po/sr{,@Latn}.po | |
67 | mv -f src/plugin_entities/po/sr{,@Latn}.po | |
68 | mv -f src/plugin_htmlbar/po/sr{,@Latn}.po | |
69 | mv -f src/plugin_infbrowser/po/sr{,@Latn}.po | |
6c2e2335 | 70 | mv -f src/plugin_snippets/po/sr{,@Latn}.po |
66f146dd | 71 | |
97f8e5fc | 72 | for plugin in `ls -d src/plugin_*`; do |
73 | cp %{_datadir}/gettext/po/Makefile.in.in $plugin/po | |
74 | done | |
75 | ||
6c2e2335 | 76 | %{__libtoolize} |
2ac41583 | 77 | %{__intltoolize} |
d043e65d | 78 | %{__aclocal} |
336afe11 | 79 | %{__autoconf} |
b58c1237 | 80 | %configure \ |
d1f75112 | 81 | --disable-update-databases \ |
6c2e2335 | 82 | %{?with_python:--enable-python} |
ec0ca1cf | 83 | |
ec927157 | 84 | %{__make} |
66f146dd | 85 | |
86 | %install | |
87 | rm -rf $RPM_BUILD_ROOT | |
e17c2ffc | 88 | |
4e0e8de3 | 89 | %{__make} install \ |
90 | DESTDIR=$RPM_BUILD_ROOT | |
4ec8df59 | 91 | |
d2b71259 | 92 | install -d doc/bflang/ |
2584fc8e | 93 | mv data/bflang/sample.bflang2 doc/bflang/ |
07b54fcc | 94 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/bluefish/ |
95 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/bluefish/*.la | |
44bbdb3d | 96 | |
6c2e2335 | 97 | %find_lang %{name} --all-name |
238e0715 | 98 | |
66f146dd | 99 | %clean |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
c7335370 | 102 | %post |
d7696316 | 103 | %update_mime_database |
c7335370 | 104 | %update_desktop_database_post |
d7696316 | 105 | %update_icon_cache hicolor |
c7335370 | 106 | |
107 | %postun | |
108 | %update_desktop_database_postun | |
d7696316 MB |
109 | %update_mime_database |
110 | %update_icon_cache hicolor | |
30a92923 | 111 | |
238e0715 | 112 | %files -f %{name}.lang |
66f146dd | 113 | %defattr(644,root,root,755) |
2584fc8e | 114 | %doc AUTHORS README TODO doc/ |
d7696316 | 115 | %attr(755,root,root) %{_bindir}/bluefish |
6c2e2335 | 116 | %dir %{_datadir}/%{name} |
d7696316 | 117 | %{_datadir}/mime/packages/bluefish.xml |
12e8b827 | 118 | %{_datadir}/xml/bluefish |
d7fc5fdd | 119 | %{_datadir}/bluefish/bflang |
120 | %{_datadir}/bluefish/bflib | |
2584fc8e JW |
121 | %{_datadir}/bluefish/bluefish_splash.png |
122 | %{_datadir}/bluefish/encodings | |
2ac41583 | 123 | %{_datadir}/bluefish/snippets |
07b54fcc | 124 | %{_datadir}/bluefish/ui |
d7696316 | 125 | %{_mandir}/man1/bluefish.1* |
6c2e2335 JW |
126 | %{_iconsdir}/hicolor/128x128/apps/bluefish.png |
127 | %{_iconsdir}/hicolor/128x128/mimetypes/application-x-bluefish-project.png | |
128 | %{_iconsdir}/hicolor/16x16/apps/bluefish.png | |
129 | %{_iconsdir}/hicolor/16x16/mimetypes/application-x-bluefish-project.png | |
130 | %{_iconsdir}/hicolor/192x192/apps/bluefish.png | |
131 | %{_iconsdir}/hicolor/192x192/mimetypes/application-x-bluefish-project.png | |
132 | %{_iconsdir}/hicolor/22x22/apps/bluefish.png | |
133 | %{_iconsdir}/hicolor/22x22/mimetypes/application-x-bluefish-project.png | |
134 | %{_iconsdir}/hicolor/32x32/apps/bluefish.png | |
135 | %{_iconsdir}/hicolor/32x32/mimetypes/application-x-bluefish-project.png | |
136 | %{_iconsdir}/hicolor/36x36/apps/bluefish.png | |
137 | %{_iconsdir}/hicolor/36x36/mimetypes/application-x-bluefish-project.png | |
138 | %{_iconsdir}/hicolor/48x48/apps/bluefish.png | |
139 | %{_iconsdir}/hicolor/48x48/mimetypes/application-x-bluefish-project.png | |
140 | %{_iconsdir}/hicolor/64x64/apps/bluefish.png | |
141 | %{_iconsdir}/hicolor/64x64/mimetypes/application-x-bluefish-project.png | |
142 | %{_iconsdir}/hicolor/72x72/apps/bluefish.png | |
143 | %{_iconsdir}/hicolor/72x72/mimetypes/application-x-bluefish-project.png | |
144 | %{_iconsdir}/hicolor/96x96/apps/bluefish.png | |
145 | %{_iconsdir}/hicolor/96x96/mimetypes/application-x-bluefish-project.png | |
146 | %{_iconsdir}/hicolor/scalable/apps/bluefish-icon.svg | |
147 | %{_iconsdir}/hicolor/scalable/mimetypes/bluefish-project.svg | |
d7696316 | 148 | %{_desktopdir}/bluefish.desktop |
6c2e2335 JW |
149 | %{_pixmapsdir}/application-x-bluefish-project.png |
150 | %{_pixmapsdir}/bluefish.png | |
151 | %dir %{_libdir}/bluefish | |
152 | %attr(755,root,root) %{_libdir}/bluefish/*.so |