3 %bcond_with gtk3 # GTK+ 3.x instead of 2.x [seems an early adoption]
5 Summary: Gobby network editor
6 Summary(pl.UTF-8): Edytor sieciowy Gobby
11 Group: X11/Applications/Editors
12 Source0: http://releases.0x539.de/gobby/%{name}-%{version}.tar.gz
13 # Source0-md5: 80b30bb4205b623f8e065150cbfb21e6
14 URL: http://gobby.0x539.de/
15 BuildRequires: autoconf >= 2.59
16 BuildRequires: automake >= 1:1.9
17 BuildRequires: gettext-tools
18 BuildRequires: glibmm-devel >= 2.18.0
19 BuildRequires: gnome-doc-utils >= 0.9.0
20 BuildRequires: gsasl-devel >= 0.2.21
21 %{!?with_gtk3:BuildRequires: gtkmm-devel >= 2.6.0}
22 %{?with_gtk3:BuildRequires: gtkmm3-devel >= 3.0}
23 %{!?with_gtk3:BuildRequires: gtksourceview2-devel >= 2.4}
24 %{?with_gtk3:BuildRequires: gtksourceview3-devel >= 3.0}
25 BuildRequires: intltool >= 0.35.0
26 BuildRequires: libinfinity-devel >= 0.6
27 %{!?with_gtk3:BuildRequires: libinfinity-gtk-devel >= 0.6}
28 %{?with_gtk3:BuildRequires: libinfinity-gtk3-devel >= 0.6}
29 %{!?with_gtk3:BuildRequires: libunique-devel >= 1.1.2}
30 %{?with_gtk3:BuildRequires: libunique3-devel >= 3}
31 BuildRequires: libstdc++-devel
32 BuildRequires: libxml++-devel >= 2.6.0
33 BuildRequires: pkgconfig
34 BuildRequires: rpmbuild(macros) >= 1.596
35 Requires(post,postun): gtk-update-icon-cache
36 Requires: hicolor-icon-theme
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 %description -l pl.UTF-8
43 Edytor sieciowy Gobby.
53 %{?with_gtk3:--with-gtk3}
57 rm -rf $RPM_BUILD_ROOT
60 DESTDIR=$RPM_BUILD_ROOT
62 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{el_GR,el}
64 # gobby05.mo, gnome/help/gobby
65 %find_lang %{name} --all-name --with-gnome --with-omf
68 rm -rf $RPM_BUILD_ROOT
71 %update_icon_cache hicolor
74 %update_icon_cache hicolor
76 %files -f %{name}.lang
77 %defattr(644,root,root,755)
78 %doc AUTHORS COPYING ChangeLog NEWS TODO
79 %attr(755,root,root) %{_bindir}/gobby-0.5
81 %{_datadir}/appdata/gobby-0.5.appdata.xml
82 %{_mandir}/man1/gobby-0.5.1*
83 %{_desktopdir}/gobby-0.5.desktop
84 %{_iconsdir}/hicolor/48x48/apps/gobby-0.5.png
85 %{_iconsdir}/hicolor/scalable/apps/gobby-0.5.svg
87 #%{_iconsdir}/HighContrastLargePrint/48x48/apps/gobby-0.5.png
88 #%{_iconsdir}/HighContrastLargePrint/scalable/apps/gobby-0.5.svg
89 #%{_iconsdir}/HighContrastLargePrintInverse/48x48/apps/gobby-0.5.png
90 #%{_iconsdir}/HighContrastLargePrintInverse/scalable/apps/gobby-0.5.svg