This commit is contained in:
Remi Collet 2013-08-01 15:25:48 +02:00
parent b3e5b43a15
commit 8156fb7afc

View File

@ -1,22 +1,17 @@
Name: librabbitmq
Summary: Client library and command line tools for AMQP
Summary: Client library for AMQP
Version: 0.3.0
Release: 2%{?dist}
Release: 3%{?dist}
License: MIT
Group: System Environment/Libraries
URL: https://github.com/alanxz/rabbitmq-c
Source0: https://github.com/alanxz/rabbitmq-c/archive/rabbitmq-c-v%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libtool
BuildRequires: python-simplejson
# For tools
%if 0%{?rhel} == 5
BuildRequires: popt
%else
BuildRequires: popt-devel
%endif
# For man page
BuildRequires: xmlto
@ -66,7 +61,6 @@ make %{_smp_mflags}
%install
rm -rf %{buildroot}
make install DESTDIR="%{buildroot}"
rm %{buildroot}%{_libdir}/%{name}.la
@ -76,37 +70,32 @@ rm %{buildroot}%{_libdir}/%{name}.la
make check
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr (-,root,root,-)
%doc AUTHORS README.md THANKS TODO LICENSE-MIT
%{_libdir}/%{name}.so.1*
%files devel
%defattr (-,root,root,-)
%doc Examples
%{_libdir}/%{name}.so
%{_includedir}/amqp*
%{_libdir}/pkgconfig/librabbitmq.pc
%files tools
%defattr(-,root,root)
%{_bindir}/amqp-*
%doc %{_mandir}/man1/amqp-*.1*
%doc %{_mandir}/man7/librabbitmq-tools.7.gz
%changelog
* Thu Aug 1 2013 Remi Collet <remi@fedoraproject.org> - 0.3.0-3
- cleanups
* Wed Mar 13 2013 Remi Collet <remi@fedoraproject.org> - 0.3.0-2
- remove tools from main package