James Kuszmaul | 82f6c04 | 2021-01-17 11:30:16 -0800 | [diff] [blame] | 1 | %define name re |
| 2 | %define ver 0.6.0 |
| 3 | %define rel 1 |
| 4 | |
| 5 | Summary: Generic library for real-time communications with async IO support |
| 6 | Name: %name |
| 7 | Version: %ver |
| 8 | Release: %rel |
| 9 | License: BSD |
| 10 | Group: Applications/Devel |
| 11 | Source0: file://%{name}-%{version}.tar.gz |
| 12 | URL: http://www.creytiv.com/ |
| 13 | Vendor: Creytiv |
| 14 | Packager: Alfred E. Heggestad <aeh@db.org> |
| 15 | BuildRoot: /var/tmp/%{name}-build-root |
| 16 | |
| 17 | %description |
| 18 | Generic library for real-time communications with async IO support |
| 19 | |
| 20 | %package devel |
| 21 | Summary: libre development files |
| 22 | Group: Development/Libraries |
| 23 | Requires: %{name} = %{version} |
| 24 | |
| 25 | %description devel |
| 26 | libre development files. |
| 27 | |
| 28 | %prep |
| 29 | %setup |
| 30 | |
| 31 | %build |
| 32 | make RELEASE=1 |
| 33 | |
| 34 | %install |
| 35 | rm -rf $RPM_BUILD_ROOT |
| 36 | make DESTDIR=$RPM_BUILD_ROOT install \ |
| 37 | %ifarch x86_64 |
| 38 | LIBDIR=/usr/lib64 |
| 39 | %endif |
| 40 | |
| 41 | %clean |
| 42 | rm -rf $RPM_BUILD_ROOT |
| 43 | |
| 44 | %post -p /sbin/ldconfig |
| 45 | %postun -p /sbin/ldconfig |
| 46 | |
| 47 | %files |
| 48 | %defattr(644,root,root,755) |
| 49 | %attr(755,root,root) %{_libdir}/libre*.so* |
| 50 | |
| 51 | %files devel |
| 52 | %defattr(644,root,root,755) |
| 53 | %{_includedir}/re/*.h |
| 54 | /usr/share/re/re.mk |
| 55 | %{_libdir}/libre*.a |
| 56 | %{_libdir}/pkgconfig/libre.pc |
| 57 | |
| 58 | %changelog |
| 59 | * Fri Nov 5 2010 Alfred E. Heggestad <aeh@db.org> - |
| 60 | - Initial build. |