$ git show --format=fuller --patch-with-stat --summary f3e60abc2d668adb2e8c6a012f775073f37c1b99
commit f3e60abc2d668adb2e8c6a012f775073f37c1b99
Author: mandian <mandian@users.noreply.github.com>
AuthorDate: Wed Dec 6 23:28:10 2023 +0000
Commit: mandian <mandian@users.noreply.github.com>
CommitDate: Wed Dec 6 23:28:10 2023 +0000
use modern macros
---
.abf.yml | 2 +-
lxde-icon-theme.spec | 38 ++++++++++++++++++++++++++------------
2 files changed, 27 insertions(+), 13 deletions(-)
diff --git a/.abf.yml b/.abf.yml
index 759687a..b67da54 100644
--- a/.abf.yml
+++ b/.abf.yml
@@ -1,2 +1,2 @@
sources:
- lxde-icon-theme-0.5.1.tar.xz: 643029acac6864ee04cf409af0c825085f545cec
+ lxde-icon-theme-0.5.1.tar.gz: c621d700e4260759617277a58f9d8d9489c24a04
diff --git a/lxde-icon-theme.spec b/lxde-icon-theme.spec
index c9cece4..dc6837e 100644
--- a/lxde-icon-theme.spec
+++ b/lxde-icon-theme.spec
@@ -1,26 +1,26 @@
+# git snapshot
+#global snapshot 1
+%if 0%{?snapshot}
+ %global commit a1ceb9979f8f55cf48dc59a161c77162b968a915
+ %global commitdate 20140910
+ %global shortcommit %(c=%{commit}; echo ${c:0:7})
+%endif
+
Summary: LXDE icon theme
Name: lxde-icon-theme
Version: 0.5.1
-Release: 3
+Release: 4
License: LGPLv2+
Group: Graphical desktop/Other
URL: http://www.lxde.org
-Source0: https://sourceforge.net/projects/lxde/files/LXDE%20Icon%20Theme/lxde-icon-theme-%{version}/%{name}-%{version}.tar.xz
+#Source0: https://sourceforge.net/projects/lxde/files/LXDE%20Icon%20Theme/lxde-icon-theme-%{version}/%{name}-%{version}.tar.xz
+Source0: https://github.com/lxde/%{name}/archive/%{?snapshot:%{commit}}%{!?snapshot:%{version}}/%{name}-%{?snapshot:%{commit}}%{!?snapshot:%{version}}.tar.gz
+
BuildArch: noarch
%description
This package contains nuoveXT2 icon theme for LXDE.
-%prep
-%setup -q
-find -name .gitignore -delete
-
-%build
-%configure
-
-%install
-%make_install
-
%files
%dir %{_iconsdir}/nuoveXT2
%dir %{_iconsdir}/nuoveXT2/??*x*
@@ -30,3 +30,17 @@ find -name .gitignore -delete
%{_iconsdir}/nuoveXT2/extra/*.png
%{_iconsdir}/nuoveXT2/index.theme
%ghost %{_iconsdir}/nuoveXT2/icon-theme.cache
+
+#----------------------------------------------------------------------
+
+%prep
+%autosetup -p1 -n %{name}-%{?snapshot:%{commit}}%{!?snapshot:%{version}}
+
+%build
+autoreconf -fiv
+%configure
+%make_build
+
+%install
+%make_install
+