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