-
Notifications
You must be signed in to change notification settings - Fork 107
/
Copy pathULib.spec.in
86 lines (74 loc) · 1.96 KB
/
ULib.spec.in
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
Name: ULib
Summary: ULib C++ library - A package for creating small and fast C++ programs
Version: @ULIB_VERSION@
Release: 1
Epoch: 0
License: LGPL
Group: Development/Libraries
URL: http://www.unirel.com
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}
Provides: ULib
Packager: Stefano Casazza <stefano.casazza@gmail.com>
@RPM_REQUIRE@
%package devel
Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: libstdc++-devel
Group: Development/Libraries
Summary: Headers and link library for ULib
%description
ULib C++ offers abstraction of system services such as sockets.
ULib C++ also provides a class framework for strings, config file and XML parsing, and SOAP protocol.
%description devel
This package provides the header files, link libraries and documentation for building ULib C++ applications.
%prep
%setup
%build
%configure @RPM_CONFIGURE@
make LDFLAGS="-s"
%install
rm -rf %{buildroot}
%makeinstall
mkdir -p %{buildroot}/usr/share/aclocal
mkdir -p %{buildroot}/usr/libexec/usp
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING NEWS README TODO ChangeLog
%{_bindir}/uclient
%{_bindir}/userver_*
%{_libdir}/*.so.*
%{_sysconfdir}/*.cfg*
%{_libexecdir}/mod_*.*
%{_libexecdir}/usp/*.*
%dir %{_libexecdir}/usp
%files devel
%defattr(-,root,root,-)
%{_bindir}/uclient
%{_bindir}/userver_*
%{_libdir}/*.a
%{_libdir}/*.so
%{_libdir}/*.la
%{_sysconfdir}/*.cfg*
%dir %{_includedir}/ulib
%{_includedir}/ulib/*.h
%{_includedir}/ulib/README
%{_includedir}/ulib/*/*.h
%{_includedir}/ulib/*/*/*.h
%{_includedir}/ulib/*/*/*/*.h
%{_includedir}/ulib/flex/flex.skl
%{_includedir}/ulib/flex/bison.skl
%{_includedir}/ulib/flex/bison_head.yy
%{_includedir}/ulib/flex/flexer_head.ll
%{_datadir}/aclocal/*.m4
%{_libdir}/pkgconfig/*.pc
%{_libexecdir}/mod_*.a
%{_libexecdir}/mod_*.so
%{_libexecdir}/mod_*.la
%{_libexecdir}/usp/*.a
%{_libexecdir}/usp/*.so
%{_libexecdir}/usp/*.la
%dir %{_libexecdir}/usp
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig