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