Blob Blame History Raw
Name:           gobby05
Version:        0.5.0
Release:        4%{?dist}
Summary:        Collaborative editor supporting multiple documents

License:        GPLv2+
URL:            https://github.com/gobby/gobby/wiki
Source0:        http://releases.0x539.de/gobby/gobby-%{version}.tar.gz
Patch0:         gobby-0.5.0-ca-certificates.patch

BuildRequires:  gtkmm30-devel
BuildRequires:  gtksourceview3-devel
BuildRequires:  libinfinity-gtk-devel
BuildRequires:  libxml++-devel
BuildRequires:  intltool
# For desktop-file-install
BuildRequires: desktop-file-utils
# For gnome docs at /usr/share/gnome/help
BuildRequires:  gnome-doc-utils
# For /usr/bin/scrollkeeper-config (otherwise it failed on F20/Rawhide)
BuildRequires:  rarian-compat

Requires: ca-certificates

%description
Gobby is a free collaborative editor supporting multiple documents in one
session and a multi-user chat. It runs on Microsoft Windows, Mac OS X, Linux
and other Unix-like platforms.

%prep
%setup -q -n gobby-%{version}
%patch0 -p1 -b .ca-certs
# FIXME: Verify whether the executable flag is still there after the next upstream release
# The executable flag makes rpmlint unhappy
chmod a-x code/main.cpp


%build
%configure --with-gtk3
make %{?_smp_mflags}


%install
%make_install
%find_lang gobby05


%check
desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/gobby-0.5.desktop


%post
# Because of the MimeType key in the .desktop file
/usr/bin/update-desktop-database &> /dev/null || :
# Because Icons are installed
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :


%postun
/usr/bin/update-desktop-database &> /dev/null || :
if [ $1 -eq 0 ] ; then
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
    /usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
fi


%posttrans
/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :


%files -f gobby05.lang
# FIXME: Check whether a README is added again later
%doc AUTHORS ChangeLog COPYING NEWS TODO
%{_bindir}/gobby-0.5
%{_datadir}/applications/gobby-0.5.desktop
%dir %{_datadir}/gobby-0.5/
%{_datadir}/gobby-0.5/icons/
%{_datadir}/icons/HighContrastLargePrint/48x48/apps/gobby-0.5.png
%{_datadir}/icons/HighContrastLargePrint/scalable/apps/gobby-0.5.svg
%{_datadir}/icons/HighContrastLargePrintInverse/48x48/apps/gobby-0.5.png
%{_datadir}/icons/HighContrastLargePrintInverse/scalable/apps/gobby-0.5.svg
%{_datadir}/icons/hicolor/48x48/apps/gobby-0.5.png
%{_datadir}/icons/hicolor/scalable/apps/gobby-0.5.svg
%{_mandir}/man1/gobby-0.5.1*
%{_datadir}/appdata/gobby-0.5.appdata.xml
%doc %{_datadir}/gnome/help/gobby/
%doc %{_datadir}/omf/gobby/gobby-C.omf

%changelog
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Tue Jun 02 2015 Yaakov Selkowitz <yselkowi@redhat.com> - 0.5.0-3
- Use system ca-certificates (#1227163)

* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.5.0-2
- Rebuilt for GCC 5 C++11 ABI change

* Sat Oct 04 2014 Till Maas <opensource@till.name> - 0.5.0-1
- Update to new release
- Remove upstreamed patches

* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.94-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild

* Thu Jun 12 2014 Yaakov Selkowitz <yselkowi@redhat.com> - 0.4.94-7
- Fix FTBFS with gtksourceview-3.10 (#1106698)

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.94-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.94-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Thu Jul 11 2013 Till Maas <opensource@till.name> - 0.4.94-4
- Do not clean the buildroot in %%install
- Use %%make_install

* Thu Jul 11 2013 Till Maas <opensource@till.name> - 0.4.94-3
- Remove executable flag from source file

* Tue Jun 11 2013 Till Maas <opensource@till.name> - 0.4.94-2
- Add new patch to compile on Rawhide/F20
- Build GNOME docs

* Sun Jul 22 2012 Till Maas <opensource@till.name> - 0.4.94-1
- Initial spec for Fedora