Skip to content

Commit

Permalink
windows: renamed packages and removed "postvista" from name
Browse files Browse the repository at this point in the history
As we do not build windows packages for windows before vista anyway,
the name postvista is not needed anymore.

The packages are now named "winbareos-release" and "winbareos-debug"
instead of "winbareos-postvista" and "winbareos-postvista-debug".
  • Loading branch information
pstorz committed Sep 22, 2018
1 parent 1c7c587 commit f23363d
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 29 deletions.
4 changes: 2 additions & 2 deletions core/platforms/opsi/winbareos-opsi.spec
Expand Up @@ -47,8 +47,8 @@ VERSION32C=$(sed -r -e 's/(.{1,32}).*/\1/' -e 's/\.*$//' <<< %{version})
sed -i -e "s/^version: \$PackageVersion/version: %{release}/i" \
-e "s/^version: \$ProductVersion/version: $VERSION32C/i" opsi/OPSI/control

WINBAREOS32=`ls -1 /winbareos*-postvista-32-bit-*.exe`
WINBAREOS64=`ls -1 /winbareos*-postvista-64-bit-*.exe`
WINBAREOS32=`ls -1 /winbareos*-release-32-bit-*.exe`
WINBAREOS64=`ls -1 /winbareos*-release-64-bit-*.exe`
if [ -r "$WINBAREOS32" ] && [ -r "$WINBAREOS64" ]; then
mkdir -p opsi/CLIENT_DATA/data
cp -a $WINBAREOS32 $WINBAREOS64 opsi/CLIENT_DATA/data
Expand Down
4 changes: 2 additions & 2 deletions core/platforms/win32/mingw-debugsrc-devel.spec
Expand Up @@ -27,8 +27,8 @@ Source0: bareos-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Provides: %name = %version
Provides: %name-postvista = %version
Provides: %name-postvista-debug = %version
Provides: %name-release = %version
Provides: %name-debug = %version
#Provides: %name-prevista = %version
#Provides: %name-prevista-debug = %version

Expand Down
10 changes: 5 additions & 5 deletions core/platforms/win32/winbareos-nsi.spec
Expand Up @@ -11,7 +11,7 @@
# flavors:
# If name contains debug, enable debug during build.
# If name contains prevista, build for windows < vista.
%define flavors postvista postvista-debug
%define flavors release debug

%define SIGNCERT %{_builddir}/ia.p12
%define SIGNPWFILE %{_builddir}/signpassword
Expand Down Expand Up @@ -88,11 +88,11 @@ BuildRequires: mingw64-libsqlite
BuildRequires: mingw32-libjansson
BuildRequires: mingw64-libjansson

BuildRequires: mingw32-winbareos-postvista = %{version}
BuildRequires: mingw64-winbareos-postvista = %{version}
BuildRequires: mingw32-winbareos-release = %{version}
BuildRequires: mingw64-winbareos-release = %{version}

BuildRequires: mingw32-winbareos-postvista-debug = %{version}
BuildRequires: mingw64-winbareos-postvista-debug = %{version}
BuildRequires: mingw32-winbareos-debug = %{version}
BuildRequires: mingw64-winbareos-debug = %{version}

BuildRequires: osslsigncode
BuildRequires: obs-name-resolution-settings
Expand Down
20 changes: 10 additions & 10 deletions core/platforms/win32/winbareos32.spec
Expand Up @@ -15,7 +15,7 @@
# flavors:
# If name contains debug, enable debug during build.
# If name contains prevista, build for windows < vista.
%define flavors postvista postvista-debug
%define flavors release debug
%define dirs_with_unittests lib findlib
%define bareos_configs bareos-dir.d/ bareos-fd.d/ bareos-sd.d/ tray-monitor.d/ bconsole.conf

Expand Down Expand Up @@ -82,14 +82,14 @@ BuildRequires: cmake
%description
Base package for Bareos Windows build.

%package postvista
%package release
Summary: bareos
%description postvista
%description release
Bareos for Windows versions >= Windows Vista

%package postvista-debug
%package debug
Summary: bareos
%description postvista-debug
%description debug
Bareos Debug for Windows versions >= Windows Vista


Expand All @@ -111,7 +111,7 @@ done
for flavor in %flavors; do

WINDOWS_BITS=$(echo %name | grep 64 >/dev/null 2>&1 && echo "64" || echo "32")
WINDOWS_VERSION=$(echo $flavor | grep postvista >/dev/null && echo 0x600 || echo 0x500)
WINDOWS_VERSION=$(echo $flavor | grep release >/dev/null && echo 0x600 || echo 0x500)
pushd $flavor
%{_mingw32_cmake_qt4} \
-DCMAKE_INSTALL_BINDIR:PATH=%{_mingw64_bindir} \
Expand Down Expand Up @@ -152,11 +152,11 @@ rm -rf $RPM_BUILD_ROOT
%files


%files postvista
%files release
%defattr(-,root,root)
/postvista-%WINDOWS_BITS
/release-%WINDOWS_BITS

%files postvista-debug
/postvista-debug-%WINDOWS_BITS
%files debug
/debug-%WINDOWS_BITS

%changelog
20 changes: 10 additions & 10 deletions core/platforms/win32/winbareos64.spec
Expand Up @@ -15,7 +15,7 @@
# flavors:
# If name contains debug, enable debug during build.
# If name contains prevista, build for windows < vista.
%define flavors postvista postvista-debug
%define flavors release debug
%define dirs_with_unittests lib findlib
%define bareos_configs bareos-dir.d/ bareos-fd.d/ bareos-sd.d/ tray-monitor.d/ bconsole.conf

Expand Down Expand Up @@ -82,14 +82,14 @@ BuildRequires: cmake
%description
Base package for Bareos Windows build.

%package postvista
%package release
Summary: bareos
%description postvista
%description release
Bareos for Windows versions >= Windows Vista

%package postvista-debug
%package debug
Summary: bareos
%description postvista-debug
%description debug
Bareos Debug for Windows versions >= Windows Vista


Expand All @@ -111,7 +111,7 @@ done
for flavor in %flavors; do

#WINDOWS_BITS=$(echo %name | grep 64 >/dev/null 2>&1 && echo "64" || echo "32")
WINDOWS_VERSION=$(echo $flavor | grep postvista >/dev/null && echo 0x600 || echo 0x500)
WINDOWS_VERSION=$(echo $flavor | grep release >/dev/null && echo 0x600 || echo 0x500)
pushd $flavor
%{_mingw64_cmake_qt4} \
-DCMAKE_INSTALL_BINDIR:PATH=%{_mingw64_bindir} \
Expand Down Expand Up @@ -152,11 +152,11 @@ rm -rf $RPM_BUILD_ROOT
%files


%files postvista
%files release
%defattr(-,root,root)
/postvista-%WINDOWS_BITS
/release-%WINDOWS_BITS

%files postvista-debug
/postvista-debug-%WINDOWS_BITS
%files debug
/debug-%WINDOWS_BITS

%changelog

0 comments on commit f23363d

Please sign in to comment.