packages: python-yara/python-yara.spec (NEW) - new

glen glen at pld-linux.org
Sat Jul 17 20:24:53 CEST 2010


Author: glen                         Date: Sat Jul 17 18:24:53 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

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

---- Diffs:

================================================================
Index: packages/python-yara/python-yara.spec
diff -u /dev/null packages/python-yara/python-yara.spec:1.1
--- /dev/null	Sat Jul 17 20:24:53 2010
+++ packages/python-yara/python-yara.spec	Sat Jul 17 20:24:47 2010
@@ -0,0 +1,58 @@
+# $Revision$, $Date$
+%define 	module	yara
+Summary:	Python bindings to yara library
+Name:		python-%{module}
+Version:	1.3
+Release:	1
+License:	GPL v2+
+Group:		Development/Languages/Python
+Source0:	http://yara-project.googlecode.com/files/yara-python-%{version}.tar.gz
+# Source0-md5:	45753421c40bb1d03bf32bdb99b8c831
+URL:		http://code.google.com/p/yara-project/
+BuildRequires:	python-devel
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.219
+BuildRequires:	yara-devel
+Requires:	python-modules
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is a Python extension that gives you access to YARA's powerful
+features from your own Python scripts.
+
+%prep
+%setup -q -n %{module}-python-%{version}
+
+%build
+export CFLAGS="%{rpmcflags}"
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%attr(755,root,root) %{py_sitedir}/yara.so
+%if "%{py_ver}" > "2.4"
+%{py_sitedir}/yara_python-*.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/07/17 18:24:47  glen
+- new
================================================================


More information about the pld-cvs-commit mailing list