Hello community,

here is the log from the commit of package opi for openSUSE:Factory checked in 
at 2020-10-05 19:41:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/opi (Old)
 and      /work/SRC/openSUSE:Factory/.opi.new.4249 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "opi"

Mon Oct  5 19:41:30 2020 rev:14 rq:839334 version:0.9.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/opi/opi.changes  2020-07-27 17:45:59.743315021 
+0200
+++ /work/SRC/openSUSE:Factory/.opi.new.4249/opi.changes        2020-10-05 
19:43:07.729786573 +0200
@@ -1,0 +2,10 @@
+Sat Oct  3 14:06:15 UTC 2020 - Yunhe Guo <i...@guoyunhe.me>
+
+- Version 0.9.0
+  * Added
+    - Help (-h, --help) and version (-v, --version) option
+  * Changed
+    - Filter out -devel, -docs and -lang packages
+    - Don't show i586 packages on x86_64 system
+
+-------------------------------------------------------------------

Old:
----
  opi-0.8.3.tar.gz

New:
----
  opi-0.9.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ opi.spec ++++++
--- /var/tmp/diff_new_pack.0qufXf/_old  2020-10-05 19:43:08.237787069 +0200
+++ /var/tmp/diff_new_pack.0qufXf/_new  2020-10-05 19:43:08.241787073 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           opi
-Version:        0.8.3
+Version:        0.9.0
 Release:        0
 Summary:        OBS Package Installer (CLI)
 License:        GPL-3.0-only
@@ -25,6 +25,13 @@
 URL:            https://github.com/openSUSE/%{name}
 Source0:        
https://github.com/openSUSE/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
 BuildArch:      noarch
+BuildRequires:  help2man
+BuildRequires:  perl
+BuildRequires:  perl(Config::Tiny)
+BuildRequires:  perl(LWP)
+BuildRequires:  perl(LWP::Protocol::https)
+BuildRequires:  perl(URI)
+BuildRequires:  perl(XML::LibXML)
 Requires:       perl
 Requires:       perl(Config::Tiny)
 Requires:       perl(LWP)
@@ -39,14 +46,25 @@
 %setup -q
 
 %build
+help2man ./opi > opi.8.gz
+gzip opi.8.gz
 
 %install
 mkdir -p %{buildroot}%{_bindir}
 install %{name} %{buildroot}%{_bindir}
+mkdir -p %{buildroot}%{_datadir}/metadata
+cp org.openSUSE.opi.appdata.xml %{buildroot}%{_datadir}/metadata
+mkdir -p %{buildroot}%{_datadir}/man/man8
+cp opi.8.gz %{buildroot}%{_datadir}/man/man8
 
 %files
 %license LICENSE
 %doc README.md screenshot.png
 %{_bindir}/%{name}
+%dir %{_datadir}/metadata
+%{_datadir}/metadata/org.openSUSE.opi.appdata.xml
+%dir %{_datadir}/man
+%dir %{_datadir}/man/man8
+%{_datadir}/man/man8/opi.8.gz
 
 %changelog

++++++ opi-0.8.3.tar.gz -> opi-0.9.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.8.3/CHANGELOG.md new/opi-0.9.0/CHANGELOG.md
--- old/opi-0.8.3/CHANGELOG.md  2020-07-25 14:23:24.000000000 +0200
+++ new/opi-0.9.0/CHANGELOG.md  2020-10-03 15:48:17.000000000 +0200
@@ -7,6 +7,17 @@
 
 ## [Unreleased]
 
