a2089c2
%undefine __cmake_in_source_build
a2089c2
c223616
# https://github.com/vacuum-im/vacuum-im/commit/0abd5e11dd3e2538b8c47f5a06febedf73ae99ee
c223616
%global         commit 0abd5e11dd3e2538b8c47f5a06febedf73ae99ee
ab33d2e
%global         shortcommit %(c=%{commit}; echo ${c:0:7})
c223616
%global         commitdate 20211209
ab33d2e
%global         sname vacuum
ab33d2e
ab33d2e
Name:           %{sname}-im
6629cbb
Summary:        XMPP/Jabber client
ab33d2e
Version:        1.3.0
e5af24b
Release:        0.29.%{commitdate}git%{shortcommit}%{?dist}
ab33d2e
License:        GPLv3
ab33d2e
Url:            http://www.vacuum-im.org/
ab33d2e
Source0:        https://github.com/Vacuum-IM/vacuum-im/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
89e1709
Patch0:         %{name}-fix-building-with-qt5.5.patch
ab33d2e
ab33d2e
BuildRequires:  cmake
ab33d2e
BuildRequires:  pkgconfig(Qt5Core)
ab33d2e
BuildRequires:  pkgconfig(Qt5Help)
ab33d2e
BuildRequires:  pkgconfig(Qt5Xml)
ab33d2e
BuildRequires:  pkgconfig(Qt5Multimedia)
ab33d2e
BuildRequires:  pkgconfig(Qt5X11Extras)
ab33d2e
BuildRequires:  pkgconfig(Qt5WebKitWidgets)
ab33d2e
BuildRequires:  pkgconfig(Qt5WebKit)
89e1709
BuildRequires:  pkgconfig(Qt5Svg)
ab33d2e
BuildRequires:  pkgconfig(qxtglobalshortcut)
ab33d2e
BuildRequires:  qtlockedfile-qt5-devel
ab33d2e
BuildRequires:  chrpath
ab33d2e
BuildRequires:  openssl-devel
ab33d2e
BuildRequires:  hunspell-devel
ab33d2e
BuildRequires:  libidn-devel
ab33d2e
BuildRequires:  jdns-devel
ab33d2e
BuildRequires:  zlib-devel
ab33d2e
BuildRequires:  libXScrnSaver-devel
ab33d2e
BuildRequires:  desktop-file-utils
ab33d2e
BuildRequires:  libappstream-glib
f03a1cf
Requires:      %{name}-data = %{version}
ab33d2e
Requires:       fedora-logos
ab33d2e
Requires:       hicolor-icon-theme
ab33d2e
ab33d2e
%description
6629cbb
Full-featured cross platform Jabber/XMPP client.
ab33d2e
The core program is just a plugin loader - all functionality is made
ab33d2e
available via plugins. This enforces modularity and ensures well defined
ab33d2e
component interaction via interfaces.
ab33d2e
ab33d2e
%package data
ab33d2e
Summary:       Images, themes and translatons for %{name}
ab33d2e
BuildArch:     noarch
ab33d2e
Requires:      %{name} = %{version}-%{release}
ab33d2e
ab33d2e
%description data
ab33d2e
This package contains images, themes and translations.
ab33d2e
ab33d2e
%package devel
ab33d2e
Summary:  Development Files for Vacuum-IM
ab33d2e
License:  GPLv3
ab33d2e
Requires: %{name}%{?_isa} = %{version}-%{release}
ab33d2e
ab33d2e
%description devel
ab33d2e
This package includes files needed to develop Vacuum-IM modules.
ab33d2e
ab33d2e
%prep
c223616
%autosetup -p0 -n %{name}-%{commit}
c223616
#%%patch0 -p0
ab33d2e
ab33d2e
# Fix W: wrong-file-end-of-line-encoding /usr/share/doc/vacuum-im/AUTHORS
ab33d2e
sed -i 's/\r$//' AUTHORS CHANGELOG README TRANSLATORS
ab33d2e
ab33d2e
# Fix W: spurious-executable-perm
6629cbb
chmod a-x src/plugins/spellchecker/{spellchecker,spellbackend}.cpp
ab33d2e
4972618
# delete bundled qxtglobalshortcut sources
4972618
rm -rf src/thirdparty/qxtglobalshortcut
4972618
89e1709
# delete bundled zlib sources
89e1709
rm -rf src/thirdparty/zlib
89e1709
ab33d2e
%build
a2089c2
%cmake \
ab33d2e
          -DINSTALL_LIB_DIR=%{_lib} \
ab33d2e
          -DINSTALL_APP_DIR=%{name} \
ab33d2e
          -DLFLAGS="${RPM_LD_FLAGS} -Wl,--as-needed" \
