Hello community,
here is the log from the commit of package qt3 for openSUSE:Factory
checked in at Mon Nov 23 14:30:44 CET 2009.
--------
--- KDE/qt3/qt3.changes 2009-11-03 20:22:13.000000000 +0100
+++ /mounts/work_src_done/STABLE/qt3/qt3.changes 2009-11-13 14:29:22.000000000 +0100
@@ -1,0 +2,5 @@
+Fri Nov 13 14:28:47 CET 2009 - dmueller@suse.de
+
+- fix patches to apply with fuzz=0
+
+-------------------------------------------------------------------
qt3-devel-doc.changes: same change
qt3-extensions.changes: same change
calling whatdependson for head-i586
New:
----
attributes
update_spec.pl
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ qt3-devel-doc.spec ++++++
--- /var/tmp/diff_new_pack.3OvW7E/_old 2009-11-23 14:29:32.000000000 +0100
+++ /var/tmp/diff_new_pack.3OvW7E/_new 2009-11-23 14:29:32.000000000 +0100
@@ -21,12 +21,12 @@
Name: qt3-devel-doc
BuildRequires: cups-devel freeglut-devel freetype2-devel gcc-c++ libjpeg-devel libmng-devel libpng-devel pkgconfig qt3-devel update-desktop-files
Url: http://www.trolltech.com/
-License: GPL v2 only ; GPL v3 only ; QPL ..
+License: GPL, QPL
AutoReqProv: on
-Summary: Qt 3 Development Kit
+Summary: Documentation for the Qt 3 Development Kit
Group: Documentation/HTML
Version: 3.3.8b
-Release: 93
+Release: 94
PreReq: /bin/grep
BuildArch: noarch
Provides: qt3-devel-tutorial
@@ -107,65 +107,15 @@
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
-Qt is a program library for developing applications with graphical user
-interfaces. It allows you to rapidly develop professional programs. The
-Qt library is available not only for Linux but for a great number of
-Unices and even for Windows. Thus it is possible to write programs that
-may be easily ported to those platforms.
+This package contains the documentation for the Qt 3 Development Kit.
-You need a license for using Qt with a non-GPL application, which can
-be acquired from sales@trolltech.com.
+You will find documentation, precompiled examples, and a tutorial for
+getting started with Qt in /usr/lib/qt3/doc.
-See /usr/share/doc/packages/qt3 for details about the new features of
-the current Qt library!
-
-
-
-Authors:
---------
- Troll Tech AS, Norway
-
-You need this package if you want to compile programs with Qt 3. It
-contains the "Qt Crossplatform Development Kit 2". You will find
-include files, documentation, precompiled examples, and a tutorial for
-getting started with Qt in /usr/lib/qt3.
-
-
-
-Authors:
---------
- Troll Tech AS, Norway
-
-
-Qt is a program library for developing applications with graphical user
-interfaces. It allows you to rapidly develop professional programs. The
-Qt library is available not only for Linux but for a great number of
-Unices and even for Windows. Thus it is possible to write programs that
-may be easily ported to those platforms.
-
-You need a license for using Qt with a non-GPL application, which can
-be acquired from sales@trolltech.com.
-
-See /usr/share/doc/packages/qt3 for details about the new features of
-the current Qt library!
-
-
-
-Authors:
---------
- Troll Tech AS, Norway
-
-You need this package if you want to compile programs with Qt 3. It
-contains the "Qt Crossplatform Development Kit 2". You will find
-include files, documentation, precompiled examples, and a tutorial for
-getting started with Qt in /usr/lib/qt3.
-
-
-
-Authors:
---------
- Troll Tech AS, Norway
+This package contains the documentation for the Qt 3 Development Kit.
+You will find documentation, precompiled examples, and a tutorial for
+getting started with Qt in /usr/lib/qt3/doc.
%define build_sub_dirs src plugins/src tools/designer/uilib/ tools/designer/uic tools/qtconfig tools/assistant/lib tools/assistant tutorial
@@ -242,65 +192,15 @@
# COMMON-END
%description
-Qt is a program library for developing applications with graphical user
-interfaces. It allows you to rapidly develop professional programs. The
-Qt library is available not only for Linux but for a great number of
-Unices and even for Windows. Thus it is possible to write programs that
-may be easily ported to those platforms.
-
-You need a license for using Qt with a non-GPL application, which can
-be acquired from sales@trolltech.com.
-
-See /usr/share/doc/packages/qt3 for details about the new features of
-the current Qt library!
-
-
-
-Authors:
---------
- Troll Tech AS, Norway
-
-You need this package if you want to compile programs with Qt 3. It
-contains the "Qt Crossplatform Development Kit 2". You will find
-include files, documentation, precompiled examples, and a tutorial for
-getting started with Qt in /usr/lib/qt3.
-
-
-
-Authors:
---------
- Troll Tech AS, Norway
-
-
-Qt is a program library for developing applications with graphical user
-interfaces. It allows you to rapidly develop professional programs. The
-Qt library is available not only for Linux but for a great number of
-Unices and even for Windows. Thus it is possible to write programs that
-may be easily ported to those platforms.
-
-You need a license for using Qt with a non-GPL application, which can
-be acquired from sales@trolltech.com.
-
-See /usr/share/doc/packages/qt3 for details about the new features of
-the current Qt library!
-
-
-
-Authors:
---------
- Troll Tech AS, Norway
-
-You need this package if you want to compile programs with Qt 3. It
-contains the "Qt Crossplatform Development Kit 2". You will find
-include files, documentation, precompiled examples, and a tutorial for
-getting started with Qt in /usr/lib/qt3.
-
+This package contains the documentation for the Qt 3 Development Kit.
+You will find documentation, precompiled examples, and a tutorial for
+getting started with Qt in /usr/lib/qt3/doc.
-Authors:
---------
- Troll Tech AS, Norway
+This package contains the documentation for the Qt 3 Development Kit.
+You will find documentation, precompiled examples, and a tutorial for
+getting started with Qt in /usr/lib/qt3/doc.
%build
export VERSION=%suse_version
++++++ qt3-extensions.spec ++++++
--- /var/tmp/diff_new_pack.3OvW7E/_old 2009-11-23 14:29:32.000000000 +0100
+++ /var/tmp/diff_new_pack.3OvW7E/_new 2009-11-23 14:29:32.000000000 +0100
@@ -23,9 +23,9 @@
%if %suse_version > 1020
BuildRequires: fdupes
%endif
-License: GPL v2 only ; GPL v3 only ; QPL ..
+License: GPL, QPL
Version: 3.3.8b
-Release: 96
+Release: 97
AutoReqProv: on
Requires: qt3 = %version
Group: Development/Tools/Other
@@ -105,45 +105,11 @@
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
-Qt is a program library for developing applications with graphical user
-interfaces. It allows you to rapidly develop professional programs. The
-Qt library is available not only for Linux but for a great number of
-Unices and even for Windows. Thus it is possible to write programs that
-may be easily ported to those platforms.
+This package contains extension libraries for Qt 3, such as the
+Netscape plug-in modules.
-You need a license for using Qt with a non-GPL application, which can
-be acquired from sales@trolltech.com.
-
-See /usr/share/doc/packages/qt3 for details about the new features of
-the current Qt library!
-
-
-
-Authors:
---------
- Troll Tech AS, Norway
-
-qt3
-
-Qt is a program library for developing applications with graphical user
-interfaces. It allows you to rapidly develop professional programs. The
-Qt library is available not only for Linux but for a great number of
-Unices and even for Windows. Thus it is possible to write programs that
-may be easily ported to those platforms.
-
-You need a license for using Qt with a non-GPL application, which can
-be acquired from sales@trolltech.com.
-
-See /usr/share/doc/packages/qt3 for details about the new features of
-the current Qt library!
-
-
-
-Authors:
---------
- Troll Tech AS, Norway
-
-qt3
+This package contains extension libraries for Qt 3, such as the
+Netscape plug-in modules.
%define build_sub_dirs src plugins/src tools/designer/uilib/ tools/designer/uic tools/qtconfig tools/assistant/lib tools/assistant tutorial
@@ -221,48 +187,14 @@
%patch50
%description
-Qt is a program library for developing applications with graphical user
-interfaces. It allows you to rapidly develop professional programs. The
-Qt library is available not only for Linux but for a great number of
-Unices and even for Windows. Thus it is possible to write programs that
-may be easily ported to those platforms.
-
-You need a license for using Qt with a non-GPL application, which can
-be acquired from sales@trolltech.com.
+This package contains extension libraries for Qt 3, such as the
+Netscape plug-in modules.
-See /usr/share/doc/packages/qt3 for details about the new features of
-the current Qt library!
-
-
-
-Authors:
---------
- Troll Tech AS, Norway
-
-qt3
-
-Qt is a program library for developing applications with graphical user
-interfaces. It allows you to rapidly develop professional programs. The
-Qt library is available not only for Linux but for a great number of
-Unices and even for Windows. Thus it is possible to write programs that
-may be easily ported to those platforms.
-
-You need a license for using Qt with a non-GPL application, which can
-be acquired from sales@trolltech.com.
-
-See /usr/share/doc/packages/qt3 for details about the new features of
-the current Qt library!
-
-
-
-Authors:
---------
- Troll Tech AS, Norway
-
-qt3
+This package contains extension libraries for Qt 3, such as the
+Netscape plug-in modules.
%package -n qt3-devel-examples
-License: GPL v2 only ; GPL v3 only ; QPL ..
+License: GPL, QPL
Summary: Programming Examples for Qt 3
AutoReqProv: on
Group: Development/Sources
@@ -270,46 +202,53 @@
Obsoletes: qt3-examples
%description -n qt3-devel-examples
-examples
+This package contains small executables with code to demonstrate Qt
+programming.
+
+Have a look in /usr/share/doc/packages/qt3/examples/.
%package -n qt3-mysql
-License: GPL v2 only ; GPL v3 only ; QPL ..
+License: GPL, QPL
Summary: MySQL Plug-In for Qt
Provides: qt3_database_plugin
Group: Productivity/Databases/Clients
%description -n qt3-mysql
-mysql
+Plug-in for using the MySQL database with the generic Qt database
+interface.
%package -n qt3-unixODBC
-License: GPL v2 only ; GPL v3 only ; QPL ..
+License: GPL, QPL
Summary: A UnixODBC Plug-In for Qt
Provides: qt3_database_plugin
Group: Productivity/Databases/Clients
%description -n qt3-unixODBC
-unix
+A plug-in for using UnixODBC supported databases with the generic Qt
+database interface.
%package -n qt3-postgresql
-License: GPL v2 only ; GPL v3 only ; QPL ..
+License: GPL, QPL
Summary: A PostgreSQL Plug-In for Qt
Provides: qt3_database_plugin
Group: Productivity/Databases/Clients
%description -n qt3-postgresql
-postgres
+A Plug-in for using the PostgreSQL database with the generic Qt
+database interface.
%package -n qt3-sqlite
-License: GPL v2 only ; GPL v3 only ; QPL ..
+License: GPL, QPL
Summary: SQLite Database Plug-In for Qt
Provides: qt3_database_plugin
Group: Development/Tools/Other
%description -n qt3-sqlite
- Troll Tech AS, Norway
+The Qt database supports SQLite with this plug-in. (No configured and
+running daemon is required.)
%package -n qt3-devel-tools
-License: GPL v2 only ; GPL v3 only ; QPL ..
+License: GPL, QPL
Summary: User Interface Builder and other tools (designer, assistant, linguist)
AutoReqProv: on
Requires: qt3-devel = %version
@@ -318,10 +257,12 @@
Group: Development/Tools/GUI Builders
%description -n qt3-devel-tools
- Troll Tech
+The designer creates .ui files. The uic generates C++ code from these
+files. The package also contains the Qt Assistant (Qt documentation
+browser) and the Qt Linguist (for translations).
%package -n qt3-man
-License: GPL v2 only ; GPL v3 only ; QPL ..
+License: GPL, QPL
Summary: Qt 3 Man Pages
AutoReqProv: on
Requires: qt3-devel = %version
@@ -329,7 +270,7 @@
Group: Documentation/Man
%description -n qt3-man
- Troll Tech AS
+This package contains all the man pages for all the Qt 3 classes.
%build
export QTDIR=/usr/lib/qt3/
++++++ qt3.spec ++++++
--- /var/tmp/diff_new_pack.3OvW7E/_old 2009-11-23 14:29:33.000000000 +0100
+++ /var/tmp/diff_new_pack.3OvW7E/_new 2009-11-23 14:29:33.000000000 +0100
@@ -32,7 +32,7 @@
#
Summary: A library for developing applications with graphical user interfaces
Version: 3.3.8b
-Release: 93
+Release: 94
Provides: qt_library_%version
PreReq: /bin/grep
%define x11_free -x11-free-
++++++ attributes ++++++
summary.qt3 A library for developing applications with graphical user interfaces
summary.qt3-devel Include Files and Libraries mandatory for Development
summary.qt3-devel-doc Documentation for the Qt 3 Development Kit
summary.qt3-devel-examples Programming Examples for Qt 3
summary.qt3-devel-tools User Interface Builder and other tools (designer, assistant, linguist)
summary.qt3-extensions Qt3 Extensions
summary.qt3-man Qt 3 Man Pages
summary.qt3-mysql MySQL Plug-In for Qt
summary.qt3-postgresql A PostgreSQL Plug-In for Qt
summary.qt3-sqlite SQLite Database Plug-In for Qt
summary.qt3-unixODBC A UnixODBC Plug-In for Qt
+description.qt3
Qt is a program library for developing applications with graphical user
interfaces. It allows you to rapidly develop professional programs. The
Qt library is available not only for Linux but for a great number of
Unices and even for Windows. Thus it is possible to write programs that
may be easily ported to those platforms.
You need a license for using Qt with a non-GPL application, which can
be acquired from sales@trolltech.com.
See /usr/share/doc/packages/qt3 for details about the new features of
the current Qt library!
-description.qt3
+description.qt3-devel
You need this package if you want to compile programs with Qt 3. It
contains the "Qt Crossplatform Development Kit 2". Under /usr/lib/qt3
you will find include files.
You need a license for using Qt with a non-GPL application. A license
can be acquired at sales@trolltech.com.
-description.qt3-devel
+description.qt3-devel-doc
This package contains the documentation for the Qt 3 Development Kit.
You will find documentation, precompiled examples, and a tutorial for
getting started with Qt in /usr/lib/qt3/doc.
-description.qt3-devel-doc
+description.qt3-devel-examples
This package contains small executables with code to demonstrate Qt
programming.
Have a look in /usr/share/doc/packages/qt3/examples/.
-description.qt3-devel-examples
+description.qt3-devel-tools
The designer creates .ui files. The uic generates C++ code from these
files. The package also contains the Qt Assistant (Qt documentation
browser) and the Qt Linguist (for translations).
-description.qt3-devel-tools
+description.qt3-extensions
This package contains extension libraries for Qt 3, such as the
Netscape plug-in modules.
-description.qt3-extensions
+description.qt3-man
This package contains all the man pages for all the Qt 3 classes.
-description.qt3-man
+description.qt3-mysql
Plug-in for using the MySQL database with the generic Qt database
interface.
-description.qt3-mysql
+description.qt3-postgresql
A Plug-in for using the PostgreSQL database with the generic Qt
database interface.
-description.qt3-postgresql
+description.qt3-sqlite
The Qt database supports SQLite with this plug-in. (No configured and
running daemon is required.)
-description.qt3-sqlite
+description.qt3-unixODBC
A plug-in for using UnixODBC supported databases with the generic Qt
database interface.
-description.qt3-unixODBC
++++++ enable-designer-plugins.diff ++++++
--- /var/tmp/diff_new_pack.3OvW7E/_old 2009-11-23 14:29:33.000000000 +0100
+++ /var/tmp/diff_new_pack.3OvW7E/_new 2009-11-23 14:29:33.000000000 +0100
@@ -1,8 +1,8 @@
--- tools/designer/plugins/plugins.pro
-+++ tools/designer/plugins/plugins.pro 2003/01/26 13:05:01
-@@ -3,6 +3,7 @@
- cppeditor \
++++ tools/designer/plugins/plugins.pro
+@@ -4,6 +4,7 @@
dlg \
+ glade \
rc \
- kdevdlg
+ kdevdlg \
++++++ pre_checkin.sh ++++++
--- /var/tmp/diff_new_pack.3OvW7E/_old 2009-11-23 14:29:33.000000000 +0100
+++ /var/tmp/diff_new_pack.3OvW7E/_new 2009-11-23 14:29:33.000000000 +0100
@@ -7,10 +7,6 @@
for spec in qt3-extensions.spec qt3-devel-doc.spec; do
{ sed -n -e '1,/COMMON-BEGIN/p' $spec.in
sed -n -e '/COMMON-BEGIN/,/COMMON-END/p' qt3.spec
- sed -n -e '/COMMON-END/,$p' $spec.in; } > $spec.tmp && mv $spec.tmp $spec
-# assuming hilbert has no such dir
-if test -x /mounts/work/src/bin/tools/prepare_spec; then
- /mounts/work/src/bin/tools/prepare_spec $spec > $spec.tmp && mv $spec.tmp $spec
-fi
+ sed -n -e '/COMMON-END/,$p' $spec.in; } > $spec.tmp && perl update_spec.pl $spec.tmp attributes > $spec && rm $spec.tmp
done
++++++ qt3-extensions.spec.in ++++++
--- /var/tmp/diff_new_pack.3OvW7E/_old 2009-11-23 14:29:33.000000000 +0100
+++ /var/tmp/diff_new_pack.3OvW7E/_new 2009-11-23 14:29:33.000000000 +0100
@@ -29,7 +29,22 @@
%patch50
%description
-qt3
+Qt is a program library for developing applications with graphical user
+interfaces. It allows you to rapidly develop professional programs. The
+Qt library is available not only for Linux but for a great number of
+Unices and even for Windows. Thus it is possible to write programs that
+may be easily ported to those platforms.
+
+You need a license for using Qt with a non-GPL application, which can
+be acquired from sales@trolltech.com.
+
+See /usr/share/doc/packages/qt3 for details about the new features of
+the current Qt library!
+
+
+Authors:
+---------
+ Troll Tech AS, Norway
%package -n qt3-devel-examples
Summary: Programming Examples for Qt 3
@@ -39,7 +54,23 @@
Obsoletes: qt3-examples
%description -n qt3-devel-examples
-examples
+Qt is a program library for developing applications with graphical user
+interfaces. It allows you to rapidly develop professional programs. The
+Qt library is available not only for Linux but for a great number of
+Unices and even for Windows. Thus it is possible to write programs that
+may be easily ported to those platforms.
+
+You need a license for using Qt with a non-GPL application, which can
+be acquired from sales@trolltech.com.
+
+See /usr/share/doc/packages/qt3 for details about the new features of
+the current Qt library!
+
+
+Authors:
+---------
+ Troll Tech AS, Norway
+
%package -n qt3-mysql
Summary: MySQL Plug-In for Qt
@@ -47,7 +78,23 @@
Group: Productivity/Databases/Clients
%description -n qt3-mysql
-mysql
+Qt is a program library for developing applications with graphical user
+interfaces. It allows you to rapidly develop professional programs. The
+Qt library is available not only for Linux but for a great number of
+Unices and even for Windows. Thus it is possible to write programs that
+may be easily ported to those platforms.
+
+You need a license for using Qt with a non-GPL application, which can
+be acquired from sales@trolltech.com.
+
+See /usr/share/doc/packages/qt3 for details about the new features of
+the current Qt library!
+
+
+Authors:
+---------
+ Troll Tech AS, Norway
+
%package -n qt3-unixODBC
Summary: A UnixODBC Plug-In for Qt
@@ -55,7 +102,23 @@
Group: Productivity/Databases/Clients
%description -n qt3-unixODBC
-unix
+Qt is a program library for developing applications with graphical user
+interfaces. It allows you to rapidly develop professional programs. The
+Qt library is available not only for Linux but for a great number of
+Unices and even for Windows. Thus it is possible to write programs that
+may be easily ported to those platforms.
+
+You need a license for using Qt with a non-GPL application, which can
+be acquired from sales@trolltech.com.
+
+See /usr/share/doc/packages/qt3 for details about the new features of
+the current Qt library!
+
+
+Authors:
+---------
+ Troll Tech AS, Norway
+
%package -n qt3-postgresql
Summary: A PostgreSQL Plug-In for Qt
@@ -63,7 +126,22 @@
Group: Productivity/Databases/Clients
%description -n qt3-postgresql
-postgres
+Qt is a program library for developing applications with graphical user
+interfaces. It allows you to rapidly develop professional programs. The
+Qt library is available not only for Linux but for a great number of
+Unices and even for Windows. Thus it is possible to write programs that
+may be easily ported to those platforms.
+
+You need a license for using Qt with a non-GPL application, which can
+be acquired from sales@trolltech.com.
+
+See /usr/share/doc/packages/qt3 for details about the new features of
+the current Qt library!
+
+
+Authors:
+---------
+ Troll Tech AS, Norway
%package -n qt3-sqlite
Summary: SQLite Database Plug-In for Qt
@@ -71,8 +149,24 @@
Group: Development/Tools/Other
%description -n qt3-sqlite
+Qt is a program library for developing applications with graphical user
+interfaces. It allows you to rapidly develop professional programs. The
+Qt library is available not only for Linux but for a great number of
+Unices and even for Windows. Thus it is possible to write programs that
+may be easily ported to those platforms.
+
+You need a license for using Qt with a non-GPL application, which can
+be acquired from sales@trolltech.com.
+
+See /usr/share/doc/packages/qt3 for details about the new features of
+the current Qt library!
+
+
+Authors:
+---------
Troll Tech AS, Norway
+
%package -n qt3-devel-tools
Summary: User Interface Builder and other tools (designer, assistant, linguist)
Autoreqprov: on
@@ -82,7 +176,23 @@
Group: Development/Tools/GUI Builders
%description -n qt3-devel-tools
- Troll Tech
+Qt is a program library for developing applications with graphical user
+interfaces. It allows you to rapidly develop professional programs. The
+Qt library is available not only for Linux but for a great number of
+Unices and even for Windows. Thus it is possible to write programs that
+may be easily ported to those platforms.
+
+You need a license for using Qt with a non-GPL application, which can
+be acquired from sales@trolltech.com.
+
+See /usr/share/doc/packages/qt3 for details about the new features of
+the current Qt library!
+
+
+Authors:
+---------
+ Troll Tech AS, Norway
+
%package -n qt3-man
Summary: Qt 3 Man Pages
@@ -92,7 +202,22 @@
Group: Documentation/Man
%description -n qt3-man
- Troll Tech AS
+Qt is a program library for developing applications with graphical user
+interfaces. It allows you to rapidly develop professional programs. The
+Qt library is available not only for Linux but for a great number of
+Unices and even for Windows. Thus it is possible to write programs that
+may be easily ported to those platforms.
+
+You need a license for using Qt with a non-GPL application, which can
+be acquired from sales@trolltech.com.
+
+See /usr/share/doc/packages/qt3 for details about the new features of
+the current Qt library!
+
+
+Authors:
+---------
+ Troll Tech AS, Norway
%build
export QTDIR=/usr/lib/qt3/
++++++ update_spec.pl ++++++
#! /usr/bin/perl
my $name = $ARGV[0];
$name =~ s,.*/,,;
$name =~ s,\.spec.*,,;
my %attributes = ();
open(FILE, $ARGV[1]) || die 'no attributes';
my $pack = undef;
my $text = undef;
while ( <FILE> ) {
if (/^\+(.*)$/) { $pack = $1; $text = ''; next }
if (/^-(.*)$/) {
if ($pack ne $1) {
die "$pack and $1 do not match";
}
$text =~ s,^\s*,,;
$text =~ s,\s*$,,;
$attributes{$pack} = $text;
$text = undef;
$pack = undef;
next;
}
if (defined $text) {
$text .= $_;
} elsif (/^(\S*)\s*(.*)$/) {
my $attr = $1;
my $string = $2;
$string =~ s,^\s*,,;
$string =~ s,\s*$,,;
$attributes{$attr} = $string;
}
}
close(FILE);
open(FILE, $ARGV[0]);
sub description()
{
if (/^%description\s*(.*)\s*/) {
my $suffix = $1;
my $pname = $name;
if ($suffix =~ m/-n\s*(.*)/) {
$pname = $1;
} else {
$pname = "$name-$suffix" if ($suffix);
}
if (defined $attributes{"description.$pname"}) {
print $_;
my $descr = $attributes{"description.$pname"};
print "$descr\n";
$_ = '';
do {
$_ = <FILE>;
} while ( $_ !~ /^%/ && $_ !~ /^@/ );
print "\n";
description();
}
}
}
# current subpackage
my $pname = $name;
while ( <FILE> )
{
if (/^Name:\s*(.*)/) {
$name = $1;
$pname = $1;
}
description();
if (/^%package\s*(.*)/) {
my $suffix = $1;
if ($suffix =~ m/-n\s*(.*)/) {
$pname = $1;
} else {
$pname = "$name-$1";
}
}
if (/^(Summary:\s*)(.*)$/) {
if (defined $attributes{"summary.$pname"}) {
print $1 . $attributes{"summary.$pname"} ."\n";
next;
}
}
if (/^(License:\s*)(.*)$/) {
if (defined $attributes{"license.$pname"}) {
print $1 . $attributes{"license.$pname"} ."\n";
next;
}
}
if (/^(Group:\s*)(.*)$/) {
if (defined $attributes{"group.$pname"}) {
print $1 . $attributes{"group.$pname"} ."\n";
next;
}
}
print $_;
}
close(FILE);
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org