diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c2e018a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/xournalpp-1.0.16.tar.gz diff --git a/sources b/sources new file mode 100644 index 0000000..f7ebb9a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (xournalpp-1.0.16.tar.gz) = cbfd528a1aa4f0d58bf8ceeede47e6dd94258fafb7c57e11031783e8c98eb037a561ff8bdf699455908d86886ca52ceba21bad7ac372e5eb2205b0382fd2c520 diff --git a/xournalpp.spec b/xournalpp.spec new file mode 100644 index 0000000..58aaf6d --- /dev/null +++ b/xournalpp.spec @@ -0,0 +1,130 @@ +Name: xournalpp +Version: 1.0.16 +Release: 4%{?dist} +Summary: Handwriting note-taking software with PDF annotation support + +License: GPLv2+ +URL: https://github.com/%{name}/%{name} +Source: %{url}/archive/%{version}/%{name}-%{version}.tar.gz + +BuildRequires: cmake3 >= 3.10 +BuildRequires: desktop-file-utils +BuildRequires: cppunit-devel >= 1.12-0 +BuildRequires: gcc-c++ +BuildRequires: gettext +BuildRequires: libappstream-glib +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(gtk+-3.0) +BuildRequires: pkgconfig(libxml-2.0) +BuildRequires: pkgconfig(libzip) +BuildRequires: pkgconfig(lua) +BuildRequires: pkgconfig(poppler-glib) +BuildRequires: pkgconfig(portaudiocpp) >= 12 +BuildRequires: pkgconfig(sndfile) +Requires: hicolor-icon-theme +Requires: kde-filesystem +Requires: texlive-scheme-basic +Requires: texlive-dvipng +Requires: texlive-standalone +Requires: %{name}-plugins +Requires: %{name}-ui + +%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} +Requires: %{name}%{?_isa} = %{version}-%{release} +BuildArch: noarch + +%description plugins +The %{name}-plugins package contains sample plugins for %{name}. + +%package ui +Summary: User interface for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +BuildArch: noarch + +%description ui +The %{name}-ui package contains a graphical user interface for %{name}. + + +%prep +%autosetup + +#Fix tlh aka klingon language +mv po/tlh_AA.po po/tlh.po +sed -i 's|tlh-AA|tlh|g' po/tlh.po + +%build +%cmake3 \ + -DENABLE_CPPUNIT=ON \ + . +%make_build + +%install +%make_install +%find_lang %{name} + +#Remove scripts from icons interface +rm -r %{buildroot}%{_datadir}/%{name}/ui/icons/hicolor/update-icon-cache.sh +rm -r %{buildroot}%{_datadir}/%{name}/ui/iconsDark/hicolor/update-icon-cache.sh + +%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}/xournal-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} +%{_metainfodir}/com.github.%{name}.%{name}.appdata.xml + +%files plugins +%{_datadir}/%{name}/plugins + +%files ui +%{_datadir}/%{name}/ui + +%changelog +* Wed Dec 11 2019 Luya Tshimbalanga - 1.0.16-4 +- Review fixes + +* Wed Dec 11 2019 Luya Tshimbalanga - 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 1.0.16-2 +- Remove scripts from ui icons directory +- Relocate tlh locale directory + +* Sun Nov 17 2019 Luya Tshimbalanga 1.0.16-1 +- Release 1.0.16 +- Enable cppunit + +* Sun Nov 10 2019 Luya Tshimbalanga 1.0.15-2 +- Update spec file based on review +- Include appstream data + +* Sun Nov 10 2019 Luya Tshimbalanga 1.0.15-1 +- Release 1.0.15 + +* Tue Aug 13 2019 dfas - 1.0.13-2.git7349762 +- Release 1.0.13-current + +* Tue Jun 25 2019 dfas - 1.0.13-1.gita7f0275 +- Release 1.0.13-current + +* Fri May 3 2019 Francisco Gonzalez - 1.0.10-1 +- First attempt at packaging xournalpp.