]> git.pld-linux.org Git - packages/bluefish.git/blob - bluefish.spec
- cleaned up a bit: removed outdated destdir patch, added post/postun
[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
12 Release:        2
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 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 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41
42 %description
43 Bluefish is a GTK+ based HTML editor designed for the experienced web
44 designer.
45
46 %description -l pl
47 Bluefish jest opartym na GTK+ edytorem HTML-a, przeznaczonym dla
48 do¶wiadczonych projektantów stron WWW.
49
50 %description -l pt_BR
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.
55
56 %prep
57 %setup -q
58 %patch0 -p1
59 #%patch1 -p1
60 %patch2 -p1
61
62 mv -f po/{no,nb}.po
63 mv -f po/sr{,@Latn}.po
64
65 %build
66 %{__gettextize}
67 %{__libtoolize}
68 %{__aclocal}
69 %{__autoconf}
70 %configure \
71         --disable-update-databases \
72         %{?with_opts:--enable-auto-optimization}
73
74 %{__make}
75
76 %install
77 rm -rf $RPM_BUILD_ROOT
78 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}}
79
80 %{__make} install \
81         DESTDIR=$RPM_BUILD_ROOT
82
83 install -c inline_images/bluefish_icon1.png $RPM_BUILD_ROOT%{_pixmapsdir}/bluefish.png
84 rm -rf $RPM_BUILD_ROOT%{_datadir}/{application-registry,mime-info}
85
86 %find_lang %{name}
87
88 %clean
89 rm -rf $RPM_BUILD_ROOT
90
91 %post
92 %update_desktop_database_post
93
94 %postun
95 %update_desktop_database_postun
96
97 %files -f %{name}.lang
98 %defattr(644,root,root,755)
99 %doc AUTHORS README TODO
100 %attr(755,root,root) %{_bindir}/*
101 %{_datadir}/%{name}
102 %{_datadir}/mime/packages/*.xml
103 %{_desktopdir}/*
104 %{_pixmapsdir}/*
This page took 0.049996 seconds and 4 git commands to generate.