Compare commits
10 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dae0d2ae27 | ||
|
|
62be5aa039 | ||
|
|
e5d30de8c9 | ||
|
|
0de6b44d8f | ||
|
|
4c6d72e104 | ||
|
|
857d1948f6 | ||
|
|
40660a86db | ||
|
|
2c6e51db2c | ||
|
|
38c78fc42d | ||
|
|
0ee7098c45 |
3 changed files with 141 additions and 0 deletions
8
.gitignore
vendored
Normal file
8
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
/xournalpp-1.2.4.tar.gz
|
||||
/xournalpp-1.2.5.tar.gz
|
||||
/xournalpp-1.2.7.tar.gz
|
||||
/xournalpp-1.2.8.tar.gz
|
||||
/xournalpp-1.2.10.tar.gz
|
||||
/xournalpp-1.3.0.tar.gz
|
||||
/xournalpp-1.3.1.tar.gz
|
||||
/xournalpp-1.3.2.tar.gz
|
||||
1
sources
Normal file
1
sources
Normal file
|
|
@ -0,0 +1 @@
|
|||
SHA512 (xournalpp-1.3.2.tar.gz) = 64cd0b7a9e030da8f1c655527556918d0a9d9010153ef565044020180af375b6a71a8ae7f8d91e85634f541cb3a25727c306b1d929bce9017fb4346af5b5baa1
|
||||
132
xournalpp.spec
Normal file
132
xournalpp.spec
Normal file
|
|
@ -0,0 +1,132 @@
|
|||
%bcond cppunit 1
|
||||
%bcond gtest 1
|
||||
%bcond profiling 1
|
||||
%bcond qpdf 1
|
||||
%global forgeurl https://github.com/xournalpp/xournalpp
|
||||
|
||||
Name: xournalpp
|
||||
Version: 1.3.2
|
||||
Release: %autorelease
|
||||
Summary: Handwriting note-taking software with PDF annotation support
|
||||
License: GPL-2.0-or-later
|
||||
%forgemeta
|
||||
URL: %{forgeurl}
|
||||
Source: %{forgesource}
|
||||
|
||||
BuildRequires: cmake >= 3.10
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: gettext
|
||||
BuildRequires: git
|
||||
BuildRequires: help2man
|
||||
BuildRequires: libappstream-glib
|
||||
BuildRequires: ninja-build
|
||||
|
||||
%if %{with cppunit}
|
||||
BuildRequires: pkgconfig(cppunit) >= 1.12
|
||||
%endif
|
||||
BuildRequires: pkgconfig(glib-2.0) >= 2.32
|
||||
%if %{with gtest}
|
||||
BuildRequires: pkgconfig(gtest)
|
||||
%endif
|
||||
BuildRequires: pkgconfig(gtk+-3.0) >= 3.19.9
|
||||
BuildRequires: pkgconfig(gtksourceview-4) >= 4.0.0
|
||||
BuildRequires: pkgconfig(librsvg-2.0)
|
||||
%if %{with profiling}
|
||||
BuildRequires: pkgconfig(libprofiler) >= 2.5
|
||||
BuildRequires: pkgconfig(libtcmalloc) >= 2.5
|
||||
%endif
|
||||
%if %{with qpdf}
|
||||
BuildRequires: pkgconfig(libqpdf) >= 10.6.0
|
||||
%endif
|
||||
BuildRequires: pkgconfig(libxml-2.0) >= 2.0
|
||||
BuildRequires: pkgconfig(libzip) >= 1.0.1
|
||||
BuildRequires: pkgconfig(lua) >= 5.3
|
||||
BuildRequires: pkgconfig(poppler-glib) >= 0.41
|
||||
BuildRequires: pkgconfig(portaudiocpp) >= 12
|
||||
BuildRequires: pkgconfig(sndfile) >= 1.0.25
|
||||
|
||||
Recommends: texlive-latex-bin
|
||||
Requires: hicolor-icon-theme
|
||||
Requires: %{name}-plugins = %{version}-%{release}
|
||||
Requires: %{name}-ui = %{version}-%{release}
|
||||
|
||||
%description
|
||||
Xournal++ is a handwriting note-taking application with PDF annotation support.
|
||||
It is optimized for pen input such as Wacom tablets.
|
||||
|
||||
%package plugins
|
||||
Summary: Default plugins for %{name}
|
||||
BuildArch: noarch
|
||||
|
||||
%description plugins
|
||||
This package contains sample plugins for %{name}.
|
||||
|
||||
%package ui
|
||||
Summary: User interface files for %{name}
|
||||
BuildArch: noarch
|
||||
|
||||
%description ui
|
||||
This package contains user interface resources for %{name}.
|
||||
|
||||
%prep
|
||||
%forgeautosetup -p1
|
||||
|
||||
%build
|
||||
%cmake \
|
||||
-DCMAKE_BUILD_TYPE="Release" \
|
||||
-DDISTRO_CODENAME="Fedora Linux" \
|
||||
-DENABLE_GTEST=%{with gtest} \
|
||||
-DENABLE_PROFILING=%{with profiling}
|
||||
|
||||
%cmake_build
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
%find_lang %{name}
|
||||
|
||||
# Generate and install man pages.
|
||||
install -d '%{buildroot}%{_mandir}/man1'
|
||||
for cmd in %{buildroot}%{_bindir}/*
|
||||
do
|
||||
LD_LIBRARY_PATH='%{buildroot}%{_libdir}' \
|
||||
help2man \
|
||||
--no-info --no-discard-stderr --version-string='%{version}' \
|
||||
--output="%{buildroot}%{_mandir}/man1/$(basename "${cmd}").1" \
|
||||
"${cmd}"
|
||||
done
|
||||
|
||||
# Remove unnecessary scripts and duplicate files
|
||||
find %{buildroot} -name "*.sh" -delete
|
||||
%fdupes %{buildroot}
|
||||
|
||||
%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,-wrapper}
|
||||
%{_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
|
||||
%{_datadir}/thumbnailers/com.github.%{name}.%{name}.thumbnailer
|
||||
%dir %{_datadir}/%{name}
|
||||
%{_datadir}/%{name}/palettes/*.gpl
|
||||
%{_datadir}/%{name}/resources/*_template.tex
|
||||
%{_mandir}/man1/%{name}*.gz
|
||||
%{_metainfodir}/com.github.%{name}.%{name}.appdata.xml
|
||||
|
||||
%files plugins
|
||||
%doc README.md
|
||||
%{_datadir}/%{name}/plugins
|
||||
|
||||
%files ui
|
||||
%doc README.md
|
||||
%{_datadir}/%{name}/ui
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
Loading…
Add table
Add a link
Reference in a new issue