]>
Commit | Line | Data |
---|---|---|
1 | Summary: A GNU package for creating portable C++ programs | |
2 | Summary(pl.UTF-8): Pakiet GNU do tworzenia przenośnych programów w C++ | |
3 | Name: commoncpp2 | |
4 | Version: 1.6.1 | |
5 | Release: 1 | |
6 | License: GPL | |
7 | Group: Libraries | |
8 | Source0: ftp://ftp.gnu.org/pub/gnu/commoncpp/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 2ebd8eb80996515be0385378da783091 | |
10 | URL: http://www.gnu.org/software/commoncpp/ | |
11 | BuildRequires: autoconf | |
12 | BuildRequires: automake | |
13 | BuildRequires: doxygen | |
14 | BuildRequires: libstdc++-devel | |
15 | BuildRequires: libtool | |
16 | BuildRequires: libxml2-devel | |
17 | BuildRequires: openssl-devel | |
18 | BuildRequires: zlib-devel | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | This is the second major release of GNU Common C++. GNU Common C++ "2" | |
23 | is a GNU package which offers portable "abstraction" of system | |
24 | services such as threads, networks, and sockets. GNU Common C++ "2" | |
25 | also offers individual frameworks generally useful to developing | |
26 | portable C++ applications including a object persistance engine, math | |
27 | libraries, threading, sockets, etc. GNU Common C++ "2" is small, and | |
28 | highly portable. GNU Common C++ "2" will support most Unix operating | |
29 | systems as well as Win32, in addition to GNU/Linux. | |
30 | ||
31 | %description -l pl.UTF-8 | |
32 | Drugie główne wydanie GNU Common C++. GNU Common C++ oferuje przenośne | |
33 | abstrakcje usług systemowych takich jak wątki, sieci i gniazda. | |
34 | Oferuje także poszczególne szkielety użyteczne do rozwijania | |
35 | przenośnych aplikacji C++ zawierające silnik trwałych obiektów, | |
36 | biblioteki matematyczne, wątków, gniazd itd. GNU Common C++ jest mały | |
37 | i przenośny. Oprócz GNU/Linuksa obsługuje także większość uniksowych | |
38 | systemów operacyjnych oraz Win32. | |
39 | ||
40 | %package devel | |
41 | Summary: Header files for commoncpp2 library | |
42 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki commoncpp2 | |
43 | Group: Development/Libraries | |
44 | Requires: %{name} = %{version}-%{release} | |
45 | Requires: libstdc++-devel | |
46 | Requires: libxml2-devel | |
47 | Requires: zlib-devel | |
48 | ||
49 | %description devel | |
50 | Header files for commoncpp2 library. | |
51 | ||
52 | %description devel -l pl.UTF-8 | |
53 | Pliki nagłówkowe biblioteki commoncpp2. | |
54 | ||
55 | %package static | |
56 | Summary: Static commoncpp2 library | |
57 | Summary(pl.UTF-8): Statyczna biblioteka commoncpp2 | |
58 | Group: Development/Libraries | |
59 | Requires: %{name}-devel = %{version}-%{release} | |
60 | ||
61 | %description static | |
62 | Static commoncpp2 library. | |
63 | ||
64 | %description static -l pl.UTF-8 | |
65 | Statyczna biblioteka commoncpp2. | |
66 | ||
67 | %prep | |
68 | %setup -q | |
69 | ||
70 | %build | |
71 | %{__libtoolize} | |
72 | %{__aclocal} -I m4 | |
73 | %{__autoconf} | |
74 | %{__autoheader} | |
75 | %{__automake} | |
76 | %configure \ | |
77 | --with-openssl | |
78 | %{__make} | |
79 | ||
80 | %install | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %{__make} install \ | |
84 | DESTDIR=$RPM_BUILD_ROOT | |
85 | ||
86 | %clean | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
89 | %post -p /sbin/ldconfig | |
90 | %postun -p /sbin/ldconfig | |
91 | ||
92 | %post devel | |
93 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
94 | ||
95 | %postun devel | |
96 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
97 | ||
98 | %files | |
99 | %defattr(644,root,root,755) | |
100 | %doc AUTHORS COPYING.addendum NEWS README TODO ChangeLog | |
101 | %attr(755,root,root) %{_libdir}/lib*.so.*.*.* | |
102 | ||
103 | %files devel | |
104 | %defattr(644,root,root,755) | |
105 | %doc doc/html/*.html doc/html/*.*g* | |
106 | %attr(755,root,root) %{_bindir}/* | |
107 | %attr(755,root,root) %{_libdir}/lib*.so | |
108 | %{_libdir}/lib*.la | |
109 | %{_includedir}/cc++ | |
110 | %{_aclocaldir}/*.m4 | |
111 | %{_pkgconfigdir}/*.pc | |
112 | %{_infodir}/*.info* | |
113 | ||
114 | %files static | |
115 | %defattr(644,root,root,755) | |
116 | %{_libdir}/lib*.a |