ab33d2e
          -DCFLAGS="%{optflags}"    \
ab33d2e
          -DCXXFLAGS="%{optflags}"
ab33d2e
a2089c2
%cmake_build
ab33d2e
ab33d2e
%install
a2089c2
%cmake_install
ab33d2e
install -D -m644 resources/menuicons/shared/mainwindowlogo128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
ab33d2e
install -D -m644 resources/menuicons/shared/mainwindowlogo96.png %{buildroot}%{_datadir}/icons/hicolor/96x96/apps/%{name}.png
ab33d2e
install -D -m644 resources/menuicons/shared/mainwindowlogo64.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
ab33d2e
install -D -m644 resources/menuicons/shared/mainwindowlogo48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
ab33d2e
install -D -m644 resources/menuicons/shared/mainwindowlogo32.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
ab33d2e
install -D -m644 resources/menuicons/shared/mainwindowlogo24.png %{buildroot}%{_datadir}/icons/hicolor/24x24/apps/%{name}.png
ab33d2e
install -D -m644 resources/menuicons/shared/mainwindowlogo16.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
ab33d2e
sed -i "s/Exec=%{sname}/Exec=%{name}/;s/Icon=%{sname}/Icon=%{name}/" %{buildroot}%{_datadir}/applications/%{sname}.desktop
ab33d2e
mv %{buildroot}%{_datadir}/applications/%{sname}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
ab33d2e
mv %{buildroot}%{_datadir}/pixmaps/%{sname}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
ab33d2e
mv %{buildroot}%{_bindir}/%{sname} %{buildroot}%{_bindir}/%{name}
ab33d2e
ab33d2e
find %{buildroot}%{_datadir}/%{name}/translations -name "*.qm" | sed 's:'%{buildroot}'::
ab33d2e
s:.*/\([a-zA-Z]\{2\}\).qm:%lang(\1) \0:' > %{name}.lang
ab33d2e
ab33d2e
rm -f %{buildroot}%{_defaultdocdir}/%{name}/COPYING
ab33d2e
rm -f %{buildroot}%{_datadir}/%{name}/resources/adiummessagestyles/renkoo/Contents/Resources/*LICENSE.txt
ab33d2e
ab33d2e
# Remove rpath E: binary-or-shlib-defines-rpath /usr/bin/vacuum-im ['$ORIGIN', '$ORIGIN/../lib64/']
ab33d2e
chrpath --delete %{buildroot}%{_bindir}/%{name}
ab33d2e
ab33d2e
%check
ab33d2e
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
005742a
appstream-util validate-relax --nonet %{buildroot}/%{_metainfodir}/%{name}.metainfo.xml
ab33d2e
f03a1cf
%files -f %{name}.lang
ab33d2e
%doc CHANGELOG AUTHORS README TRANSLATORS
ab33d2e
%license COPYING
ab33d2e
%license resources/adiummessagestyles/renkoo/Contents/Resources/*LICENSE.txt
ab33d2e
%{_bindir}/%{name}
ab33d2e
%dir %{_libdir}/%{name}/
ab33d2e
%{_libdir}/%{name}/plugins
ab33d2e
%{_libdir}/libvacuumutils.so.*
ab33d2e
%dir %{_datadir}/icons/hicolor
ab33d2e
%dir %{_datadir}/icons/hicolor/*
ab33d2e
%dir %{_datadir}/icons/hicolor/*/apps
ab33d2e
%{_datadir}/icons/hicolor/*/apps/%{name}.png
ab33d2e
%{_datadir}/applications/%{name}.desktop
005742a
%{_metainfodir}/%{name}.metainfo.xml
ab33d2e
%{_datadir}/pixmaps/%{name}.png
ab33d2e
ab33d2e
%files data
ab33d2e
%{_datadir}/%{name}
ab33d2e
ab33d2e
%files devel
ab33d2e
%{_libdir}/libvacuumutils.so
ab33d2e
%{_includedir}/%{name}
ab33d2e
ab33d2e
%changelog
e5af24b
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-0.29.20211209git0abd5e1
e5af24b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
e5af24b
01d0837
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-0.28.20211209git0abd5e1
01d0837
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
01d0837
c223616
*  Wed Apr 12 2023 Martin Gansser <martinkg@fedoraproject.org> - 1.3.0-0.27.20211209git0abd5e1
c223616
- Update to 1.3.0-0.27.20211209git0abd5e1
c223616
42031d4
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-0.26.20200608gitb6c5dad
42031d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
42031d4
8a97094
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-0.25.20200608gitb6c5dad
8a97094
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
8a97094
389c233
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-0.24.20200608gitb6c5dad
389c233
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
389c233
0efd00c
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-0.23.20200608gitb6c5dad
0efd00c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
0efd00c
7acc3b3
* Sat Jul 03 2021 Martin Gansser <martinkg@fedoraproject.org> - 1.3.0-0.22.20200608gitb6c5dad
7acc3b3
- Rebuilt
7acc3b3
a45deb1
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-0.21.20200608gitb6c5dad
a45deb1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
a45deb1
164b5ae
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-0.20.20200608gitb6c5dad
164b5ae
- Second attempt - Rebuilt for
164b5ae
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
164b5ae
33d3eb9
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-0.19.20200608gitb6c5dad
33d3eb9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
33d3eb9
7720ec0
* Sat Jun 20 2020 Martin Gansser <martinkg@fedoraproject.org> - 1.3.0-0.18.20200608gitb6c5dad
7720ec0
- Update to 1.3.0-0.18.20200608gitb6c5dad
7720ec0
902756b
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-0.17.20191014git9f3952b
902756b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
902756b
84660bf
* Thu Oct 31 2019 Martin Gansser <martinkg@fedoraproject.org> - 1.3.0-0.16.20191014git9f3952b
84660bf
- Update to 1.3.0-0.16.20191014git9f3952b
84660bf
147b329
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-0.15.20181129git52c2a8c
147b329
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
147b329
0f8b8bb
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-0.14.20181129git52c2a8c
0f8b8bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
0f8b8bb
f03a1cf
* Fri Dec 07 2018 Martin Gansser <martinkg@fedoraproject.org> - 1.3.0-0.13.20181129git52c2a8c
f03a1cf
- Update to 1.3.0-0.13.20181129git52c2a8c
f03a1cf
- Add lang files
f03a1cf
109c770
* Tue Nov 13 2018 Caolán McNamara <caolanm@redhat.com> - 1.3.0-0.12.20180214git01910e9
109c770
- rebuild for hunspell 1.7.0
109c770
89e1709
* Tue Sep 25 2018 Martin Gansser <martinkg@fedoraproject.org> - 1.3.0-0.11.20180214git01910e9
89e1709
- Remove BR minizip-compat-devel
89e1709
- Add BR pkgconfig(Qt5Svg)
89e1709
cfad89a
* Tue Aug 28 2018 Patrik Novotný <panovotn@redhat.com> - 1.3.0-0.10.20180214git01910e9
cfad89a
- change requires to minizip-compat(-devel), rhbz#1609830, rhbz#1615381
cfad89a
0498059
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-0.9.20180214git01910e9
0498059
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
0498059
a86eb7e
* Wed Feb 28 2018 Martin Gansser <martinkg@fedoraproject.org> - 1.3.0-0.8.20180214git01910e9
a86eb7e
- Remove scriptlets
a86eb7e
- Update to 1.3.0-0.8.20180214git01910e9
a86eb7e
097aae5
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-0.7.20180127git58ad802
097aae5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
097aae5
4972618
* Sat Jan 27 2018 Martin Gansser <martinkg@fedoraproject.org> - 1.3.0-0.6.20180127git58ad802
4972618
- Update to 1.3.0-0.6.20180127git58ad802
4972618
- Dropped %%{name}-unbundle-qxtglobalshortcut.patch
4972618
- Delete bundled qxtglobalshortcut sources
4972618
c71e342
* Thu Jan 18 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.3.0-0.5.20171028git6b614da
c71e342
- Remove obsolete scriptlets
c71e342
ada7c26
* Mon Dec 04 2017 Caolán McNamara <caolanm@redhat.com> - 1.3.0-0.4.20171028git6b614da
ada7c26
- rebuild for hunspell 1.6.2
ada7c26
6629cbb
* Fri Nov 03 2017 Martin Gansser <martinkg@fedoraproject.org> - 1.3.0-0.3.20171028git6b614da
6629cbb
- Adjusted summary description
6629cbb
ab33d2e
* Sun Oct 29 2017 Martin Gansser <martinkg@fedoraproject.org> - 1.3.0-0.2.20171028git6b614da
ab33d2e
- Update to 1.3.0-0.2.20171028git6b614da
ab33d2e
- Do not run update-desktop-database on Fedora 25+ as per packaging guidelines
ab33d2e
- Remove %%dir %%{_libdir}/%%{name}/plugins, it's marked as listed twice
ab33d2e
ab33d2e
* Thu Oct 26 2017 Martin Gansser <martinkg@fedoraproject.org> - 1.3.0-0.1.20170415git3f1cd42
ab33d2e
- Add LFLAGS flag to fix unused-direct-shlib-dependency warnings
ab33d2e
- Add %%{name}-unbundle-qxtglobalshortcut.patch
ab33d2e
- Initial build