-
Notifications
You must be signed in to change notification settings - Fork 3
/
clib.spec
75 lines (53 loc) · 1.68 KB
/
clib.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
Name: clib
Version: 0.2.99
Release: 1%{?dist}
Summary: Development files for the clib library
Group: Development/Libraries
License: 2-clause BSD
URL: http://github.com/caoimhechaos/clib/
Source0: clib-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
clib is a development library which provides the end user with hashes,
arrays and other features that are very useful for programming in the
C programming language.
%package devel
Summary: Development files for the clib library
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q
%build
%configure --disable-static
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root,-)
%doc
%{_includedir}/*
%{_libdir}/*.so
%changelog
* Wed Jul 29 2009 - [email protected]
- Bump revision after release of version 0.2.
- Added destructors to the array API to match the hash API.
* Tue Jul 28 2009 - [email protected]
- Added function to convert host:port strings to socket addresses for
connect, bind etc.
* Tue Jul 21 2009 - [email protected]
- Initial release for RedHat
- Corrected return types for default hash functions
- Fixed array implementation