packages: gyp/gyp.spec (NEW) - new, desc from ubuntu

glen glen at pld-linux.org
Thu Jan 28 13:26:16 CET 2010


Author: glen                         Date: Thu Jan 28 12:26:16 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new, desc from ubuntu

---- Files affected:
packages/gyp:
   gyp.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/gyp/gyp.spec
diff -u /dev/null packages/gyp/gyp.spec:1.1
--- /dev/null	Thu Jan 28 13:26:16 2010
+++ packages/gyp/gyp.spec	Thu Jan 28 13:26:11 2010
@@ -0,0 +1,68 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# build without tests
+
+%define		svnrev	770
+%define		rel		1
+Summary:	Generate Your Projects
+Name:		gyp
+Version:	0.1
+Release:	0.%{svnrev}.%{rel}
+License:	New BSD
+Group:		Development/Building
+# svn co http://gyp.googlecode.com/svn/trunk@770 gyp
+# tar -cjf gyp-$(svnversion gyp).tar.bz2 --exclude=.svn --remove-files gyp
+Source0:	%{name}-%{svnrev}.tar.bz2
+# Source0-md5:	7f87d3f19fd97d17392df778128df70d
+URL:		http://code.google.com/p/gyp/
+BuildRequires:	python-devel
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.219
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+GYP is a tool to generates native Visual Studio, Xcode and SCons
+and/or make build files from a platform-independent input format. It's
+syntax is a universal cross-platform build representation that still
+allows sufficient per-platform flexibility to accommodate
+irreconcilable differences.
+
+%prep
+%setup -q -n %{name}
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/gyp
+%dir %{py_sitescriptdir}/gyp
+%dir %{py_sitescriptdir}/gyp/generator
+%{py_sitescriptdir}/gyp/*.py[co]
+%{py_sitescriptdir}/gyp/generator/*.py[co]
+
+%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/gyp-*.egg-info
+%endif
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2010/01/28 12:26:11  glen
+- new, desc from ubuntu
================================================================


More information about the pld-cvs-commit mailing list