From 092b69b5afd47c868a4c20e27e57c620a2cef0b60cff3d9208e5084701427d5e Mon Sep 17 00:00:00 2001 From: Simon Lees Date: Fri, 16 Apr 2021 01:18:27 +0000 Subject: [PATCH] Accepting request 885731 from home:luigifab I want to maintain awf-gtk4 in Factory and would like to use X11:common:Factory as the devel/feeder project. This package is same as awf-gtk2. OBS-URL: https://build.opensuse.org/request/show/885731 OBS-URL: https://build.opensuse.org/package/show/X11:common:Factory/awf-gtk4?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + awf-gtk4-2.3.0.tar.gz | 3 ++ awf-gtk4.changes | 4 ++ awf-gtk4.spec | 85 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 116 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 awf-gtk4-2.3.0.tar.gz create mode 100644 awf-gtk4.changes create mode 100644 awf-gtk4.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/awf-gtk4-2.3.0.tar.gz b/awf-gtk4-2.3.0.tar.gz new file mode 100644 index 0000000..4fabc7b --- /dev/null +++ b/awf-gtk4-2.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:731a317dbc1bffc6b8a842de15c777d81c5d80b4c58706c41af781e4d83f04bf +size 379125 diff --git a/awf-gtk4.changes b/awf-gtk4.changes new file mode 100644 index 0000000..fc71d61 --- /dev/null +++ b/awf-gtk4.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Apr 6 14:35:02 UTC 2021 - Fabrice Creuzot + +- Initial opensuse package release diff --git a/awf-gtk4.spec b/awf-gtk4.spec new file mode 100644 index 0000000..33dec41 --- /dev/null +++ b/awf-gtk4.spec @@ -0,0 +1,85 @@ +# +# spec file for package awf-gtk4 +# +# Copyright (c) 2021 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: awf-gtk4 +Version: 2.3.0 +Release: 0 +Summary: Theme preview application for GTK +Summary(fr): Application d'aperçu de thème pour GTK +License: GPL-3.0-or-later +URL: https://github.com/luigifab/awf-extended +Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz +BuildRequires: aspell-fr +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: desktop-file-utils +BuildRequires: gcc +BuildRequires: gettext +BuildRequires: gtk4-devel +Requires: gtk4 +Requires: hicolor-icon-theme + +%description %{expand: +A widget factory is a theme preview application for GTK. It displays the +various widget types provided by GTK in a single window allowing to see +the visual effect of the applied theme. + +This package provides the gtk4 version.} + +%description -l fr %{expand: +La fabrique à widgets est une application d'aperçu de thème pour GTK. Elle +affiche les différents types de widgets fournis par GTK dans une seule +fenêtre permettant de voir l'effet visuel du thème appliqué. + +Ce paquet fournit la version gtk4.} + +%prep +%setup -q -n awf-extended-%{version} +sed -i 's/ -eq 2/ -eq -1/g' configure.ac +sed -i 's/ -eq 3/ -eq -1/g' configure.ac +touch {NEWS,AUTHORS,README,ChangeLog} +mv LICENSE COPYING + +%build +autoreconf -f -i +%configure +%make_build + +%install +%make_install +mkdir -p %{buildroot}%{_datadir}/applications/ +mkdir -p %{buildroot}%{_datadir}/icons/hicolor/ +for file in icons/*/*/*; do mv $file ${file/\/awf./\/%{name}.}; done +cp -a icons/* %{buildroot}%{_datadir}/icons/hicolor/ +for file in src/po/*.po; do + code=$(basename "$file" .po) + mkdir -p %{buildroot}%{_datadir}/locale/${code}/LC_MESSAGES/ + msgfmt src/po/${code}.po -o %{buildroot}%{_datadir}/locale/${code}/LC_MESSAGES/%{name}.mo +done +desktop-file-install --dir=%{buildroot}%{_datadir}/applications/ applications/%{name}.desktop +%find_lang %{name} + +%files -f %{name}.lang +%license COPYING +%doc README.md +%{_bindir}/%{name} +%{_datadir}/applications/%{name}.desktop +%{_datadir}/icons/hicolor/*/apps/%{name}.png +%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg + +%changelog