Blob Blame History Raw
%global commit 8120203d62f52315f04364e70b3ac6beefe043de
%global commit_short %(c=%{commit}; echo ${c:0:7})

Name:       dino
Version:    0.0
Release:    0.11.20190601.git.%{commit_short}%{?dist}

License:    GPLv3
Summary:    Modern XMPP ("Jabber") Chat Client using GTK+/Vala
URL:        https://github.com/dino/dino
Source0:    %{url}/archive/%{commit}/%{name}-%{commit}.tar.gz

BuildRequires: cmake
BuildRequires: desktop-file-utils
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: gpgme-devel
BuildRequires: gtk+-devel
BuildRequires: gtk3-devel
BuildRequires: libgee-devel
BuildRequires: libgcrypt-devel
BuildRequires: libsignal-protocol-c-devel
BuildRequires: libsoup-devel
BuildRequires: ninja-build
BuildRequires: qrencode-devel
BuildRequires: sqlite-devel
BuildRequires: vala

Requires:   filesystem
Requires:   hicolor-icon-theme


%description
A modern XMPP ("Jabber") chat client using GTK+/Vala.


%package devel
Summary:    Development files for dino

Requires:   dino%{?_isa} == %{version}-%{release}


%description devel
Development files for dino.


%prep
%setup -q -n %{name}-%{commit}

# Remove the bundled library
rm .gitmodules
rm -r plugins/signal-protocol/libsignal-protocol-c


%build
# Use the system version of libsignal-protocol-c instead of the bundled one.
export SHARED_SIGNAL_PROTOCOL=true
%configure
%make_build


%install
%make_install
%find_lang %{name}
%find_lang %{name}-omemo
%find_lang %{name}-openpgp


%check
make test
desktop-file-validate %{buildroot}/%{_datadir}/applications/im.dino.Dino.desktop


%files -f %{name}.lang -f %{name}-omemo.lang -f %{name}-openpgp.lang
%license LICENSE
%doc README.md
%{_bindir}/dino
%{_datadir}/applications/im.dino.Dino.desktop
%{_datadir}/dbus-1/services/im.dino.Dino.service
%{_datadir}/icons/hicolor/scalable/apps/im.dino.Dino.svg
%{_datadir}/icons/hicolor/scalable/status/*.svg
%{_datadir}/icons/hicolor/symbolic/apps/im.dino.Dino-symbolic.svg
%{_datadir}/metainfo/im.dino.Dino.appdata.xml
%{_libdir}/dino
%{_libdir}/libdino.so.0*
%{_libdir}/libqlite.so.0*
%{_libdir}/libxmpp-vala.so.0*


%files devel
%{_datadir}/vala/vapi/dino.*
%{_datadir}/vala/vapi/qlite.*
%{_datadir}/vala/vapi/xmpp-vala.*
%{_includedir}/dino.h
%{_includedir}/dino_i18n.h
%{_includedir}/qlite.h
%{_includedir}/xmpp-vala.h
%{_libdir}/libdino.so
%{_libdir}/libqlite.so
%{_libdir}/libxmpp-vala.so


%changelog
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0-0.11.20190601.git.8120203
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Tue Jun 25 2019 Björn Esser <besser82@fedoraproject.org> - 0.0-0.10.20190601.git.8120203
- Rebuilt (libqrencode.so.4)

* Mon Jun 03 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 0.9.20190601.git.8120203d
- Correct the commit date in the Release field, it was a typo in the prior commit.

* Sat Jun 01 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 0.8.20190701.git.git.8120203d
- Update to 8120203d.
- https://github.com/dino/dino/compare/f4778ef3...8120203d

* Sun May 05 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 0.0-0.7.20190429.git.f4778ef3
- Update to f4778ef3.
- https://github.com/dino/dino/compare/330649a...f4778ef3

* Sat Apr 06 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 0.0-0.6.20190316.git.330649a
- Update to 330649a.
- https://github.com/dino/dino/compare/a493269...330649a

* Sat Mar 16 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 0.0-0.5.20190314.git.a493269
- Update to a493269.
- Unbundle libsignal-protocol-c.

* Sun Feb 24 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 0.0-0.4.20190116.git.8e14ac6
- Do not rename zh_Hans to zh-Hans.
- https://github.com/dino/dino/issues/524

* Wed Feb 13 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 0.0-0.3.20190116.git.8e14ac6
- Add the commit date into the Release field.
- Correct the license to GPLv3 (not GPLv3+).
- Move the unversioned shared object to the -devel package.
- Use the find_lang macro.
- Use desktop-file-validate in the check section.

* Tue Jan 29 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 0.0-0.2.8e14ac6
- Upgrade to 8e14ac6.

* Sat Dec 29 2018 Randy Barlow <bowlofeggs@fedoraproject.org> - 0.0-0.1.4209428
- Initial release.