commit 79c9c1489d57a6d2d98d919460b0db7b1627391a
Author: Ankur Sinha (Ankur Sinha Gmail) <sanjay.ankur(a)gmail.com>
Date: Mon Nov 13 13:24:10 2017 +0000
Update appdata
.gitignore | 3 ++
rpmfusion-free-appstream-data.spec | 19 ++++--------
sources | 4 +--
update-appdata-rpmfusion-free.sh | 61 ++++++++++++++++++++++++++++++++++++++
4 files changed, 72 insertions(+), 15 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 1d3056f..c822378 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,6 @@
/rpmfusion-free-25.xml.gz
/rpmfusion-free-26-icons.tar.gz
/rpmfusion-free-26.xml.gz
+/rpmfusion-free-28-icons.tar.gz
+/rpmfusion-free-28.xml.gz
+tags
diff --git a/rpmfusion-free-appstream-data.spec b/rpmfusion-free-appstream-data.spec
index c3226a5..5c3c97b 100644
--- a/rpmfusion-free-appstream-data.spec
+++ b/rpmfusion-free-appstream-data.spec
@@ -2,7 +2,7 @@
%global repoversion free
Name: %{reponame}-%{repoversion}-appstream-data
-Version: 26
+Version: 28
Release: 1%{?dist}
Summary: Appstream metadata for the RPM Fusion free repository
BuildArch: noarch
@@ -10,20 +10,10 @@ BuildArch: noarch
License: CC0
URL:
http://rpmfusion.org
-# mkdir rpmfusion-free/packages -p
-
-# cd rpmfusion-free
-# rsync -avPh
rsync://rsync.mirrorservice.org/download1.rpmfusion.org/free/fedora/devel...
.
-# rm -rf repo*
-
-# appstream-builder --verbose --max-threads=6 --log-dir=./logs/ \
-# --packages-dir=./Packages/ --temp-dir=./tmp/ --output-dir=./appstream-data/ \
-# --basename="rpmfusion-free-26" --origin="rpmfusion-free-26" \
-# --enable-hidpi
-
-# cp appstream-data/* ~/rpmbuild/SOURCES/
Source0: %{reponame}-%{repoversion}-%{version}.xml.gz
Source1: %{reponame}-%{repoversion}-%{version}-icons.tar.gz
+# script to generate appdata
+Source2: update-appdata-rpmfusion-free.sh
BuildRequires: libappstream-glib
Supplements: appstream-data
@@ -50,6 +40,9 @@ DESTDIR=%{buildroot} appstream-util install %{SOURCE0} %{SOURCE1}
%dir %{_datadir}/app-info/xmls
%changelog
+* Mon Nov 13 2017 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 28-1
+- Update for rawhide
+
* Mon Nov 14 2016 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 26-1
- Regenerate and update for f26
diff --git a/sources b/sources
index e50f08f..7609148 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-39ea9d69467d73d17f5e583e60487948 rpmfusion-free-26-icons.tar.gz
-8f95ceaf2c6a2df5d45d6aacc79a8b74 rpmfusion-free-26.xml.gz
+4169c00d551918883d58d892adb0464a rpmfusion-free-28-icons.tar.gz
+980d13e06e0ef2bac7e7d4592b667553 rpmfusion-free-28.xml.gz
diff --git a/update-appdata-rpmfusion-free.sh b/update-appdata-rpmfusion-free.sh
new file mode 100755
index 0000000..ac56f26
--- /dev/null
+++ b/update-appdata-rpmfusion-free.sh
@@ -0,0 +1,61 @@
+#!/bin/bash
+RELEASE=""
+URL=""
+
+main ()
+{
+ mkdir rpmfusion-free/packages -pv
+ cd rpmfusion-free
+
+ if [ "$RELEASE" = "28" ]; then
+
URL="rsync://rsync.mirrorservice.org/download1.rpmfusion.org/free/fe...
+ elif [ "$RELEASE" = "27" ]; then
+
URL="rsync://rsync.mirrorservice.org/download1.rpmfusion.org/free/fe...
+ elif [ "$RELEASE" = "26" ]; then
+
URL="rsync://rsync.mirrorservice.org/download1.rpmfusion.org/free/fe...
+
+ fi
+
+ rsync -avPh "$URL" .
+ rm -rf repo*
+#
+ appstream-builder --verbose --max-threads=6 --log-dir=./logs/ \
+ --packages-dir=./Packages/ --temp-dir=./tmp/ --output-dir=./appstream-data/ \
+ --basename="rpmfusion-free-$RELEASE"
--origin="rpmfusion-free-$RELEASE" \
+ --enable-hidpi
+
+ echo "Generated files are present in the appstream-data directory"
+}
+
+usage ()
+{
+ echo "$0 -r <release>"
+ echo "- update appdata for rpmfusion free repository"
+ echo "options:"
+ echo "-r <release> one of 26, 27, and 28"
+}
+
+
+if [ "$#" -eq 0 ]; then
+ usage
+ exit 0
+fi
+
+# parse options
+while getopts "r:h" OPTION
+do
+ case $OPTION in
+ r)
+ RELEASE=$OPTARG
+ main
+ ;;
+ h)
+ usage
+ exit 1
+ ;;
+ ?)
+ usage
+ exit 1
+ ;;
+ esac
+done