summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2012-06-22 12:29:41 -0700
committerAlan Antonuk <alan.antonuk@gmail.com>2012-06-22 12:29:41 -0700
commita1c888431f58c0be3b317bdf720bee064869b595 (patch)
tree6f25be4ec3cfabddd9c61282e98e5d26e6c024a6
parent83c5c6a20b912460980e8f2da1b86e8e49df0694 (diff)
parent9846eea5a2de34eb07c40ce1bd4468696fa207c9 (diff)
downloadrabbitmq-c-github-ask-a1c888431f58c0be3b317bdf720bee064869b595.tar.gz
Merge pull request #27 from bodgit/master
Add RPM .spec file
-rw-r--r--librabbitmq.spec84
1 files changed, 84 insertions, 0 deletions
diff --git a/librabbitmq.spec b/librabbitmq.spec
new file mode 100644
index 0000000..7a17854
--- /dev/null
+++ b/librabbitmq.spec
@@ -0,0 +1,84 @@
+Name : librabbitmq
+Version : 0.2.0
+Release : 1.20120620git83c5c6a2
+Summary : RabbitMQ C AMQP client library
+Group : Development/Libraries
+
+Source0 : %{name}-%{version}.tar.gz
+URL : https://github.com/alanxz/rabbitmq-c
+License : MIT
+Packager : Matt Dainty <matt@bodgit-n-scarper.com>
+
+BuildRoot : %{_tmppath}/%{name}-%{version}-root
+%if %{?el5:1}0
+BuildRequires : popt
+BuildRequires : python-simplejson
+%else
+BuildRequires : popt-devel
+%endif
+BuildRequires : xmlto
+
+%description
+RabbitMQ C AMQP client library
+
+%package devel
+Summary: Development files for the librabbitmq package
+Group: Development/Libraries
+Requires: %{name} = %{version}
+
+%description devel
+RabbitMQ C AMQP client library. This package contains files needed to
+develop applications using librabbitmq.
+
+%package tools
+Summary: Example tools built using the librabbitmq package
+Group: Development/Libraries
+Requires: %{name} = %{version}
+
+%description tools
+RabbitMQ C AMQP client library. This package contains example tools
+built using librabbitmq.
+
+%prep
+%setup -q
+
+%build
+%configure --enable-static
+%{__make} %{?_smp_mflags}
+
+%install
+%{__rm} -rf %{buildroot}
+%makeinstall
+
+%clean
+%{__rm} -rf %{buildroot}
+
+%files
+%defattr(-,root,root)
+%doc AUTHORS LICENSE-MIT THANKS TODO
+%{_libdir}/librabbitmq.so.*
+
+%files devel
+%defattr(-,root,root)
+%{_libdir}/librabbitmq.a
+%{_libdir}/librabbitmq.la
+%{_libdir}/librabbitmq.so
+%{_libdir}/pkgconfig/librabbitmq.pc
+%{_includedir}/amqp.h
+%{_includedir}/amqp_framing.h
+
+%files tools
+%defattr(-,root,root)
+%{_bindir}/amqp-*
+%doc %{_mandir}/man1/amqp-*.1*
+%doc %{_mandir}/man7/librabbitmq-tools.7.gz
+
+%changelog
+* Wed Jun 20 2012 Matt Dainty <matt@bodgit-n-scarper.com> 0.2.0-1.20120620git83c5c6a2
+- Bump to 0.2.0-1.20120620git83c5c6a2.
+
+* Sun Feb 19 2012 Matt Dainty <matt@bodgit-n-scarper.com> 0.0.1-2.20120121hg281
+- Fix build dependency for el5.
+
+* Sat Jan 21 2012 Matt Dainty <matt@bodgit-n-scarper.com> 0.0.1-1.20120121hg281
+- Initial version 0.0.1-1.20120121hg281.