forked from maekitalo/cxxtools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcxxtools.spec
71 lines (58 loc) · 1.65 KB
/
cxxtools.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
Name: cxxtools
Summary: some useful C++-classes
Version: 1.4.4
Release: 1
License: GPL
Group: Development/Languages/C and C++
Url: http://www.tntnet.org
Source: http://www.tntnet.org/download/cxxtools-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
some useful C++-casses:
arg - template-class for argc/argv-parsing
tcp::Stream - socket-library with std::iostream-interface
dlloader - C++-interface for dlopen/dlsym
query_params - CGI-parameter-class with parser
thread - C++-pthread-wrapper
tee - doubles a ostream-output
hdstream - ostream-hexdumper
iconvstream - ostream-interface to iconv(3) (codeset conversion)
md5stream - ostream for md5-calculation
dynbuffer - dynamic buffer
Authors:
--------
Tommi Maekitalo <[email protected]>
%package devel
Summary: Include Files and Libraries mandatory for Development.
Group: Development/Languages/C and C++
Requires: cxxtools = %{version}
%description devel
This package contains all necessary include files and libraries needed
to develop applications that require the provided includes and
libraries.
Authors:
--------
Tommi Maekitalo <[email protected]>
%prep
%setup
%build
CFLAGS="$RPM_OPT_FLAGS" \
./configure --prefix=%{_prefix} --libdir=%{_libdir} --sysconfdir=/etc --disable-final
make
%install
make MANDIR=%{buildroot}%{_mandir} \
BINDIR=%{buildroot}%{_sbindir} \
DESTDIR=$RPM_BUILD_ROOT \
install
rm %{buildroot}%{_libdir}/libcxxtools.la
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_libdir}/lib*.so*
%files devel
%{_libdir}/lib*.a
%{_includedir}/cxxtools/*.h
%{_includedir}/cxxtools/log/*.h
%{_bindir}/cxxtools-config
%changelog