diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index 79550fa..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: ykclient -# $Id$ -NAME := ykclient -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..80c9458 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +7de70fb19e1a1857689afaec74def7fb ykclient-2.3.tar.gz diff --git a/ykclient.spec b/ykclient.spec new file mode 100644 index 0000000..758ff24 --- /dev/null +++ b/ykclient.spec @@ -0,0 +1,64 @@ +Name: ykclient +Version: 2.3 +Release: 1%{?dist} +Summary: Yubikey management library and client + +Group: Applications/System +License: BSD +URL: http://yubico-c-client.googlecode.com/ +Source0: http://yubico-c-client.googlecode.com/files/ykclient-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: curl-devel, chrpath + +%description +commandline for yubikeys + +%package devel + +Summary: Development headers and libraries for ykclient +Group: Development/System +Requires: %{name} = %{version}-%{release} + +%description devel +development files for ykclient needed to build applications to +take advantage of yubikey authentication. + +%prep +%setup -q + +%build +%configure --enable-static=no +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT +rm $RPM_BUILD_ROOT%{_libdir}/libykclient.la +chrpath -d $RPM_BUILD_ROOT%{_bindir}/ykclient + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc COPYING AUTHORS NEWS README +%{_bindir}/ykclient +%{_libdir}/libykclient.so.3* + +%files devel +%defattr(-,root,root,-) +%doc README COPYING NEWS AUTHORS +%{_includedir}/ykclient.h +%{_libdir}/libykclient.so + +%changelog +* Sun Jun 21 2009 Dennis Gilmore - 2.3-1 +- update to 2.3 release + +* Wed Apr 29 2009 Dennis Gilmore - 2.2-1 +- initial packaging