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 4ef876b..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: woffTools -# $Id$ -NAME := woffTools -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 $$d/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..e5891ef 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +a3303c4143041f7d6be0a84c13f41066 woffTools-0.1beta.tar.gz diff --git a/woffTools.spec b/woffTools.spec new file mode 100644 index 0000000..4215aab --- /dev/null +++ b/woffTools.spec @@ -0,0 +1,59 @@ +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +%define svnrev 684 + +Name: woffTools +Version: 0.1 +Release: 0.1.%{svnrev}svn%{?dist} +Summary: Tool for manipulating and examining WOFF files + +Group: Development/Languages +License: MIT +URL: http://code.typesupply.com/wiki/woffTools +##### svn checkout HOWTO ##### +##### $ svn export -r %{svnrev} http://svn.typesupply.com/packages/woffTools/trunk woffTools ##### +##### $ python setup.py sdist --formats gztar ##### +Source0: woffTools-0.1beta.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: python-devel +Requires: fonttools + +%description +woffTools is a collection of command line tools for verifying and +examining WOFF files. This is also a Python package that can be used +to manipulate and examine WOFF files just as you can examine SFNT files +with FontTools. + +%prep +%setup -q -n %{name}-%{version}beta + + +%build +%{__python} setup.py build + + + +%install +rm -rf $RPM_BUILD_ROOT +%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT + + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc README.txt PKG-INFO +%{_bindir}/* +%{python_sitelib}/* + + +%changelog +* Fri Nov 27 2009 Parag Nemade - 0.1-0.1.684svn +- Initial specfile for Fedora + +