commit 8a464c20db4a696d82932a1b7403514c46055804
Author: Ankur Sinha (Ankur Sinha Gmail) <sanjay.ankur(a)gmail.com>
Date: Mon Nov 13 13:46:05 2017 +0000
Update appdata
.gitignore | 3 ++
rpmfusion-free-appstream-data.spec | 18 ++++-------
sources | 4 +--
update-appdata-rpmfusion-free.sh | 61 ++++++++++++++++++++++++++++++++++++++
4 files changed, 71 insertions(+), 15 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 1d3056f..31a4a5d 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-27-icons.tar.gz
+/rpmfusion-free-27.xml.gz
+tags
diff --git a/rpmfusion-free-appstream-data.spec b/rpmfusion-free-appstream-data.spec
index c3226a5..89ef72e 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: 27
Release: 1%{?dist}
Summary: Appstream metadata for the RPM Fusion free repository
BuildArch: noarch
@@ -10,20 +10,9 @@ 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
+Source2: update-appdata-rpmfusion-free.sh
BuildRequires: libappstream-glib
Supplements: appstream-data
@@ -50,6 +39,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> - 27-1
+- update appdata
+
* 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..06a2c2e 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-27-icons.tar.gz
+0e23b509f70afce76c61218efc39847f rpmfusion-free-27.xml.gz
diff --git a/update-appdata-rpmfusion-free.sh b/update-appdata-rpmfusion-free.sh
new file mode 100755
index 0000000..4ae1744
--- /dev/null
+++ b/update-appdata-rpmfusion-free.sh
@@ -0,0 +1,61 @@
+#!/bin/bash
+RELEASE=""
+URL=""
+
+main ()
+{
+ mkdir rpmfusion-free/ -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