Hello community,

here is the log from the commit of package whohas for openSUSE:Factory
checked in at Mon Jul 25 17:39:23 CEST 2011.



--------
New Changes file:

--- /dev/null   2010-08-26 16:28:41.000000000 +0200
+++ whohas/whohas.changes       2010-12-27 00:06:43.000000000 +0100
@@ -0,0 +1,42 @@
+-------------------------------------------------------------------
+Sun Dec 26 23:06:14 UTC 2010 - saigk...@opensuse.org
+
+- prettyfied the spec file 
+
+-------------------------------------------------------------------
+Tue Nov 16 10:50:07 CET 2010 - p...@suse.de
+
+- Add a Makefile to do the install.
+
+-------------------------------------------------------------------
+Mon Nov 15 08:54:17 UTC 2010 - saigk...@opensuse.org
+
+- Updated patch. Thanks to Malcolm. 
+
+-------------------------------------------------------------------
+Sun Nov 14 20:04:33 UTC 2010 - saigk...@opensuse.org
+
+- Removed the Patch, and added a new. This fixes both. The openSUSE
+Release is up to 11.3 and fixed the search URL. 
+
+-------------------------------------------------------------------
+Sun Nov 14 19:09:17 UTC 2010 - saigk...@opensuse.org
+
+- added Patch that uses 11.3 instead of 11.2 as search term 
+
+-------------------------------------------------------------------
+Sun Nov 14 15:54:24 UTC 2010 - saigk...@opensuse.org
+
+- removed finding binary and chmod
+
+-------------------------------------------------------------------
+Sun Nov 14 15:39:54 UTC 2010 - saigk...@opensuse.org
+
+- changed binary chmod from 744 to 644 
+
+-------------------------------------------------------------------
+Sun Nov 14 15:25:55 UTC 2010 - saigk...@opensuse.org
+
+- ported whohas for openSUSE
+- Initialversion 0.24 
+

calling whatdependson for head-i586


New:
----
  whohas-0.24.tar.bz2
  whohas-fix_install.patch
  whohas-opensuse-fix.patch
  whohas.changes
  whohas.spec

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

Other differences:
------------------
++++++ whohas.spec ++++++
#
# spec file for package whohas
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2010 Sascha Manns <saigk...@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           whohas
Version:        0.24
Release:        1
License:        GPLv2 or later
Summary:        Package list querying tool
Url:            http://www.philippwesche.org/200811/whohas/intro.html
Group:          System/Console
Source:         %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM -- saigk...@opensuse.org Fixed some minor things like the 
search URL of openSUSE Server
Patch0:         whohas-opensuse-fix.patch
# PATCH-FIX-OPENSUSE -- p...@suse.de - Added a Makefile for Installation.
Patch1:         whohas-fix_install.patch
Requires:       find
Requires:       perl = %{perl_version}
Requires:       perl-DateTime
Requires:       perl-libwww-perl
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
whohas is a command line tool that allows querying several package lists at 
once - currently
supported are Arch, Debian, Fedora, Gentoo, Mandriva, openSUSE, Slackware (and 
linuxpackages.net),
Source Mage, Ubuntu, FreeBSD, NetBSD, OpenBSD, Fink, MacPorts and Cygwin. 
whohas is written in
Perl and was designed to help package maintainers find ebuilds, pkgbuilds and 
similar package
definitions from other distributions to learn from. However, it can also be 
used by normal
users who want to know:

    * Which distribution provides packages on which the user depends.
    * What version of a given package is in use in each distribution, or in 
each release of a
      distribution (implemented only for Debian).

%prep
%setup -q
%patch0 -p1
%patch1

