a1c8e52
%global         __cmake_in_source_build 0
f34663e
%global         _with_cppunit 1
f34663e
4e6fc5d
Name:           xournalpp
7228448
Version:        1.0.20
7228448
Release:        1%{?dist}
4e6fc5d
Summary:        Handwriting note-taking software with PDF annotation support
4e6fc5d
4e6fc5d
License:        GPLv2+
4e6fc5d
URL:            https://github.com/%{name}/%{name}
4e6fc5d
Source:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz
4e6fc5d
a1c8e52
BuildRequires:  cmake >= 3.10
4e6fc5d
BuildRequires:  desktop-file-utils
4e6fc5d
BuildRequires:  gcc-c++
4e6fc5d
BuildRequires:  gettext
4e6fc5d
BuildRequires:  libappstream-glib
a1c8e52
%{?_with_cppunit:
a1c8e52
BuildRequires:  pkgconfig(cppunit) >= 1.12-0
a1c8e52
}
4e6fc5d
BuildRequires:  pkgconfig(glib-2.0)
4e6fc5d
BuildRequires:  pkgconfig(gtk+-3.0)
4e6fc5d
BuildRequires:  pkgconfig(libxml-2.0)
4e6fc5d
BuildRequires:  pkgconfig(libzip)
4e6fc5d
BuildRequires:  pkgconfig(lua)
4e6fc5d
BuildRequires:  pkgconfig(poppler-glib)
4e6fc5d
BuildRequires:  pkgconfig(portaudiocpp) >= 12
4e6fc5d
BuildRequires:  pkgconfig(sndfile)
4e6fc5d
Requires:       hicolor-icon-theme
37c8250
Requires:       %{name}-plugins = %{version}-%{release}
37c8250
Requires:       %{name}-ui = %{version}-%{release}
4e6fc5d
4e6fc5d
%description
4e6fc5d
Xournal++ is a handwriting note-taking software with PDF annotation support.
4e6fc5d
Supports Pen input like Wacom Tablets
4e6fc5d
4e6fc5d
%package	plugins
d880a25
Summary:        Default plugin for %{name}
4e6fc5d
BuildArch:      noarch
4e6fc5d
4e6fc5d
%description	plugins
4e6fc5d
The %{name}-plugins package contains sample plugins for  %{name}.
4e6fc5d
4e6fc5d
%package	ui
d880a25
Summary:        User interface for %{name}
4e6fc5d
BuildArch:      noarch
4e6fc5d
4e6fc5d
%description	ui
4e6fc5d
The %{name}-ui package contains a graphical user interface for  %{name}.
4e6fc5d
4e6fc5d
4e6fc5d
%prep
4e6fc5d
%autosetup
4e6fc5d
4e6fc5d
#Fix tlh aka klingon language
4e6fc5d
mv po/tlh_AA.po po/tlh.po
4e6fc5d
sed -i 's|tlh-AA|tlh|g' po/tlh.po
4e6fc5d
4e6fc5d
%build
a1c8e52
%cmake \
fc10648
        %{?_with_cppunit: -DENABLE_CPPUNIT=ON} \
a1c8e52
        -DMAC_INTEGRATION=OFF 
068454d
a1c8e52
%cmake_build
068454d
# Add translations parameter
068454d
# https://github.com/xournalpp/xournalpp/issues/1596
a1c8e52
# %%cmake3_build --target translations
4e6fc5d
4e6fc5d
%install
a1c8e52
%cmake_install
f34663e
f34663e
#Remove depreciated key from desktop file
b1b6b92
#Fix desktop file associated with application
f34663e
desktop-file-install \
f34663e
 --remove-key="Encoding" \
b1b6b92
 --set-key="StartupWMClass" \
b1b6b92
 --set-value="xournalpp" \
f34663e
  %{buildroot}%{_datadir}/applications/com.github.%{name}.%{name}.desktop
