File python-activemq.spec of Package python-activemq
# norootforbuild
BuildRequires: activemq-cpp-devel
BuildRequires: pkgconfig
BuildRequires: python-devel
# Drop these once activemq-cpp has been fixed.
BuildRequires: boost-devel
BuildRequires: gcc-c++
BuildRequires: libuuid-devel
Name: python-activemq
Version: 0.1.0
Release: 1
Source0: pyactivemq-%{version}.tar.gz
Patch0: pyactivemq-use-pkgconfig.patch
Group: Devel/Languages/Python
AutoReqProv: on
Summary: Holy cow.
License: Apache
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
klasdjfkljasflkj sdf
%prep
%setup -n pyactivemq-%{version}
%patch0 -p1
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=files.fake
echo "%%defattr(-, root, root" >> files
cat files.fake >> files
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/doc/packages/%{name}
cp src/examples/*.py $RPM_BUILD_ROOT/%{_datadir}/doc/packages/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files -f files
%defattr(-, root, root)
%{_datadir}/doc/packages/%{name}
%changelog