Merge commit 'origin/silc.1.1.branch'
[silc.git] / silc-toolkit.spec.in
1 Summary: SILC Toolkit
2 Name: silc-toolkit
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: silc-toolkit-%{version}.tar.gz
9 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
10 BuildRequires: pkgconfig
11 Obsoletes: libsilc
12 Obsoletes: libsilc-devel
13 Obsoletes: libsilc-doc
14 Provides: libsilc
15 Provides: libsilc-devel
16 Provides: libsilc-doc
17 Epoch: 0
18
19 %description
20 SILC Toolkit providing SILC Protocol Core Library, SILC Client Library,
21 runtime library and many other libraries.  SILC Toolkit enables SILC
22 application development.  SILC (Secure Internet Live Conferencing) is a
23 secure conferencing protocol.
24
25 %package devel
26 Group: Development/Libraries
27 Summary: SILC Toolkit providing headers, libraries and documentation
28 Requires: silc-toolkit = %{epoch}:%{version}-%{release}
29 Requires: pkgconfig
30
31 %description devel
32 The SILC Toolkit development libraries, headers and documentation.  SILC
33 Toolkit enables SILC application development.
34
35 %prep
36 %setup -q -n silc-toolkit-%{version}
37
38 %build
39 %configure --libdir=%{_libdir} \
40            --includedir=%{_includedir}/silc \
41            --with-simdir=%{_libdir}/silc/modules \
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 chmod 0755 ${RPM_BUILD_ROOT}%{_libdir}/silc/modules/*.so
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %post -p /sbin/ldconfig
55
56 %postun -p /sbin/ldconfig
57
58 %files
59 %defattr(0755, root, root, 0755)
60 %{_libdir}/libsilc-1.1.so*
61 %{_libdir}/libsilcclient-1.1.so*
62 %dir %_libdir/silc
63 %dir %_libdir/silc/modules
64 %{_libdir}/silc/modules/*.so
65 %defattr(0644, root, root, 0755)
66 %doc CHANGES COPYING GPL BSD
67
68 %files devel
69 %defattr(0644, root, root, 0755)
70 %doc CHANGES COPYING GPL BSD doc/toolkit
71 %{_libdir}/libsilc.so
72 %{_libdir}/libsilc.*a
73 %{_libdir}/libsilcclient.so
74 %{_libdir}/libsilcclient.*a
75 %{_libdir}/pkgconfig/silc.pc
76 %{_libdir}/pkgconfig/silcclient.pc
77 %dir %_includedir/silc
78 %{_includedir}/silc/*.h
79
80 %changelog
81 * Wed May 30 2007 Pekka Riikonen <priikone@silcnet.org>
82 - Rewrote .spec for SILC Toolkit 1.1.  Obsoletes libsilc.  Renamed to
83   silc-toolkit.
84
85 * Tue Sep 1 2004 Toni Willberg <toniw@iki.fi>
86 - 0.9.12-0.fdr.6 - Had to remove smp_mflags because build fails with them
87   (Michael Schwendt)
88
89 * Tue Aug 31 2004 Toni Willberg <toniw@iki.fi>
90 - 0.9.12-0.fdr.5 - corrections to lib and include path (from Michael Schwendt)
91
92 * Tue Aug 31 2004 Toni Willberg <toniw@iki.fi>
93 - 0.9.12-0.fdr.4 - post/postun /sbin/ldconfig
94   (Patch 823 from Stu Tomlinson)
95
96 * Tue Aug 31 2004 Toni Willberg <toniw@iki.fi>
97 - 0.9.12-0.fdr.3 - Move libs to %{_libdir} and add a silc.pc
98   (Patch 815 from Stu Tomlinson)
99
100 * Tue Aug 17 2004 Toni Willberg <toniw@iki.fi>
101 - fix so permissions and hardcoded paths (patch from Michael Schwendt)
102
103 * Mon Jul 5 2004 Toni Willberg <toniw@iki.fi>
104 - Fixed various errors
105
106 * Sun Jul 4 2004 Toni Willberg <toniw@iki.fi>
107 - Initial version for Fedora