]> git.pld-linux.org Git - packages/bluefish.git/blob - bluefish.spec
af813669960b714f0efe9c2b22a6441a1f97e272
[packages/bluefish.git] / bluefish.spec
1 #
2 # Conditional build:
3 %bcond_with     opts    # use extra optimizations
4 #
5 # note: optflags used with this bcond are very strong, and partially
6 #       obsoleted for C (like -fno-rtti) - use at own risk!
7 #
8 Summary:        Bluefish - HTML editor for the experienced web designer
9 Summary(pl.UTF-8):      Bluefish - Edytor HTML-a dla zaawansowanych
10 Name:           bluefish
11 Version:        1.0.7
12 Release:        4
13 License:        GPL
14 Group:          X11/Applications/Editors
15 # The master server is here
16 Source0:        http://www.bennewitz.com/bluefish/stable/source/%{name}-%{version}.tar.bz2
17 # Source0-md5:  2c3b3c9c8f8e32b9473dfd879f216dea
18 # but if you want ftp: try this one
19 # Source0:      ftp://bluefish.advancecreations.com/bluefish/downloads/%{name}-%{version}.tar.bz2
20 Patch0:         %{name}-desktop.patch
21 Patch1:         %{name}-home_etc.patch
22 Patch2:         %{name}-locales.patch
23 URL:            http://bluefish.openoffice.nl/
24 BuildRequires:  aspell-devel
25 BuildRequires:  autoconf
26 BuildRequires:  automake
27 BuildRequires:  gettext-devel
28 BuildRequires:  giflib-devel
29 BuildRequires:  gnome-vfs2-devel >= 2.2
30 BuildRequires:  gtk+2-devel
31 BuildRequires:  home-etc-devel
32 BuildRequires:  libbonobo-devel >= 2.2
33 BuildRequires:  libjpeg-devel
34 BuildRequires:  libpng >= 1.2.5
35 BuildRequires:  libtiff-devel
36 BuildRequires:  pcre-devel
37 BuildRequires:  pkgconfig
38 BuildRequires:  rpmbuild(macros) >= 1.311
39 Requires(post,postun):  desktop-file-utils
40 Requires(post,postun):  gtk+2
41 Requires(post,postun):  hicolor-icon-theme
42 Requires(post,postun):  shared-mime-info
43 Requires:       gnome-vfs2 >= 2.2
44 # sr@Latn vs. sr@latin
45 Conflicts:      glibc-misc < 6:2.7
46 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
48 %description
49 Bluefish is a GTK+ based HTML editor designed for the experienced web
50 designer.
51
52 %description -l pl.UTF-8
53 Bluefish jest opartym na GTK+ edytorem HTML-a, przeznaczonym dla
54 doświadczonych projektantów stron WWW.
55
56 %description -l pt_BR.UTF-8
57 O bluefish é um editor HTML feito com GTK+ para web designers
58 experientes. Atualmente ele está em estágio alfa, mas já está bastante
59 usável. Algumas opções ainda não estão completamente finalizadas.
60 Bluefish é liberado sob a licença GPL.
61
62 %prep
63 %setup -q
64 %patch0 -p1
65 %patch1 -p1
66 %patch2 -p1
67
68 mv -f po/{no,nb}.po
69 mv -f po/sr{,@Latn}.po
70
71 %build
72 %{__aclocal}
73 %{__autoconf}
74 %configure \
75         --disable-update-databases \
76         --with-freedesktop_org-mime=/usr/share/mime \
77         --without-gnome2_4-mime \
78         --without-gnome2_4-appreg \
79         %{?with_opts:--enable-auto-optimization}
80
81 %{__make}
82
83 %install
84 rm -rf $RPM_BUILD_ROOT
85 install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/mimetypes
86
87 %{__make} install \
88         DESTDIR=$RPM_BUILD_ROOT
89
90 mv -f $RPM_BUILD_ROOT%{_pixmapsdir}/gnome-mime-application-bluefish-project.png \
91     $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/mimetypes/gnome-mime-application-bluefish-project.png
92 rm -f $RPM_BUILD_ROOT%{_desktopdir}/bluefish-project.desktop
93
94 [ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \
95         mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin}
96 %find_lang %{name}
97
98 %clean
99 rm -rf $RPM_BUILD_ROOT
100
101 %post
102 %update_mime_database
103 %update_desktop_database_post
104 %update_icon_cache hicolor
105
106 %postun
107 %update_desktop_database_postun
108 %update_mime_database
109 %update_icon_cache hicolor
110
111 %files -f %{name}.lang
112 %defattr(644,root,root,755)
113 %doc AUTHORS README TODO
114 %attr(755,root,root) %{_bindir}/bluefish
115 %{_datadir}/%{name}
116 %{_datadir}/mime/packages/bluefish.xml
117 %{_mandir}/man1/bluefish.1*
118 %{_iconsdir}/hicolor/48x48/mimetypes/gnome-mime-application-bluefish-project.png
119 %{_desktopdir}/bluefish.desktop
120 %{_pixmapsdir}/bluefish-icon.png
This page took 0.042908 seconds and 3 git commands to generate.