packages: python-TinyUrl/python-TinyUrl.spec (NEW) - initial

lisu lisu at pld-linux.org
Tue Jan 3 22:11:07 CET 2012


Author: lisu                         Date: Tue Jan  3 21:11:07 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial

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

---- Diffs:

================================================================
Index: packages/python-TinyUrl/python-TinyUrl.spec
diff -u /dev/null packages/python-TinyUrl/python-TinyUrl.spec:1.1
--- /dev/null	Tue Jan  3 22:11:07 2012
+++ packages/python-TinyUrl/python-TinyUrl.spec	Tue Jan  3 22:11:02 2012
@@ -0,0 +1,58 @@
+# $Revision$, $Date$
+%define 	module	TinyUrl
+Summary:	super tiny library and command-line interface to tinyurl.com
+Name:		python-%{module}
+Version:	0.1.0
+Release:	1
+License:	MIT
+Group:		Development/Languages/Python
+Source0:	http://pypi.python.org/packages/source/T/TinyUrl/%{module}-%{version}.tar.bz2
+# Source0-md5:	a0b6a52ad898a35ea6280b43eb5c1be1
+URL:		http://pypi.python.org/pypi/TinyUrl/
+BuildRequires:	python-distribute
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.219
+Requires:	python-libs
+Requires:	python-modules
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Super tiny library and command-line interface to tinyurl.com.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+	--skip-build \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%attr(755,root,root) %{_bindir}/tinyurl
+%{py_sitescriptdir}/*.py[co]
+%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/TinyUrl-*.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  2012/01/03 21:11:02  lisu
+- initial
+
================================================================


More information about the pld-cvs-commit mailing list