Build the python package and generate dist-specific packages

Release_2.0_Bugfix
Bradlee Speice 2012-08-13 13:17:54 -04:00
parent 3d18823b46
commit bd542b07b4
2 changed files with 18 additions and 3 deletions

View File

@ -1,8 +1,8 @@
EXTRA_DIST = libcvautomation.py
install-data-local: setup.py
$(Python) setup.py install
$(Python) setup.py install --prefix=$(RPM_BUILD_ROOT)/$(prefix) --exec-prefix=$(RPM_BUILD_ROOT)/$(exec_prefix)
##Unfortunately, we can't really uninstall the python file.
##The python dist-utils don't tell us where it got installed
##to, so we can't uninstall it.

View File

@ -6,7 +6,7 @@
Summary: GUI Automation and Testing tool based on OpenCV and XTest
Name: libcvautomation
Version: %{VERSION}
Release: %{PATCHLEVEL}
Release: %{PATCHLEVEL}%{?dist}
Source: https://github.com/DjBushido/libcvautomation/%{name}-%{VERSION}.tar.gz
URL: http://djbushido.github.com/libcvautomation/
Vendor: MOSAIC at University of North Carolina at Charlotte
@ -15,6 +15,9 @@ License: BSD 2-clause
Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
#Technically if we're missing the atrpms config the build will already have
#messed up since %{?dist} won't be expanded, but make sure that we do have them.
BuildRequires: atrpms-rpm-config
BuildRequires: libXtst-devel
BuildRequires: libX11-devel
BuildRequires: opencv-devel
@ -59,6 +62,15 @@ Requires: %{name} = %{version}-%{release}
%description doc
libcvautomation-doc contains the HTML documentation for libcvautomation.
%package python
Summary: Python bindings for libcvautomation
Group: Python
Requires: %{name} = %{version}-%{release}
%description python
libcvautomation-python contains the libcvautomation python module for
interfacing with libcvautomation using the python language.
%prep
%setup -q
@ -96,6 +108,9 @@ rm -rf $RPM_BUILD_ROOT
%attr(644, root, root) /usr/share/libcvautomation/html/*
%attr(755, root, root) /usr/share/libcvautomation/html/installdox
%files python
%attr(644, root, root) /usr/lib/python*/site-packages/*
%changelog
* Mon Aug 13 2012 Bradlee Speice <bspeice@uncc.edu> 1.5-1
- Release version 1.5 of libcvautomation