%__chmod go+rx html_assets
%__chmod -R 644 Changelog INSTALL LICENSE intro.html intro.txt html_assets/*

%build

%install
# install binary
# INFO: From line 52 on you will find the searchable repositories. If you would 
like to
#       change them, just edit these lines.
%makeinstall

%clean
%__rm -rf %{buildroot}

%files
%attr(0755,root,root) %{_bindir}/%{name}
%defattr(-,root,root)
%dir %{_mandir}/de/man1
%{_mandir}/man1/%{name}.1.gz
%{_mandir}/de/man1/%{name}.1.gz
%doc Changelog INSTALL LICENSE intro.html intro.txt html_assets/

%changelog
++++++ whohas-fix_install.patch ++++++
Index: Makefile
===================================================================
--- /dev/null   1970-01-01 00:00:00.000000000 +0000
+++ Makefile    2010-11-16 10:48:32.491688376 +0100
@@ -0,0 +1,19 @@
+prefix  = /usr
+bindir  = $(prefix)/bin
+datadir = $(prefix)/share
+mandir  = $(datadir)/man
+
+DESTDIR =
+
+all: install
+
+install:
+       mkdir -p $(DESTDIR)$(bindir)/
+       mkdir -p $(DESTDIR)$(mandir)/man1/
+       mkdir -p $(DESTDIR)$(mandir)/de/man1/
+       cp program/whohas $(DESTDIR)$(bindir)/
+       chmod 755  $(DESTDIR)$(bindir)/whohas
+       cp usr/share/man/man1/whohas.1 $(DESTDIR)$(mandir)/man1/
+       chmod 644 $(DESTDIR)$(mandir)/man1/whohas.1
+       cp usr/share/man/de/man1/whohas.1 $(DESTDIR)$(mandir)/de/man1/
+       chmod 644 $(DESTDIR)$(mandir)/de/man1/whohas.1
++++++ whohas-opensuse-fix.patch ++++++
Index: whohas-0.24/program/whohas
===================================================================
--- whohas-0.24.orig/program/whohas
+++ whohas-0.24/program/whohas
@@ -52,7 +52,7 @@ my $fedora_release             =  12                  ;
 my $ubuntu_current_release      = "karmic"             ;
 #my $opensuse_rel_string               = "112"         ;
 my $opensuse_major              = "11"                 ;
-my $opensuse_minor              = "2"                  ;
+my $opensuse_minor              = "3"                  ;
 my $mandrivaVersion             = "2010.0"             ;
 my $openbsd_release             = "4.6"                ;
 my $slackware_version_for_lp_net = "13.0"              ;
@@ -1220,7 +1220,7 @@ sub opensuse {
        my $release_string = $opensuse_major.'.'.$opensuse_minor;
        my $major = $opensuse_major;
        my $minor = $opensuse_minor;
-       my $opensusebase = "http://software.opensuse.org/search/search/";;
+       my $opensusebase = "http://software.opensuse.org/search/";;
        my @names;
        my @repos;
        my @groups;
@@ -1235,7 +1235,7 @@ sub opensuse {
                if ($lines[$i] =~ /div class="search_o_title"/) {
                        push @names, (split /<\/?h3>/, $lines[($i+2)])[1];
                        for (my $a = $i+1; $a < $i + 20; $a++) {
-                               if ($lines[$a] =~ /<h4><a class="blue_over" 
href=/) {
+                               if ($lines[$a] =~ /class="blue_over"/) {
                                        my @temps = split /\"\>|\<\/a\>/, 
$lines[$a];
                                        $temps[1] =~ 
s/\/openSUSE_$major\.$minor$//;
                                        $temps[1] =~ 
s/^openSUSE\:$major\.$minor\///;
@@ -1246,7 +1246,7 @@ sub opensuse {
                                }
                        }
                        for (my $a = $i + 10; $a < $i + 50; $a++) {
-                               if ($lines[$a] =~ /a style="margin-right: 2em"  
href/) {
+                               if ($lines[$a] =~ /a style="margin-right: 
1.2em"/) {
                                        my @parts = split /\"\>|\<\/a\>/, 
$lines[$a];
                                        my @segments = split /\-/, $parts[1];
                                        push @versions, 
$segments[(@segments-2)];

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



Remember to have fun...

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to