+## [0.9.0]
+
+### Added
+
+- Help (-h, --help) and version (-v, --version) option
+
+### Changed
+
+- Filter out -devel, -docs and -lang packages 
[#30](https://github.com/openSUSE/opi/pulls/27)
+- Don't show i586 packages on x86_64 system
+
 ## [0.8.3] - 2020-07-25
 
 ### Fixed
@@ -135,7 +146,8 @@
 - Choose package and install
 - Keep or remove repository after installation
 
-[Unreleased]: https://github.com/openSUSE/opi/compare/v0.8.3...HEAD
+[Unreleased]: https://github.com/openSUSE/opi/compare/v0.9.0...HEAD
+[0.9.0]: https://github.com/openSUSE/opi/compare/v0.8.3...v0.9.0
 [0.8.3]: https://github.com/openSUSE/opi/compare/v0.8.2...v0.8.3
 [0.8.2]: https://github.com/openSUSE/opi/compare/v0.8.1...v0.8.2
 [0.8.1]: https://github.com/openSUSE/opi/compare/v0.8.0...v0.8.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.8.3/opi new/opi-0.9.0/opi
--- old/opi-0.8.3/opi   2020-07-25 14:23:24.000000000 +0200
+++ new/opi-0.9.0/opi   2020-10-03 15:48:17.000000000 +0200
@@ -16,15 +16,38 @@
 use Term::ANSIColor;
 use File::Temp;
 
+my $version_number = '0.9.0';
+
+my $help_text = <<'END_HELP';
+
+Usage:
+    opi [OPTION]... KEYWORDS...
+
+Options:
+    -h, --help      Show help text.
+    -v, --version   Show version number.
+
+END_HELP
+
 #
 # Check command line arguments
 #
 unless (scalar @ARGV) {
-    print "Please specify query keywords. For example:\n";
-    print "\topi pcsx2\n";
+    print $help_text;
     exit 1;
 }
 
+if ($ARGV[0] eq '--help' || $ARGV[0] eq '-h') {
+    print $help_text;
+    exit;
+}
+
+if ($ARGV[0] eq '--version' || $ARGV[0] eq '-v') {
+    print $version_number . "\n";
+    exit;
+}
+
+
 #
 # Check for packages not from OBS
 #
@@ -349,12 +372,8 @@
                 next;
             }
 
-            # Filter out debuginfo, debugsource, buildsymbols packages
-            if ( substr($binary_data{'name'}, -10) eq '-debuginfo' ) {
-                next;
-            } elsif ( substr($binary_data{'name'}, -12) eq '-debugsource' ) {
-                next;
-            } elsif ( substr($binary_data{'name'}, -13) eq '-buildsymbols' ) {
+            # Filter out debuginfo, debugsource, devel, buildsymbols, lang and 
docs packages
+            if ( $binary_data{'name'} =~ 
/-(debuginfo|debugsource|buildsymbols|devel|lang|l10n|trans|doc|docs)(-.+)?$/m 
) {
                 next;
             }
 
@@ -365,9 +384,7 @@
 
             # Filter architecture
             unless ( $binary_data{'arch'} eq $arch || $binary_data{'arch'} eq 
'noarch') {
-                unless ( $binary_data{'arch'} eq 'i586' && $arch eq 'x86_64' ) 
{
-                    next;
-                }
+                next;
             }
 
             push @collection, \%binary_data;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opi-0.8.3/org.openSUSE.opi.appdata.xml 
new/opi-0.9.0/org.openSUSE.opi.appdata.xml
--- old/opi-0.8.3/org.openSUSE.opi.appdata.xml  1970-01-01 01:00:00.000000000 
+0100
+++ new/opi-0.9.0/org.openSUSE.opi.appdata.xml  2020-10-03 15:48:17.000000000 
+0200
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="console-application">
+  <id>org.openSUSE.opi</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>OPI</name>
+  <summary>openSUSE Package Installer</summary>
+  <description>
+    <p>
+      Search and install almost all packages available for openSUSE and SLE:
+    </p>
+    <ol>
+        <li>openSUSE Build Service</li>
+        <li>Packman Build Service</li>
+    </ol>
+  </description>
+  <url type="homepage">https://github.com/openSUSE/opi</url>
+  <url type="bugtracker">https://github.com/openSUSE/opi/issues</url>
+  <url type="donation">https://www.patreon.com/guoyunhe/creators</url>
+  <url type="help">https://github.com/openSUSE/opi</url>
+</component>


Reply via email to