4e6fc5d
%find_lang %{name}
4e6fc5d
4e6fc5d
#Remove scripts from icons interface
068454d
#rm -r %%{buildroot}%%{_datadir}/%%{name}/ui/icons/hicolor/update-icon-cache.sh
068454d
#rm -r %%{buildroot}%%{_datadir}/%%{name}/ui/iconsDark/hicolor/update-icon-cache.sh
4e6fc5d
4e6fc5d
%check
4e6fc5d
desktop-file-validate %{buildroot}%{_datadir}/applications/com.github.%{name}.%{name}.desktop
4e6fc5d
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/com.github.%{name}.%{name}.appdata.xml
4e6fc5d
4e6fc5d
%files -f %{name}.lang
4e6fc5d
%license LICENSE
4e6fc5d
%doc README.md AUTHORS
e45c85a
%{_bindir}/xournal-thumbnailer
4e6fc5d
%{_bindir}/%{name}
4e6fc5d
%{_datadir}/applications/com.github.%{name}.%{name}.desktop
4e6fc5d
%{_datadir}/icons/hicolor/scalable/apps/com.github.%{name}.%{name}.svg
4e6fc5d
%{_datadir}/icons/hicolor/scalable/mimetypes/*
4e6fc5d
%{_datadir}/mime/packages/com.github.%{name}.%{name}.xml
4e6fc5d
%exclude %{_datadir}/mimelnk/application/*
4e6fc5d
%{_datadir}/thumbnailers/com.github.%{name}.%{name}.thumbnailer
4e6fc5d
%dir %{_datadir}/%{name}
4e6fc5d
%{_metainfodir}/com.github.%{name}.%{name}.appdata.xml
4e6fc5d
4e6fc5d
%files plugins
4e6fc5d
%{_datadir}/%{name}/plugins
4e6fc5d
4e6fc5d
%files ui
4e6fc5d
%{_datadir}/%{name}/ui
4e6fc5d
4e6fc5d
%changelog
7228448
* Fri Dec 18 2020 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 1.0.20-1
7228448
- Update to 1.0.20 (#1908932)
7228448
f9bd367
* Fri Oct 23 2020 Luya Tshimbalanga <luya@fedoraproject.org> - 1.0.19-2
f9bd367
- Replace old xournal thumbnail with xournalpp version
f9bd367
a1c8e52
* Thu Oct 22 2020 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 1.0.19-1
a1c8e52
- Update to 1.0.19 (#1890463)
a1c8e52
f42a1e0
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.18-4
f42a1e0
- Second attempt - Rebuilt for
f42a1e0
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f42a1e0
38df543
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.18-3
38df543
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
38df543
b1b6b92
* Tue Apr 21 2020 Luya Tshimbalanga <luya@fedoraproject.org> - 1.0.18-2
b1b6b92
- Set value key on desktop file associated with application (#1826395)
b1b6b92
dfdbec6
* Thu Apr 16 2020 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 1.0.18-1
dfdbec6
- Update to 1.0.18 (#1824351)
dfdbec6
068454d
* Tue Feb 04 2020 Luya Tshimbalanga <luya@fedoraproject.org> - 1.0.17-1
7500d75
- Update to 1.0.17 (#1798239)
068454d
- Drop unneeded texlive dependencies
068454d
- Fix build with translations parameter
068454d
ff36d94
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.16-10
ff36d94
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
ff36d94
72ada66
* Fri Jan 17 2020 Marek Kasik <mkasik@redhat.com> - 1.0.16-9
72ada66
- Rebuild for poppler-0.84.0
72ada66
f34663e
* Sun Jan 12 2020 Luya Tshimbalanga <luya@fedoraproject.org> - 1.0.16-8
f34663e
- Remove depreciate key in desktop file
f34663e
37c8250
* Mon Dec 16 2019 Luya Tshimbalanga <luya@fedoraproject.org> - 1.0.16-7
37c8250
- Remove architecture requirement for plugins and ui
37c8250
d880a25
* Mon Dec 16 2019 Luya Tshimbalanga <luya@fedoraproject.org> - 1.0.16-6
d880a25
- Fix typos
d880a25
58e9762
* Mon Dec 16 2019 Luya Tshimbalanga <luya@fedoraproject.org> - 1.0.16-5
58e9762
- Fix architecture requirement for ui
58e9762
4e6fc5d
* Wed Dec 11 2019 Luya Tshimbalanga <luya@fedoraproject.org> - 1.0.16-4
4e6fc5d
- Review fixes
4e6fc5d
4e6fc5d
* Wed Dec 11 2019 Luya Tshimbalanga <luya@fedoraproject.org> - 1.0.16-3
4e6fc5d
- Add hicolor-icon-theme to requirement
4e6fc5d
- Use desktop file validation
4e6fc5d
- Split xournal data share into subpackages
4e6fc5d
- Review fixes
4e6fc5d
4e6fc5d
* Sun Nov 17 2019 Luya Tshimbalanga <luya@fedoraproject.org> 1.0.16-2
4e6fc5d
- Remove scripts from ui icons directory
4e6fc5d
- Relocate tlh locale directory
4e6fc5d
4e6fc5d
* Sun Nov 17 2019 Luya Tshimbalanga <luya@fedoraproject.org> 1.0.16-1
4e6fc5d
- Release 1.0.16
4e6fc5d
- Enable cppunit
4e6fc5d
4e6fc5d
* Sun Nov 10 2019 Luya Tshimbalanga <luya@fedoraproject.org> 1.0.15-2
4e6fc5d
- Update spec file based on review
4e6fc5d
- Include appstream data
4e6fc5d
4e6fc5d
* Sun Nov 10 2019 Luya Tshimbalanga <luya@fedoraproject.org> 1.0.15-1
4e6fc5d
- Release 1.0.15
4e6fc5d
4e6fc5d
* Tue Aug 13 2019 dfas <d.dfas@moens.cc> - 1.0.13-2.git7349762
4e6fc5d
- Release 1.0.13-current
4e6fc5d
4e6fc5d
* Tue Jun 25 2019 dfas <d.dfas@moens.cc> - 1.0.13-1.gita7f0275
4e6fc5d
- Release 1.0.13-current
4e6fc5d
4e6fc5d
* Fri May 3 2019 Francisco Gonzalez <gzmorell@gmail.com> - 1.0.10-1
4e6fc5d
- First attempt at packaging xournalpp.