Hello community,

here is the log from the commit of package sax3 for openSUSE:Factory checked in 
at 2013-01-29 14:40:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/sax3 (Old)
 and      /work/SRC/openSUSE:Factory/.sax3.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "sax3", Maintainer is ""

Changes:
--------
--- /work/SRC/openSUSE:Factory/sax3/sax3.changes        2011-12-06 
16:24:47.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.sax3.new/sax3.changes   2013-01-29 
14:40:28.000000000 +0100
@@ -1,0 +2,9 @@
+Fri Jan 25 08:01:20 UTC 2013 - m...@suse.com
+
+- Added fix-libyui-include-path.diff
+  * support build with libyui which renamed from yast2-libyui
+  * linking correct libyui library path
+- Added fix-std-nametype-issue.diff
+  * fixed compilation error
+
+-------------------------------------------------------------------

New:
----
  fix-libyui-include-path.diff
  fix-std-nametype-issue.diff

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

Other differences:
------------------
++++++ sax3.spec ++++++
--- /var/tmp/diff_new_pack.ZZDrDw/_old  2013-01-29 14:40:29.000000000 +0100
+++ /var/tmp/diff_new_pack.ZZDrDw/_new  2013-01-29 14:40:29.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package sax3
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
+# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -15,18 +15,29 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-# norootforbuild
 
 Name:           sax3
 Version:       0.1
-Release:       1
-License:        GPL-3.0+
+Release:        0
 Summary:       A Graphical Configuration Tool for X
-Url:           https://www.ohloh.net/p/sax3
+License:        GPL-3.0
 Group:         System/X11/Utilities
-Source:                sax3-0.1.tar.bz2
-BuildRequires: yast2-libyui yast2-libyui-devel augeas augeas-devel 
augeas-lenses augeas-lense-tests libaugeas0 cmake gcc-c++
-Requires:      yast2-libyui augeas augeas-lenses libaugeas0 
+Url:            https://www.ohloh.net/p/sax3
+Source:         %{name}-%{version}.tar.bz2
+Patch0:         fix-libyui-include-path.diff
+Patch1:         fix-std-nametype-issue.diff
+BuildRequires:  augeas-devel
+BuildRequires:  cmake
+BuildRequires:  gcc-c++
+%if 0%{?suse_version} > 1220
+BuildRequires:  libyui-devel
+Requires:       libyui4
+%else
+BuildRequires:  yast2-libyui-devel
+Requires:       yast2-libyui
+%endif
+Requires:       augeas
+Requires:       augeas-lenses
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -39,9 +50,17 @@
 
 %prep
 %setup -q
+%if 0%{?suse_version} > 1220
+%patch0 -p1
+%endif
+%patch1 -p1
 
 %build
-cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_SKIP_RPATH=true .
+cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_SKIP_RPATH=true \
+%ifarch x86_64 ppc64
+    -DLIB_SUFFIX="64" \
+%endif
+    .
 make
 
 %install
@@ -49,6 +68,7 @@
 
 %files
 %defattr(-,root,root)
+%doc COPYING.GPL-3.0
 %{_sbindir}/sax3*
 %{_datadir}/libaugeas0/
 %{_datadir}/augeas/
