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

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

License:    GPLv3
Summary:    Modern XMPP ("Jabber") Chat Client using GTK+/Vala
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

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.

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

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

# Use the system version of libsignal-protocol-c instead of the bundled one.

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

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

%files devel

* Mon Jun 03 2019 Randy Barlow <> - 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 <> - 0.8.20190701.git.git.8120203d
- Update to 8120203d.

* Sun May 05 2019 Randy Barlow <> - 0.0-0.7.20190429.git.f4778ef3
- Update to f4778ef3.

* Sat Apr 06 2019 Randy Barlow <> - 0.0-0.6.20190316.git.330649a
- Update to 330649a.

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

* Sun Feb 24 2019 Randy Barlow <> - 0.0-0.4.20190116.git.8e14ac6
- Do not rename zh_Hans to zh-Hans.

* Wed Feb 13 2019 Randy Barlow <> - 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 <> - 0.0-0.2.8e14ac6
- Upgrade to 8e14ac6.

* Sat Dec 29 2018 Randy Barlow <> - 0.0-0.1.4209428
- Initial release.