File: commoncpp2.spec

package info (click to toggle)
libcommoncpp2 1.8.1-7
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,272 kB
  • sloc: cpp: 29,219; sh: 10,352; ansic: 1,134; makefile: 232; xml: 5
file content (106 lines) | stat: -rw-r--r-- 2,682 bytes parent folder | download | duplicates (5)
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
%{!?release: %define release 0}
%{!?version: %define version 1.8.1}

%define _libname libcommoncpp2-1_8-0
%define _devname libcommoncpp2-devel

Name: commoncpp2
Summary: "commoncpp2" - A GNU package for creating portable C++ programs
Version: %{version}
Release: %{release}%{?dist}
License: RGPL v2 or later
Group: Development/Libraries
URL: http://www.gnu.org/software/commoncpp/commoncpp.html
Source0: ftp://ftp.gnu.org/gnu/commoncpp/commoncpp2-%{PACKAGE_VERSION}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires: gnutls
Requires: zlib
Requires: libstdc++
Prereq: /sbin/install-info
BuildRequires: gnutls-devel
BuildRequires: zlib-devel
BuildRequires: libstdc++-devel
BuildRequires: doxygen
BuildRequires: info

%description
GNU Common C++ offers portable abstraction of system services such as
threads and sockets.  GNU Common C++ also provides a threadsafe class
framework for strings, config file and XML parsing, and object
serialization.

%package -n %{_libname}
Group: System/Libraries
Summary: Runtime libraries for GNU Common C++ threading and sockets
Provides: %{name} = %{version}-%{release}

%package -n %{_devname}
Requires: %{_libname} = %{version}-%{release}
Requires: libxml2-devel
Requires: zlib-devel
Requires: libstdc++-devel
Requires(post,postun): info
Group: Development/Libraries
Summary: Headers and static link library for commoncpp2
Provides: %{name}-devel = %{version}-%{release}

%package doc
Requires: commoncpp2 = %{version}
Summary: Class documentation for GNU Common C++
Group: Documentation

%description -n %{_libname}
This package contains the runtime library needed by applications that use 
GNU Common C++.

%description -n %{_devname}
This package provides the header files, link libraries and documentation for
building GNU Common C++ applications.

%description doc
This includes doxygen generated class references for the GNU Common C++
library.

%prep
%setup
%build
%configure
%{__make} %{?_smp_mflags} CXXFLAGS="$RPM_OPT_FLAGS"

%install

%{__mkdir} -p %{buildroot}/%{_mandir}/man3
%makeinstall
%{__strip} %{buildroot}/%{_libdir}/lib*.so.*.*


%clean
%{__rm} -fr %{buildroot}

%files -n %{_libname}
%defattr(-,root,root,-)
%doc AUTHORS COPYING COPYING.addendum NEWS README TODO ChangeLog
%{_libdir}/*.so.*

%files -n %{_devname}
%defattr(-,root,root,-)
%doc doc/html/*.html doc/html/*.*g*
%{_libdir}/*.a
%{_libdir}/*.so
%{_libdir}/*.la
%dir %{_includedir}/cc++
%{_includedir}/cc++/*.h
%{_bindir}/*
%{_infodir}/commoncpp2.info*
%{_datadir}/aclocal/*.m4
%{_libdir}/pkgconfig/*.pc

%files doc
%defattr(-,root,root,-)
%doc doc/html/*

%post -n %{_libname} -p /sbin/ldconfig

%postun -n %{_libname} -p /sbin/ldconfig