@@ -59,6 +79,4 @@
 %_mandir/man1/*
 #%_datadir/icons/hicolor/32x32/apps/sax*
 
-%doc COPYING.GPL-3.0
-
 %changelog

++++++ fix-libyui-include-path.diff ++++++
Index: sax3-0.1/CMakeLists.txt
===================================================================
--- sax3-0.1.orig/CMakeLists.txt
+++ sax3-0.1/CMakeLists.txt
@@ -3,4 +3,9 @@ project(SaX3)
 
 find_package(Libyui)
 set(CMAKE_CXX_FLAGS "-Wall -pedantic -laugeas")
+
+set(LIB_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})
+set(LIBYUI_INCLUDE_DIR "/usr/include/yui")
+set(LIBYUI_LIBRARY "yui")
+
 add_subdirectory(src)
Index: sax3-0.1/src/ui/CMakeLists.txt
===================================================================
--- sax3-0.1.orig/src/ui/CMakeLists.txt
+++ sax3-0.1/src/ui/CMakeLists.txt
@@ -5,5 +5,5 @@ include_directories(${LIBYUI_INCLUDE_DIR
 
 add_library(sax3-yuif SHARED yuifactory.cxx yui.cxx)
 
-install(TARGETS sax3-yuif LIBRARY DESTINATION lib${LIB_SUFFIX})
+install(TARGETS sax3-yuif LIBRARY DESTINATION ${LIB_INSTALL_DIR})
 target_link_libraries(sax3-yuif ${LIBYUI_INCLUDE_DIR})
++++++ fix-std-nametype-issue.diff ++++++
Index: sax3-0.1/src/ui/yui.h
===================================================================
--- sax3-0.1.orig/src/ui/yui.h
+++ sax3-0.1/src/ui/yui.h
@@ -107,7 +107,7 @@ namespace UI{
                yPushButton(yVLayout *,std::string text);
                YPushButton * getElement();
                void setEnabled(bool);
-               string value();
+                std::string value();
                ~yPushButton();
        };
 
@@ -131,8 +131,8 @@ namespace UI{
                
                void addItem(std::string item);
                YComboBox * getElement();
-               string value();
-               void setValue(string&);
+                std::string value();
+               void setValue(std::string&);
                void deleteAllItems();
                void setDisabled();
                void setEnabled();
@@ -148,7 +148,7 @@ namespace UI{
                yMultiSelectionBox(yHLayout*,std::string label);
                yMultiSelectionBox(yVLayout*,std::string label);
                void addItem(std::string item);
-               void selectedItems(vector<string> &list);
+               void selectedItems(std::vector<std::string> &list);
                ~yMultiSelectionBox();
        };
 
@@ -157,7 +157,7 @@ namespace UI{
                YTable * table;
                YTableHeader * header;
                YItemCollection items;
-               typedef std::pair<string,string> P;
+               typedef std::pair<std::string,std::string> P;
                std::vector<P> i;
                YItemCollection createList();
                public:
@@ -184,7 +184,7 @@ namespace UI{
                yRadioButtonGroup(yDialog*);
                yRadioButtonGroup(yHLayout*);
                yRadioButtonGroup(yVLayout*);
-               string selectedLabel();
+                std::string selectedLabel();
                void addButton(std::string);
                bool isButton(int,YWidget*);
                void setValue(int,int);
@@ -195,9 +195,9 @@ namespace UI{
        class yIntField : public IntField{
                YIntField * field;
                public:
-               yIntField(yDialog*,string,int,int,int);
-               yIntField(yHLayout*,string,int,int,int);
-               yIntField(yVLayout*,string,int,int,int);
+               yIntField(yDialog*,std::string,int,int,int);
+               yIntField(yHLayout*,std::string,int,int,int);
+               yIntField(yVLayout*,std::string,int,int,int);
                int value();
                void setDisabled();
                void setEnabled();
@@ -209,9 +209,9 @@ namespace UI{
        class yCheckBox : public CheckBox{
                YCheckBox * cb;
                public:
-               yCheckBox(yDialog*,string,bool);
-               yCheckBox(yHLayout*,string,bool);
-               yCheckBox(yVLayout*,string,bool);
+               yCheckBox(yDialog*,std::string,bool);
+               yCheckBox(yHLayout*,std::string,bool);
+               yCheckBox(yVLayout*,std::string,bool);
                bool isChecked();
                void setChecked(bool);
                YCheckBox* getElement();
Index: sax3-0.1/src/ui/yuifactory.h
===================================================================
--- sax3-0.1.orig/src/ui/yuifactory.h
+++ sax3-0.1/src/ui/yuifactory.h
@@ -48,9 +48,9 @@ namespace UI{
                        virtual yRadioButtonGroup * 
createRadioButtonGroup(VLayout *);
                        virtual yRadioButtonGroup * 
createRadioButtonGroup(Dialog *);
                        
-                       virtual yIntField * createIntField(HLayout 
*,string,int,int,int);
-                       virtual yIntField * createIntField(VLayout 
*,string,int,int,int);
-                       virtual yIntField * createIntField(Dialog 
*,string,int,int,int);
+                       virtual yIntField * createIntField(HLayout *, 
std::string,int,int,int);
+                       virtual yIntField * createIntField(VLayout *, 
std::string,int,int,int);
+                       virtual yIntField * createIntField(Dialog *, 
std::string,int,int,int);
 
                        virtual yCheckBox * createCheckBox(Dialog * 
parent,std::string text,bool);
                        virtual yCheckBox * createCheckBox(HLayout * 
parent,std::string text,bool);
Index: sax3-0.1/src/ui/yui.cxx
===================================================================
--- sax3-0.1.orig/src/ui/yui.cxx
+++ sax3-0.1/src/ui/yui.cxx
@@ -114,7 +114,7 @@ namespace UI{
        YPushButton* yPushButton::getElement(){
                return button;
        }
-       string yPushButton::value(){
+        std::string yPushButton::value(){
                return button->label();
        }
        yPushButton::~yPushButton(){
@@ -156,16 +156,16 @@ namespace UI{
                comboBox = 
YUI::widgetFactory()->createComboBox(parent->getElement(),text,false);
                comboBox->setNotify(true);
        }
-       void yComboBox::addItem(string item){
+       void yComboBox::addItem(std::string item){
                comboBox->addItem(item);
        }
        YComboBox * yComboBox::getElement(){
                return comboBox;
        }
-       string yComboBox::value(){
+        std::string yComboBox::value(){
                return comboBox->value();
        }
-       void yComboBox::setValue(string &value){
+       void yComboBox::setValue(std::string &value){
                comboBox->setValue(value);
        }
        void yComboBox::deleteAllItems(){
@@ -194,13 +194,13 @@ namespace UI{
        yMultiSelectionBox::yMultiSelectionBox(yVLayout * parent,std::string 
label){
                multi = 
YUI::widgetFactory()->createMultiSelectionBox(parent->getElement(),label);
        }
-       void yMultiSelectionBox::addItem(string item){
+       void yMultiSelectionBox::addItem(std::string item){
                multi->addItem(item);
        }
        yMultiSelectionBox::~yMultiSelectionBox(){
                delete multi;
        }
-       void yMultiSelectionBox::selectedItems(vector<string> &list){
+       void yMultiSelectionBox::selectedItems(std::vector<std::string> &list){
                slist = multi->selectedItems();
                for(unsigned i=0;i<slist.size();i++){
                        list.push_back(slist.at(i)->label());
@@ -242,7 +242,7 @@ namespace UI{
        }
        void yTable::addItem(std::string item1,std::string item2){
                table->addItem(new YTableItem(item1,item2));
-               i.push_back(std::make_pair<string,string> (item1,item2));       
+               i.push_back(std::make_pair<std::string,std::string> 
(item1,item2));     
        }
        void yTable::addItem(std::string n,std::string item1,std::string item2){
                table->addItem(new YTableItem(n,item1,item2));
@@ -267,9 +267,9 @@ namespace UI{
        void yTable::swap(int pos){
                YItemConstIterator 
it=table->itemsBegin(),ic=table->itemsEnd()-1;
                std::vector<P>::iterator ii = i.begin(),ir = i.begin();
-               std::pair<string,string> x;
+               std::pair<std::string,std::string> x;
                std::cout<<"NAPANM:"<<table->itemsCount();
-               std::cout<<*ic<<'\t'<<table->selectedItem()<<endl;
+               std::cout<<*ic<<'\t'<<table->selectedItem()<<std::endl;
                if(*ic==table->selectedItem() && pos >0) return;
 
                while(it!=table->itemsEnd()){
@@ -301,7 +301,7 @@ namespace UI{
                ii->second = x.second;
                table->deleteAllItems();
                for(ii=i.begin();ii!=i.end();ii++){
-                       std::cout<<ii->first<<'\t'<<ii->second<<endl;
+                       std::cout<<ii->first<<'\t'<<ii->second<<std::endl;
                }
                items = createList();
                table->addItems(items);
@@ -313,7 +313,7 @@ namespace UI{
                ii = i.begin();
                if(table->columns()==2){
                        while(ii!=i.end()){
-                               std::cout<<"inserting 
:"<<ii->first<<'\t'<<ii->second<<endl;
+                               std::cout<<"inserting 
:"<<ii->first<<'\t'<<ii->second<<std::endl;
                                list.push_back(new 
YTableItem(ii->first,ii->second));
                                ii++;
                        }
@@ -332,7 +332,7 @@ namespace UI{
        YTable* yTable::getElement(){
                return table;
        }
-       std::vector< std::pair<string,string> > yTable::getItems(){
+       std::vector< std::pair<std::string,std::string> > yTable::getItems(){
                return i;
        }
 
@@ -362,7 +362,7 @@ namespace UI{
                b->setNotify(true);
                buttonList.push_back(b);
        }
-       string yRadioButtonGroup::selectedLabel(){
+        std::string yRadioButtonGroup::selectedLabel(){
                return group->currentButton()->label();
        }
        bool yRadioButtonGroup::isButton(int index,YWidget* w){
@@ -380,13 +380,13 @@ namespace UI{
                delete group;
        }
 
-       yIntField::yIntField(yDialog* parent,string text,int min,int max,int 
value){
+       yIntField::yIntField(yDialog* parent,std::string text,int min,int 
max,int value){
                field = 
YUI::widgetFactory()->createIntField(parent->getElement(),text,min,max,value);
        }
-       yIntField::yIntField(yHLayout* parent,string text,int min,int max,int 
value){
+       yIntField::yIntField(yHLayout* parent,std::string text,int min,int 
max,int value){
                field = 
YUI::widgetFactory()->createIntField(parent->getElement(),text,min,max,value);
        }
-       yIntField::yIntField(yVLayout* parent,string text,int min,int max,int 
value){
+       yIntField::yIntField(yVLayout* parent,std::string text,int min,int 
max,int value){
                field = 
YUI::widgetFactory()->createIntField(parent->getElement(),text,min,max,value);
        }
        int yIntField::value(){
@@ -406,15 +406,15 @@ namespace UI{
                delete field;
        }
 
-       yCheckBox::yCheckBox(yDialog * parent,string text,bool checked){
+       yCheckBox::yCheckBox(yDialog * parent,std::string text,bool checked){
                cb = 
YUI::widgetFactory()->createCheckBox(parent->getElement(),text,checked);
                cb->setNotify(true);
        }
-       yCheckBox::yCheckBox(yHLayout * parent,string text,bool checked){
+       yCheckBox::yCheckBox(yHLayout * parent,std::string text,bool checked){
                cb = 
YUI::widgetFactory()->createCheckBox(parent->getElement(),text,checked);
                cb->setNotify(true);
        }
-       yCheckBox::yCheckBox(yVLayout * parent,string text,bool checked){
+       yCheckBox::yCheckBox(yVLayout * parent,std::string text,bool checked){
                cb = 
YUI::widgetFactory()->createCheckBox(parent->getElement(),text,checked);
                cb->setNotify(true);
        }
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to