summaryrefslogtreecommitdiffstats
path: root/gcolor3.spec
diff options
context:
space:
mode:
authorTimothée Floure <timothee.floure@fnux.ch>2018-09-03 09:55:14 +0200
committerTimothée Floure <timothee.floure@fnux.ch>2018-09-03 09:55:14 +0200
commit10b868419ccf99da8d6bf0fee12012c1c7c54824 (patch)
tree316f252030c9bab7ec64e13126c25f459830e104 /gcolor3.spec
parentf97327fdfe2cf9b2eeae30be16f69cc17ceef235 (diff)
downloadrpm-gcolor3-10b868419ccf99da8d6bf0fee12012c1c7c54824.tar.gz
rpm-gcolor3-10b868419ccf99da8d6bf0fee12012c1c7c54824.tar.xz
rpm-gcolor3-10b868419ccf99da8d6bf0fee12012c1c7c54824.zip
Update to gcolor3 2.3.1
Diffstat (limited to 'gcolor3.spec')
-rw-r--r--gcolor3.spec53
1 files changed, 31 insertions, 22 deletions
diff --git a/gcolor3.spec b/gcolor3.spec
index 8150f82..d0e15eb 100644
--- a/gcolor3.spec
+++ b/gcolor3.spec
@@ -1,15 +1,19 @@
Name: gcolor3
-Version: 2.2
-Release: 4%{?dist}
+Version: 2.3.1
+Release: 1%{?dist}
Summary: A simple color chooser written in GTK3 (like gcolor2)
License: GPLv2+
-URL: https://github.com/Unia/gcolor3
+URL: https://www.hjdskes.nl/projects/gcolor3/
-Source0: https://github.com/Hjdskes/gcolor3/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
-Patch0: gcolor3-2.2-appdata_url.patch
-Patch1: gcolor3-2.2-cast_error.patch
-BuildRequires: gnome-common,gtk3-devel >= 3.12.0,intltool,desktop-file-utils,gettext,libappstream-glib
+Source0: https://gitlab.gnome.org/World/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz
+BuildRequires: meson
+BuildRequires: gnome-common
+BuildRequires: gtk3-devel >= 3.12.0
+BuildRequires: intltool
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+BuildRequires: libappstream-glib
%description
Gcolor3 is a color selection dialog written in GTK+ 3. It is much alike Gcolor2,
@@ -19,20 +23,18 @@ use an .ini style file to save colors (older versions use the same file as
Gcolor2).
%prep
-%setup -q
-%patch0
-%patch1
-NOCONFIGURE=1 ./autogen.sh
+%autosetup -n %{name}-v%{version}
%build
-%configure
-%make_build
+%meson
+%meson_build
%install
-%make_install
-%find_lang Gcolor3
-desktop-file-validate %{buildroot}/%{_datadir}/applications/gcolor3.desktop
-appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/gcolor3.appdata.xml
+%meson_install
+
+%find_lang gcolor3
+desktop-file-validate %{buildroot}%{_datadir}/applications/nl.hjdskes.gcolor3.desktop
+appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/nl.hjdskes.gcolor3.appdata.xml
%post
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
@@ -46,15 +48,22 @@ fi
%posttrans
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
-%files -f Gcolor3.lang
-%doc README.md AUTHORS
+%files -f gcolor3.lang
+%doc README.md
%license LICENSE
%{_bindir}/gcolor3
-%{_datadir}/appdata/gcolor3.appdata.xml
-%{_datadir}/applications/gcolor3.desktop
-%{_datadir}/icons/hicolor/scalable/apps/gcolor3.svg
+%{_datadir}/applications/nl.hjdskes.gcolor3.desktop
+%{_datadir}/icons/hicolor/scalable/apps/nl.hjdskes.gcolor3.svg
+%{_metainfodir}/nl.hjdskes.gcolor3.appdata.xml
+%{_mandir}/man1/gcolor3.1*
%changelog
+* Mon Sep 03 2018 Timothée Floure <fnux@fedoraproject.org> - 2.3.1-1
+ - New upstream release (2.3.1)
+ - Use meson to build the application
+ - Update project homepage
+ - Update project URL
+
* Tue Jun 26 2018 Timothée Floure <fnux@fedoraproject.org> - 2.2-5
- Fix compilation for F28+ (patch1)