Skip to content

Commit

Permalink
new Version 2.43.3
Browse files Browse the repository at this point in the history
use a common toplevel CMakeLists.txt
fix building *-doc pkgs
introduce bootstrap.sh
  • Loading branch information
Björn Esser committed May 10, 2013
1 parent b5e8cba commit 496c063
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 84 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Makefile.in
# CMake
CMakeCache.txt
CMakeFiles
CMakeLists.txt
Makefile
cmake_install.cmake
install_manifest.txt
Expand Down
80 changes: 0 additions & 80 deletions CMakeLists.txt

This file was deleted.

8 changes: 8 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri May 10 10:40:00 UTC 2013 - bjoern.esser@gmail.com

- use a common toplevel CMakeLists.txt
- fix building *-doc pkgs
- introduce bootstrap.sh
- Version 2.43.3

-------------------------------------------------------------------
Mon May 6 13:30:00 UTC 2013 - bjoern.esser@gmail.com

Expand Down
4 changes: 3 additions & 1 deletion Makefile.cvs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
all: configure

configure: clean
./bootstrap.sh ; \
mkdir build ; \
cd build ; \
cmake -DCMAKE_BUILD_TYPE=RELEASE ..
Expand All @@ -18,4 +19,5 @@ reconf:
cmake rebuild_cache

clean:
rm -rf build
rm -rf build \
CMakeLists.txt
2 changes: 1 addition & 1 deletion VERSION.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SET(VERSION_MAJOR "2")
SET(VERSION_MINOR "43")
SET(VERSION_PATCH "2")
SET(VERSION_PATCH "3")
SET( VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}${GIT_SHA1_VERSION}" )

##### This is need for the libyui core, ONLY.
Expand Down
26 changes: 26 additions & 0 deletions bootstrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#! /bin/sh
set -e ;

prefix="/usr";

if [ ! -z $1 ];
then
prefix="$1";
fi;

cmake_common="$prefix/share/libyui/buildtools/CMakeLists.common";
cmake_target="./CMakeLists.txt";

echo "checking for $cmake_common...";

if [ -f "$cmake_common" ];
then
ln -fs "$cmake_common" "$cmake_target";
echo "OK: linked to `pwd`/$cmake_target.";
else
echo " Use must have libyui(-devel) >= 3.0.4 installed";
echo " in \"$prefix\" first !!!";
exit 1;
fi;

exit 0;
7 changes: 5 additions & 2 deletions libyui-qt.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ BuildRequires: cmake >= 2.8
BuildRequires: gcc-c++
BuildRequires: pkg-config

%define libyui_devel_version libyui-devel >= 2.42.6
%define libyui_devel_version libyui-devel >= 3.0.4
BuildRequires: %{libyui_devel_version}
BuildRequires: libqt4-devel
Provides: yui_backend
Expand All @@ -45,7 +45,8 @@ Summary: @SUMMARY@
Group: System/Libraries

Requires: lib@BASELIB@@SONAME_MAJOR@
Provides: yast2-qt = 2.42.0
Provides: lib@BASELIB@-qt = %{version}
Provides: yast2-qt = %{version}
Obsoletes: yast2-qt < 2.42.0

URL: @URL@
Expand Down Expand Up @@ -81,6 +82,8 @@ This package has very few dependencies.
export CFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
export CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG"

./bootstrap.sh %{_prefix}

mkdir build
cd build

Expand Down

0 comments on commit 496c063

Please sign in to comment.