commit b97931af530bd7b980b201dacd6d759ed9c58693
Author: Ankur Sinha (Ankur Sinha Gmail) <sanjay.ankur(a)gmail.com>
Date: Mon Nov 13 13:48:47 2017 +0000
Update and regenerate
.gitignore | 3 ++
rpmfusion-nonfree-appstream-data.spec | 21 ++++--------
sources | 4 +--
update-appdata-rpmfusion-nonfree.sh | 61 +++++++++++++++++++++++++++++++++++
4 files changed, 72 insertions(+), 17 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 2a44487..236739c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,6 @@
/rpmfusion-nonfree-25.xml.gz
/rpmfusion-nonfree-26-icons.tar.gz
/rpmfusion-nonfree-26.xml.gz
+tags
+/rpmfusion-nonfree-27-icons.tar.gz
+/rpmfusion-nonfree-27.xml.gz
diff --git a/rpmfusion-nonfree-appstream-data.spec
b/rpmfusion-nonfree-appstream-data.spec
index 41b3d78..e39b7b7 100644
--- a/rpmfusion-nonfree-appstream-data.spec
+++ b/rpmfusion-nonfree-appstream-data.spec
@@ -2,29 +2,17 @@
%global repoversion nonfree
Name: %{reponame}-%{repoversion}-appstream-data
-Version: 26
-Release: 2%{?dist}
+Version: 27
+Release: 1%{?dist}
Summary: Appstream metadata for the RPM Fusion nonfree repository
BuildArch: noarch
License: CC0
URL:
http://rpmfusion.org
-# mkdir rpmfusion-free
-
-# cd rpmfusion-free
-# rsync -avPh
rsync://rsync.mirrorservice.org/download1.rpmfusion.org/nonfree/fedora/de...
.
-# rm -rf repo*
-
-# appstream-builder --verbose --max-threads=6 --log-dir=./logs/ \
-# --packages-dir=./Packages/ --temp-dir=./tmp/ --output-dir=./appstream-data/ \
-# --basename="rpmfusion-nonfree-26" --origin="rpmfusion-nonfree-26"
\
-# --enable-hidpi
-
-# cp appstream-data/* ~/rpmbuild/SOURCES/
Source0: %{reponame}-%{repoversion}-%{version}.xml.gz
Source1: %{reponame}-%{repoversion}-%{version}-icons.tar.gz
-#Source2: %{reponame}-%{repoversion}-%{version}-screenshots.tar
+Source2: update-appdata-rpmfusion-free.sh
BuildRequires: libappstream-glib
Supplements: appstream-data
@@ -51,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
+
* Sun Jul 09 2017 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 26-2
- Regenerate and update
diff --git a/sources b/sources
index 7ab9bf7..c1014ab 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-ec5b2cc46c9aad73ebd5f9c9ea867696 rpmfusion-nonfree-26-icons.tar.gz
-2f4b565f5dfcbc52acb5c251fdaa92d8 rpmfusion-nonfree-26.xml.gz
+45023594a95619a86b6967ef16a3b455 rpmfusion-nonfree-27-icons.tar.gz
+2a4beacd25dfc2ddec741f9b321e8337 rpmfusion-nonfree-27.xml.gz
diff --git a/update-appdata-rpmfusion-nonfree.sh b/update-appdata-rpmfusion-nonfree.sh
new file mode 100755
index 0000000..45f1811
--- /dev/null
+++ b/update-appdata-rpmfusion-nonfree.sh
@@ -0,0 +1,61 @@
+#!/bin/bash
+RELEASE=""
+URL=""
+
+main ()
+{
+ mkdir rpmfusion-nonfree/ -pv
+ cd rpmfusion-nonfree
+#
+ if [ "$RELEASE" = "28" ]; then
+
URL="rsync://rsync.mirrorservice.org/download1.rpmfusion.org/nonfree...
+ elif [ "$RELEASE" = "27" ]; then
+
URL="rsync://rsync.mirrorservice.org/download1.rpmfusion.org/nonfree...
+ elif [ "$RELEASE" = "26" ]; then
+
URL="rsync://rsync.mirrorservice.org/download1.rpmfusion.org/nonfree...
+
+ 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-nonfree-$RELEASE"
--origin="rpmfusion-nonfree-$RELEASE" \
+ --enable-hidpi
+
+ echo "Generated files are present in the appstream-data directory"
+}
+
+usage ()
+{
+ echo "$0 -r <release>"
+ echo "- update appdata for rpmfusion nonfree 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