diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d96c3bd --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/drawing-0.2.tar.gz diff --git a/drawing-metainfo-path-change.patch b/drawing-metainfo-path-change.patch new file mode 100644 index 0000000..2f0f37a --- /dev/null +++ b/drawing-metainfo-path-change.patch @@ -0,0 +1,11 @@ +--- a/data/meson.build 2019-03-28 18:03:27.000000000 +0200 ++++ b/data/meson.build 2019-04-10 12:50:10.063159468 +0300 +@@ -19,7 +19,7 @@ + output: 'com.github.maoschanz.drawing.appdata.xml', + po_dir: '../po', + install: true, +- install_dir: join_paths(get_option('datadir'), 'appdata') ++ install_dir: join_paths(get_option('datadir'), 'metainfo') + ) + + appstream_util = find_program('appstream-util', required: false) diff --git a/drawing.spec b/drawing.spec new file mode 100644 index 0000000..0652074 --- /dev/null +++ b/drawing.spec @@ -0,0 +1,59 @@ +%global filename com.github.maoschanz.drawing + +Name: drawing +Version: 0.2 +Release: 1%{?dist} +Summary: Drawing application for the GNOME desktop + +License: GPLv3+ +URL: https://github.com/maoschanz/drawing +Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz +Patch0: %{name}-metainfo-path-change.patch + +BuildArch: noarch + +BuildRequires: desktop-file-utils +BuildRequires: libappstream-glib +BuildRequires: meson +BuildRequires: pkgconfig(gtk+-3.0) +BuildRequires: python3-devel + +Requires: hicolor-icon-theme + +%description +This application is a simple image editor, using Cairo and GdkPixbuf for basic +drawing operations. + +It follows GNOME interface guidelines (but can optionally use elementaryOS UI +guidelines or Cinnamon/MATE UI guidelines). + +PNG, JPEG and BMP files are supported. + +%prep +%autosetup -p1 + +%build +%meson +%meson_build + +%install +%meson_install +%find_lang %{name} --with-gnome + +%check +appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{filename}.appdata.xml +desktop-file-validate %{buildroot}%{_datadir}/applications/%{filename}.desktop + +%files -f %{name}.lang +%doc README.md CONTRIBUTING.md +%license COPYING +%{_bindir}/%{name} +%{_datadir}/%{name} +%{_datadir}/applications/%{filename}.desktop +%{_datadir}/glib-2.0/schemas/%{filename}.gschema.xml +%{_datadir}/icons/hicolor/*/apps/%{filename}* +%{_metainfodir}/%{filename}.appdata.xml + +%changelog +* Wed Apr 10 2019 Artem Polishchuk - 0.2-1 +- Initial package. diff --git a/sources b/sources new file mode 100644 index 0000000..85d1711 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (drawing-0.2.tar.gz) = 493c0a648236cc0138244d0bdd13eb976e519a65ba4c631f5e163e31edf6405bf58cf2eda6e4e7c6f78ba38dad677718132e0f92a1e72eb6c4ba9a71eb0bbe97