Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:xwhu
zumastor
zumastor.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File zumastor.spec of Package zumastor
Name: zumastor BuildRequires: subversion popt-devel zlib-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build License: GPL v2 Group: System/Kernel Summary: Enterprise storage features as snapshot and replication Url: http://www.zumastor.org/ Version: 0.10.0.svn20080707 Release: 1 Packager: Xinwei Hu <xwhu@novell.com> Source0: %name-%version.tar.bz2 Source1: Makefile.dm-ddsnap Patch0: dm-ddsnap.c.diff ExclusiveArch: %ix86 x86_64 %define use_kmp 1 %if %use_kmp BuildRequires: module-init-tools %kernel_module_package_buildreq Requires: zumastor-kmp popt zlib cron %suse_kernel_module_package debug kdump um xen xenpae %endif %description Zumastor is Free software that adds enterprise storage features (primarily improved snapshots and remote replication) to Linux. %package KMP License: GPL v2 Summary: Updated kernel modules for ddsnap Group: System/Kernel %description KMP Zumastor is Free software that adds enterprise storage features (primarily improved snapshots and remote replication) to Linux. %prep %setup -n %name cp %{SOURCE1} ddsnap/kernel/Makefile %patch0 -p1 echo `cat Version`-`LC_ALL=C svn info | grep Revision: | awk '{print $2}'` > VERSION_STRING cp VERSION_STRING ddsnap cp VERSION_STRING zumastor %build %if %use_kmp pushd ddsnap/ mkdir suse-kernel for flavor in %flavors_to_build; do rm -rf suse-kernel/$flavor cp -r kernel suse-kernel/$flavor cd suse-kernel/$flavor cp Makefile Makefile.orig sed "s|KERNELDIR=.*|KERNELDIR=/usr/src/linux-obj/%_target_cpu/$flavor|" Makefile.orig > Makefile make cd ../.. done popd %endif pushd ddsnap make %{?jobs:-j%jobs} popd %install # kernel modules pushd ddsnap %if %use_kmp echo $RPM_BUILD_ROOT export INSTALL_MOD_PATH=$RPM_BUILD_ROOT export INSTALL_MOD_DIR=weak-updates for flavor in %flavors_to_build; do make -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install \ M=$PWD/suse-kernel/$flavor done %endif mkdir -p $RPM_BUILD_ROOT/usr/share/man/man8 make install PREFIX=$RPM_BUILD_ROOT popd pushd zumastor mkdir var DESTDIR=$RPM_BUILD_ROOT scripts/install mv $RPM_BUILD_ROOT/bin/zumastor $RPM_BUILD_ROOT/sbin/zumastor popd %preun %stop_on_removal %postun %insserv_cleanup %files %defattr(-,root,root) %_mandir/man8/* /sbin/* /etc/cron.daily/zumastor /etc/cron.hourly/zumastor /etc/cron.monthly/zumastor /etc/cron.weekly/zumastor /etc/init.d/zumastor /etc/zumastor /lib/zumastor %changelog * Mon Jul 7 2008 Xinwei Hu <xwhu@novell.com> Initialize importing
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor