Mac OS X >= 10.7 support
[runtime.git] / srt.spec.in
1 Summary: SILC Runtime Toolkit
2 Name: srt
3 Version: SILC_VERSION
4 Release: SILC_RELEASE
5 License: GPL/BSD dual licensed
6 Group: System Environment/Libraries
7 URL: http://silcnet.org/
8 Source0: srt-%{version}.tar.gz
9 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
10 BuildRequires: pkgconfig
11 Epoch: 0
12
13 %description
14 SILC Runtime Toolkit provides a full featured runtime library for
15 applications.  It provides the application's main loop, threads, locks,
16 file utilities, file streams, socket streams, TCP and UDP network routines,
17 a finite state machine, lists, a hash table, UTF-8 routines and other string
18 utilities, and many other utility routines.  The library works on multiple
19 platforms.
20
21 %package devel
22 Group: Development/Libraries
23 Summary: SILC Runtime Toolkit providing headers, libraries and documentation
24 Requires: srt = %{epoch}:%{version}-%{release}
25 Requires: pkgconfig
26
27 %description devel
28 SILC Runtime Toolkit development libraries, headers and documentation.
29 SILC Runtime Toolkit provides a full featured runtime library for
30 applications.  It provides the application's main loop, threads, locks,
31 file utilities, file streams, socket streams, TCP and UDP network routines,
32 a finite state machine, lists, a hash table, UTF-8 routines and other string
33 utilities, and many other utility routines.  The library works on multiple
34 platforms.
35
36 %prep
37 %setup -q -n srt-%{version}
38
39 %build
40 %configure --libdir=%{_libdir} \
41            --includedir=%{_includedir}/srt \
42            --docdir=%{_docdir}/%{name}-%{version}
43 make -j4
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 make DESTDIR=$RPM_BUILD_ROOT install
48 chmod 0755 ${RPM_BUILD_ROOT}%{_libdir}/lib*
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %post -p /sbin/ldconfig
54
55 %postun -p /sbin/ldconfig
56
57 %files
58 %defattr(0755, root, root, 0755)
59 %{_libdir}/libsrt-1.2.so*
60 %dir %_libdir/srt
61 %defattr(0644, root, root, 0755)
62 %doc CHANGES COPYING GPL BSD
63
64 %files devel
65 %defattr(0644, root, root, 0755)
66 %doc CHANGES COPYING GPL BSD doc/runtime
67 %{_libdir}/libsrt.so
68 %{_libdir}/libsrt.*a
69 %{_libdir}/pkgconfig/srt.pc
70 %dir %_includedir/srt
71 %{_includedir}/srt/*.h
72
73 %changelog
74 * Sun Jan 27 2008 Pekka Riikonen <priikone@silcnet.org>
75 - Initial version for Fedora