diff --git a/.cvsignore b/.cvsignore deleted file mode 100644 index e69de29..0000000 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4e353e9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +wsmancli-2.1.0.tar.bz2 diff --git a/Makefile b/Makefile deleted file mode 100644 index 402db64..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: wsmancli -# $Id$ -NAME := wsmancli -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/sources b/sources index e69de29..20e7482 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +6377cc8c015f669f710cd9eadb00f43f wsmancli-2.1.0.tar.bz2 diff --git a/wsmancli.spec b/wsmancli.spec new file mode 100644 index 0000000..675a925 --- /dev/null +++ b/wsmancli.spec @@ -0,0 +1,41 @@ +Name: wsmancli +Version: 2.1.0 +Release: 1%{dist} +License: BSD +Url: http://www.openwsman.org/ +Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXXX) +Group: Applications/System +BuildRequires: openwsman-devel >= 2.1.0 pkgconfig curl-devel +Requires: openwsman curl +Summary: WS-Management-Command line Interface + +%description +Command line interface for managing +systems using Web Services Management protocol. + +%prep +%setup -q + +%build +%configure --disable-more-warnings +make %{?_smp_flags} + +%install +rm -rf %{buildroot} +make DESTDIR=%{buildroot} install + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root) +%{_bindir}/wsman +%{_bindir}/wseventmgr +%doc COPYING README + +%changelog + +* Tue Sep 30 2008 - 2.1.0-1%{?dist} +- Modified the spec file to adhere to fedora packaging guidelines. +