]> git.pld-linux.org Git - packages/bluefish.git/blob - bluefish.spec
8d4bf7d8b555eef538ee9a28f3f8f7a3a414cc26
[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):    Bluefish - Edytor HTML-a dla zaawansowanych
10 Name:           bluefish
11 Version:        1.0.1
12 Release:        1
13 License:        GPL
14 Group:          X11/Applications/Editors
15 # The master server is here
16 Source0:        http://pkedu.fbt.eitn.wau.nl/~olivier/downloads/%{name}-%{version}.tar.bz2
17 # Source0-md5:  a3cf8abd282d850407e8c7eed38d15e7
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 Patch3:         %{name}-po_install.patch
24 URL:            http://bluefish.openoffice.nl/
25 BuildRequires:  aspell-devel
26 BuildRequires:  autoconf
27 BuildRequires:  automake
28 BuildRequires:  gettext-devel
29 BuildRequires:  gnome-vfs2-devel >= 2.2
30 BuildRequires:  gtk+2-devel
31 BuildRequires:  libbonobo-devel >= 2.2
32 BuildRequires:  libjpeg-devel
33 BuildRequires:  libpng >= 1.2.5
34 BuildRequires:  libtiff-devel
35 BuildRequires:  libtool
36 BuildRequires:  libungif-devel
37 BuildRequires:  pcre-devel
38 BuildRequires:  pkgconfig
39 BuildRequires:  rpmbuild(macros) >= 1.197
40 Requires(post,postun):  desktop-file-utils
41 Requires(post,postun):  shared-mime-info
42 Requires:       gnome-icon-theme
43 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
45 %description
46 Bluefish is a GTK+ based HTML editor designed for the experienced web
47 designer.
48
49 %description -l pl
50 Bluefish jest opartym na GTK+ edytorem HTML-a, przeznaczonym dla
51 do¶wiadczonych projektantów stron WWW.
52
53 %description -l pt_BR
54 O bluefish é um editor HTML feito com GTK+ para web designers
55 experientes. Atualmente ele está em estágio alfa, mas já está bastante
56 usável. Algumas opções ainda não estão completamente finalizadas.
57 Bluefish é liberado sob a licença GPL.
58
59 %prep
60 %setup -q
61 %patch0 -p1
62 #%patch1 -p1
63 %patch2 -p1
64 %patch3 -p1
65
66 mv -f po/{no,nb}.po
67 mv -f po/sr{,@Latn}.po
68
69 %build
70 #%%{__gettextize}
71 %{__libtoolize}
72 %{__aclocal}
73 %{__autoconf}
74 %configure \
75         --disable-update-databases \
76         --without-gnome2_4-mime \
77         --without-gnome2_4-appreg \
78         %{?with_opts:--enable-auto-optimization}
79
80 %{__make}
81
82 %install
83 rm -rf $RPM_BUILD_ROOT
84 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}} \
85         $RPM_BUILD_ROOT%{_iconsdir}/gnome/48x48/mimetypes
86
87 %{__make} install \
88         DESTDIR=$RPM_BUILD_ROOT
89
90 rm -f $RPM_BUILD_ROOT%{_desktopdir}/bluefish-project.desktop
91 mv $RPM_BUILD_ROOT%{_pixmapsdir}/gnome-application-bluefish-project.png \
92         $RPM_BUILD_ROOT%{_iconsdir}/gnome/48x48/mimetypes
93
94 %find_lang %{name}
95
96 %clean
97 rm -rf $RPM_BUILD_ROOT
98
99 %post
100 umask 022
101 update-mime-database %{_datadir}/mime ||:
102 %update_desktop_database_post
103
104 %postun
105 %update_desktop_database_postun
106 if [ $1 = 0 ]; then
107     umask 022
108     update-mime-database %{_datadir}/mime
109 fi
110                 
111 %files -f %{name}.lang
112 %defattr(644,root,root,755)
113 %doc AUTHORS README TODO
114 %attr(755,root,root) %{_bindir}/*
115 %{_datadir}/%{name}
116 %{_datadir}/mime/packages/*.xml
117 %{_desktopdir}/*
118 %{_iconsdir}/gnome/48x48/mimetypes/*.png
119 %{_pixmapsdir}/*
This page took 0.310253 seconds and 3 git commands to generate.