-
Notifications
You must be signed in to change notification settings - Fork 1
/
libircclient.spec
134 lines (105 loc) · 3.67 KB
/
libircclient.spec
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
Name: libircclient
Version: 1.5
Release: 1%{?dist}
Summary: Library implementing client-server IRC protocol
Group: System Environment/Libraries
License: LGPLv2+
URL: http://%{name}.sourceforge.net/
Source0: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz
#Patch obsolete because upstream buildsystem ignored now
#Patch0: %%{name}-makefile.patch
#Attempted fix for GCC 4.4+ strict aliasing problems
#Patch0: %{name}-strictaliasing.patch
#Patch1: %{name}-strictaliasing-dcc.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: automake
%description
It is designed to be small, fast, portable and compatible to RFC standards,
and most IRC clients. libircclient features include:
* Full multi-threading support.
* Single threads handles all the IRC processing.
* Support for single-threaded applications, and socket-based
applications, which use select()
* Synchronous and asynchronous interfaces.
* CTCP support with optional build-in reply code.
* Flexible DCC support, including both DCC chat, and DCC file transfer.
* Can both initiate and react to initiated DCC.
* Can accept or decline DCC sessions asynchronously.
* Plain C interface and implementation (possible to use from C++ code,
obviously)
* Compatible with RFC 1459 and most IRC clients.
* Free, licensed under LGPL license.
* Good documentation and examples available.
%package devel
Summary: Header files and libraries for compiling against %{name}
Group: Development/System
Requires: %name = %version-%release
%description devel
Header files for compiling against %{name}
%prep
%setup -q
#%%patch0
#%patch0 -p1 -b .%{name}-strictaliasing.patch
#%patch1 -p1 -b .%{name}-strictaliasing-dcc.patch
%build
#autoreconf
%configure --enable-ipv6
cd src
gcc %{optflags} -fPIC -I../include -c libircclient.c
ar rc libircclient-%{version}.a libircclient.o
gcc -shared -Wl,-soname,libircclient.so.1 libircclient.o -o libircclient.so.1
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_includedir}
mkdir -p %{buildroot}%{_mandir}/man3
cd src
install -m 0755 libircclient.so.1 %{buildroot}%{_libdir}/
cd %{buildroot}%{_libdir}
ln -s libircclient.so.1 libircclient.so
cd -
cd ../include
for hdr in libirc*.h ; do
install -m 644 "$hdr" %{buildroot}%{_includedir}/
done
cd ../doc
for mp in man/man3/*.3 ; do
install -m 644 "$mp" %{buildroot}%{_mandir}/man3/
done
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc Changelog LICENSE README THANKS
%{_libdir}/libircclient.so.*
%{_mandir}/man3/*
%files devel
%defattr(-,root,root,-)
%doc doc/html examples
%{_includedir}/*
%{_libdir}/libircclient.so
%changelog
* Fri Jan 20 2012 Adam Huffman <[email protected]> - 1.5-1
- New upstream release 1.5
- disable GCC 4.7 patches for now
* Wed Jan 11 2012 Adam Huffman <[email protected]> - 1.3-8
- two patches to fix strict aliasing problems
* Sun Jan 8 2012 Adam Huffman <[email protected]> - 1.3-7
- complete removal of upstream buildsystem
- more consistent use of macros
* Mon May 2 2011 Adam Huffman <[email protected]> - 1.3-6
- better soname fix
* Fri Apr 29 2011 Adam Huffman <[email protected]> - 1.3-5
- fix soname
* Fri Apr 29 2011 Adam Huffman <[email protected]> - 1.3-4
- ignore provided makefiles
- devel subpackage
* Fri Apr 29 2011 Adam Huffman <[email protected]> - 1.3-3
- remove static library
* Sat Feb 12 2011 Adam Huffman <[email protected]> - 1.3-2
- fixes taken from Arch package to help with din
- build .so
* Wed Jun 2 2010 Conrad Meyer <[email protected]> - 1.3-1
- First attempt at a package (crappy)