|
|
|
%global __cmake_in_source_build 0
|
|
|
|
%global _with_cppunit 1
|
|
|
|
|
|
|
|
Name: xournalpp
|
|
|
|
Version: 1.1.0
|
|
|
|
Release: %autorelease
|
|
|
|
Summary: Handwriting note-taking software
|
|
|
|
|
|
|
|
License: GPLv2+
|
|
|
|
URL: https://github.com/%{name}/%{name}
|
|
|
|
Source: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
BuildRequires: cmake >= 3.10
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gettext
|
|
|
|
BuildRequires: libappstream-glib
|
|
|
|
|
|
|
|
# Work around firefox carrying bogus Provides:
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1908018#c12
|
|
|
|
BuildRequires: nss nspr
|
|
|
|
|
|
|
|
%{?_with_cppunit:
|
|
|
|
BuildRequires: pkgconfig(cppunit) >= 1.12-0
|
|
|
|
}
|
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
|
|
BuildRequires: pkgconfig(gtk+-3.0)
|
|
|
|
BuildRequires: pkgconfig(librsvg-2.0)
|
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
|
|
BuildRequires: pkgconfig(libzip)
|
|
|
|
BuildRequires: pkgconfig(lua)
|
|
|
|
BuildRequires: pkgconfig(poppler-glib)
|
|
|
|
BuildRequires: pkgconfig(portaudiocpp) >= 12
|
|
|
|
BuildRequires: pkgconfig(sndfile)
|
|
|
|
BuildRequires: tex-latex-bin
|
|
|
|
Requires: hicolor-icon-theme
|
|
|
|
Requires: %{name}-plugins = %{version}-%{release}
|
|
|
|
Requires: %{name}-ui = %{version}-%{release}
|
|
|
|
|
|
|
|
%description
|
|
|
|
Xournal++ is a handwriting note-taking software with PDF annotation support.
|
|
|
|
Supports Pen input like Wacom Tablets
|
|
|
|
|
|
|
|
%package plugins
|
|
|
|
Summary: Default plugin for %{name}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description plugins
|
|
|
|
The %{name}-plugins package contains sample plugins for %{name}.
|
|
|
|
|
|
|
|
%package ui
|
|
|
|
Summary: User interface for %{name}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description ui
|
|
|
|
The %{name}-ui package contains a graphical user interface for %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake \
|
|
|
|
%{?_with_cppunit: -DENABLE_CPPUNIT=ON} \
|
|
|
|
-DENABLE_MATHTEX=ON \
|
|
|
|
-DMAC_INTEGRATION=OFF
|
|
|
|
|
|
|
|
%cmake_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
|
|
|
|
#Remove depreciated key from desktop file
|
|
|
|
#Fix desktop file associated with application
|
|
|
|
desktop-file-install \
|
|
|
|
--remove-key="Encoding" \
|
|
|
|
--set-key="StartupWMClass" \
|
|
|
|
--set-value="xournalpp" \
|
|
|
|
%{buildroot}%{_datadir}/applications/com.github.%{name}.%{name}.desktop
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
# REMOVE UNNECESSARY SCRIPTS
|
|
|
|
find %{buildroot}%{_datadir}/%{name} -name update-icon-cache.sh -delete -print
|
|
|
|
|
|
|
|
%fdupes %{buildroot}%{_datadir}
|
|
|
|
|
|
|
|
%check
|
|
|
|
desktop-file-validate %{buildroot}%{_datadir}/applications/com.github.%{name}.%{name}.desktop
|
|
|
|
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/com.github.%{name}.%{name}.appdata.xml
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md AUTHORS
|
|
|
|
%{_bindir}/%{name}-thumbnailer
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_datadir}/applications/com.github.%{name}.%{name}.desktop
|
|
|
|
%{_datadir}/icons/hicolor/scalable/apps/com.github.%{name}.%{name}.svg
|
|
|
|
%{_datadir}/icons/hicolor/scalable/mimetypes/*
|
|
|
|
%{_datadir}/mime/packages/com.github.%{name}.%{name}.xml
|
|
|
|
%exclude %{_datadir}/mimelnk/application/*
|
|
|
|
%{_datadir}/thumbnailers/com.github.%{name}.%{name}.thumbnailer
|
|
|
|
%dir %{_datadir}/%{name}
|
|
|
|
%{_datadir}/%{name}/resources/*_template.tex
|
|
|
|
%{_metainfodir}/com.github.%{name}.%{name}.appdata.xml
|
|
|
|
|
|
|
|
%files plugins
|
|
|
|
%{_datadir}/%{name}/plugins
|
|
|
|
|
|
|
|
%files ui
|
|
|
|
%{_datadir}/%{name}/ui
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Mon Jul 19 2021 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 1.1.0-1
|
|
|
|
- Update to 1.1.0 (#1983495)
|
|
|
|
|
|
|
|
* Sun Feb 28 2021 Luya Tshimbalanga <luya@fedoraproject.org> - 1.0.20-3
|
|
|
|
- Enable math tex support
|
|
|
|
- Add fdupes for build requirement
|
|
|
|
- Simplify summary
|
|
|
|
|
|
|
|
* Thu Jan 28 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.20-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
* Fri Dec 18 2020 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 1.0.20-1
|
|
|
|
- Update to 1.0.20 (#1908932)
|
|
|
|
- Work around firefox carrying bogus Provides
|
|
|
|
|
|
|
|
* Fri Oct 23 2020 Luya Tshimbalanga <luya@fedoraproject.org> - 1.0.19-2
|
|
|
|
- Replace old xournal thumbnail with xournalpp version
|
|
|
|
|
|
|
|
* Thu Oct 22 2020 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 1.0.19-1
|
|
|
|
- Update to 1.0.19 (#1890463)
|
|
|
|
|
|
|
|
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.18-4
|
|
|
|
- Second attempt - Rebuilt for
|
|
|
|
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.18-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
* Tue Apr 21 2020 Luya Tshimbalanga <luya@fedoraproject.org> - 1.0.18-2
|
|
|
|
- Set value key on desktop file associated with application (#1826395)
|
|
|
|
|
|
|
|
* Thu Apr 16 2020 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 1.0.18-1
|
|
|
|
- Update to 1.0.18 (#1824351)
|
|
|
|
|
|
|
|
* Tue Feb 04 2020 Luya Tshimbalanga <luya@fedoraproject.org> - 1.0.17-1
|
|
|
|
- Update to 1.0.17 (#1798239)
|
|
|
|
- Drop unneeded texlive dependencies
|
|
|
|
- Fix build with translations parameter
|
|
|
|
|
|
|
|
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.16-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
* Fri Jan 17 2020 Marek Kasik <mkasik@redhat.com> - 1.0.16-9
|
|
|
|
- Rebuild for poppler-0.84.0
|
|
|
|
|
|
|
|
* Sun Jan 12 2020 Luya Tshimbalanga <luya@fedoraproject.org> - 1.0.16-8
|
|
|
|
- Remove depreciate key in desktop file
|
|
|
|
|
|
|
|
* Mon Dec 16 2019 Luya Tshimbalanga <luya@fedoraproject.org> - 1.0.16-7
|
|
|
|
- Remove architecture requirement for plugins and ui
|
|
|
|
|
|
|
|
* Mon Dec 16 2019 Luya Tshimbalanga <luya@fedoraproject.org> - 1.0.16-6
|
|
|
|
- Fix typos
|
|
|
|
|
|
|
|
* Mon Dec 16 2019 Luya Tshimbalanga <luya@fedoraproject.org> - 1.0.16-5
|
|
|
|
- Fix architecture requirement for ui
|
|
|
|
|
|
|
|
* Wed Dec 11 2019 Luya Tshimbalanga <luya@fedoraproject.org> - 1.0.16-4
|
|
|
|
- Review fixes
|
|
|
|
|
|
|
|
* Wed Dec 11 2019 Luya Tshimbalanga <luya@fedoraproject.org> - 1.0.16-3
|
|
|
|
- Add hicolor-icon-theme to requirement
|
|
|
|
- Use desktop file validation
|
|
|
|
- Split xournal data share into subpackages
|
|
|
|
- Review fixes
|
|
|
|
|
|
|
|
* Sun Nov 17 2019 Luya Tshimbalanga <luya@fedoraproject.org> 1.0.16-2
|
|
|
|
- Remove scripts from ui icons directory
|
|
|
|
- Relocate tlh locale directory
|
|
|
|
|
|
|
|
* Sun Nov 17 2019 Luya Tshimbalanga <luya@fedoraproject.org> 1.0.16-1
|
|
|
|
- Release 1.0.16
|
|
|
|
- Enable cppunit
|
|
|
|
|
|
|
|
* Sun Nov 10 2019 Luya Tshimbalanga <luya@fedoraproject.org> 1.0.15-2
|
|
|
|
- Update spec file based on review
|
|
|
|
- Include appstream data
|
|
|
|
|
|
|
|
* Sun Nov 10 2019 Luya Tshimbalanga <luya@fedoraproject.org> 1.0.15-1
|
|
|
|
- Release 1.0.15
|
|
|
|
|
|
|
|
* Tue Aug 13 2019 dfas <d.dfas@moens.cc> - 1.0.13-2.git7349762
|
|
|
|
- Release 1.0.13-current
|
|
|
|
|
|
|
|
* Tue Jun 25 2019 dfas <d.dfas@moens.cc> - 1.0.13-1.gita7f0275
|
|
|
|
- Release 1.0.13-current
|
|
|
|
|
|
|
|
* Fri May 3 2019 Francisco Gonzalez <gzmorell@gmail.com> - 1.0.10-1
|
|
|
|
- First attempt at packaging xournalpp
|