]>
Commit | Line | Data |
---|---|---|
28aed470 JB |
1 | Summary: ZenLib C++ utility library |
2 | Summary(pl.UTF-8): ZenLib - biblioteka narzędziowa C++ | |
78dc5e3d | 3 | Name: libzen |
bacfefe5 AM |
4 | Version: 0.4.28 |
5 | Release: 1 | |
78dc5e3d AM |
6 | License: BSD |
7 | Group: Libraries | |
28aed470 | 8 | Source0: http://downloads.sourceforge.net/zenlib/%{name}_%{version}.tar.bz2 |
bacfefe5 | 9 | # Source0-md5: f09e519b71e61a7226ffefe55d00eadf |
cfec36c4 | 10 | Patch0: %{name}-include.patch |
28aed470 JB |
11 | URL: http://sourceforge.net/projects/zenlib/ |
12 | BuildRequires: autoconf >= 2.50 | |
13 | BuildRequires: automake >= 1:1.11 | |
78dc5e3d AM |
14 | BuildRequires: doxygen |
15 | BuildRequires: libstdc++-devel | |
28aed470 | 16 | BuildRequires: libtool >= 2:1.5 |
cfec36c4 KK |
17 | BuildRequires: rpmbuild(macros) >= 1.566 |
18 | BuildRequires: sed >= 4.0 | |
78dc5e3d AM |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
28aed470 JB |
22 | ZenLib is a C++ utility library. It includes classes for handling |
23 | strings, configuration, bit streams, threading, translation, and | |
24 | cross-platform operating system functions. | |
25 | ||
26 | %description -l pl.UTF-8 | |
27 | ZenLib to biblioteka narzędziowa C++. Zawiera klasy do obsługi | |
28 | łańcuchów znaków, konfiguracji, strumieni bitowych, wątków, | |
29 | tłumaczeń oraz wieloplatformowe funkcji dotyczące systemu | |
30 | operacyjnego. | |
78dc5e3d | 31 | |
6f42a672 | 32 | %package devel |
28aed470 JB |
33 | Summary: Header files for ZenLib library |
34 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ZenLib | |
78dc5e3d AM |
35 | Group: Development/Libraries |
36 | Requires: %{name} = %{version}-%{release} | |
28aed470 | 37 | Requires: libstdc++-devel |
78dc5e3d | 38 | |
6f42a672 | 39 | %description devel |
28aed470 JB |
40 | Header files for ZenLib library. |
41 | ||
42 | %description devel -l pl.UTF-8 | |
43 | Pliki nagłówkowe biblioteki ZenLib. | |
78dc5e3d AM |
44 | |
45 | %package static | |
28aed470 JB |
46 | Summary: Static ZenLib library |
47 | Summary(pl.UTF-8): Statyczna biblioteka ZenLib | |
78dc5e3d AM |
48 | Group: Development/Libraries |
49 | Requires: %{name}-devel = %{version}-%{release} | |
50 | ||
51 | %description static | |
28aed470 JB |
52 | Static ZenLib library. |
53 | ||
54 | %description static -l pl.UTF-8 | |
55 | Statyczna biblioteka ZenLib. | |
78dc5e3d AM |
56 | |
57 | %prep | |
58 | %setup -q -n ZenLib | |
cfec36c4 KK |
59 | %undos Source/ZenLib/*.h |
60 | %undos *.txt Source/Doc/*.html | |
78dc5e3d | 61 | chmod 644 *.txt Source/Doc/*.html |
cfec36c4 | 62 | %patch0 -p1 |
78dc5e3d AM |
63 | |
64 | %build | |
78dc5e3d | 65 | cd Project/GNU/Library |
28aed470 JB |
66 | %{__libtoolize} |
67 | %{__aclocal} | |
68 | %{__autoconf} | |
69 | %{__automake} | |
70 | %configure \ | |
71 | --enable-shared | |
72 | %{__make} clean | |
73 | %{__make} | |
74 | cd ../../../Source/Doc | |
75 | doxygen Doxyfile | |
78dc5e3d AM |
76 | |
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
28aed470 | 80 | %{__make} -C Project/GNU/Library install \ |
78dc5e3d AM |
81 | DESTDIR=$RPM_BUILD_ROOT |
82 | ||
83 | # Zenlib headers and ZenLib-config | |
2818d978 ER |
84 | install -d $RPM_BUILD_ROOT%{_includedir}/ZenLib |
85 | cp -a Source/ZenLib/*.h $RPM_BUILD_ROOT%{_includedir}/ZenLib | |
78dc5e3d | 86 | |
bacfefe5 | 87 | for i in HTTP_Client Format/Html Format/Http; do |
2818d978 ER |
88 | install -d $RPM_BUILD_ROOT%{_includedir}/ZenLib/$i |
89 | cp -a Source/ZenLib/$i/*.h $RPM_BUILD_ROOT%{_includedir}/ZenLib/$i | |
78dc5e3d AM |
90 | done |
91 | ||
28aed470 | 92 | %{__sed} -i -e 's|Version: .*|Version: %{version}|g' Project/GNU/Library/libzen.pc |
78dc5e3d | 93 | |
2818d978 ER |
94 | install -d $RPM_BUILD_ROOT%{_pkgconfigdir} |
95 | cp -a Project/GNU/Library/libzen.pc $RPM_BUILD_ROOT%{_pkgconfigdir} | |
78dc5e3d AM |
96 | |
97 | %clean | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
28aed470 JB |
100 | %post -p /sbin/ldconfig |
101 | %postun -p /sbin/ldconfig | |
78dc5e3d AM |
102 | |
103 | %files | |
104 | %defattr(644,root,root,755) | |
105 | %doc History.txt License.txt ReadMe.txt | |
28aed470 JB |
106 | %attr(755,root,root) %{_libdir}/libzen.so.*.*.* |
107 | %attr(755,root,root) %ghost %{_libdir}/libzen.so.0 | |
78dc5e3d AM |
108 | |
109 | %files devel | |
110 | %defattr(644,root,root,755) | |
28aed470 JB |
111 | # Documentation.html expects Doc/index.html |
112 | %doc Source/Doc/Documentation.html Doc | |
bacfefe5 | 113 | %attr(755,root,root) %{_bindir}/libzen-config |
78dc5e3d | 114 | %attr(755,root,root) %{_libdir}/libzen.so |
28aed470 JB |
115 | %{_libdir}/libzen.la |
116 | %{_includedir}/ZenLib | |
117 | %{_pkgconfigdir}/libzen.pc | |
78dc5e3d AM |
118 | |
119 | %files static | |
120 | %defattr(644,root,root,755) | |
121 | %{_libdir}/libzen.a |