]>
Commit | Line | Data |
---|---|---|
867e1d84 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
4a363432 | 4 | |
867e1d84 JB |
5 | Summary: Fast XML Pull Parser |
6 | Summary(pl.UTF-8): Fast XML Pull Parser - szybki analizator XML-a | |
7 | Name: faxpp | |
8 | Version: 0.4 | |
2c8bbe69 | 9 | Release: 3 |
867e1d84 JB |
10 | License: Apache v2.0 |
11 | Group: Libraries | |
12 | Source0: http://downloads.sourceforge.net/faxpp/%{name}-%{version}.tar.gz | |
13 | # Source0-md5: cf9a8f4301699710fd93eb0c854fc420 | |
14 | URL: http://faxpp.sourceforge.net/ | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
18 | Faxpp is a small, fast and conformant XML pull parser written in C | |
19 | with an API that can return strings in any encoding including UTF-8 | |
20 | and UTF-16. Faxpp is written by John Snelson, and is released under | |
21 | the terms of the Apache Licence v2. | |
22 | ||
23 | %description -l pl.UTF-8 | |
24 | Faxpp to mały, szybki i zgodny ze standardem analizator XML-a napisany | |
25 | w C z API mogącym zwracać łańcuchy znaków w dowolnym kodowaniu, | |
26 | włącznie z UTF-8 i UTF-16. Faxpp został napisany przez Johna Snelsona | |
27 | i wydany na warunkach licencji Apache v2. | |
28 | ||
29 | %package devel | |
30 | Summary: Header files for faxpp library | |
31 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki faxpp | |
32 | Group: Development/Libraries | |
33 | Requires: %{name} = %{version}-%{release} | |
34 | ||
35 | %description devel | |
36 | Header files for faxpp library. | |
37 | ||
38 | %description devel -l pl.UTF-8 | |
39 | Pliki nagłówkowe biblioteki faxpp. | |
40 | ||
41 | %package static | |
42 | Summary: Static faxpp library | |
43 | Summary(pl.UTF-8): Statyczna biblioteka faxpp | |
44 | Group: Development/Libraries | |
45 | Requires: %{name}-devel = %{version}-%{release} | |
46 | ||
47 | %description static | |
48 | Static faxpp library. | |
49 | ||
50 | %description static -l pl.UTF-8 | |
51 | Statyczna biblioteka faxpp. | |
52 | ||
53 | %package apidocs | |
54 | Summary: faxpp API documentation | |
55 | Summary(pl.UTF-8): Dokumentacja API biblioteki faxpp | |
56 | Group: Documentation | |
4a363432 | 57 | BuildArch: noarch |
867e1d84 JB |
58 | |
59 | %description apidocs | |
60 | API and internal documentation for faxpp library. | |
61 | ||
62 | %description apidocs -l pl.UTF-8 | |
63 | Dokumentacja API biblioteki faxpp. | |
64 | ||
65 | %prep | |
66 | %setup -q | |
67 | ||
68 | %build | |
69 | %configure | |
70 | ||
71 | %{__make} | |
72 | ||
73 | %install | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %{__make} install \ | |
77 | DESTDIR=$RPM_BUILD_ROOT | |
78 | ||
79 | %clean | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
82 | %post -p /sbin/ldconfig | |
83 | %postun -p /sbin/ldconfig | |
84 | ||
85 | %files | |
86 | %defattr(644,root,root,755) | |
87 | %doc ChangeLog TODO | |
88 | %attr(755,root,root) %{_libdir}/libfaxpp.so.*.*.* | |
89 | %attr(755,root,root) %ghost %{_libdir}/libfaxpp.so.2 | |
90 | ||
91 | %files devel | |
92 | %defattr(644,root,root,755) | |
93 | %attr(755,root,root) %{_libdir}/libfaxpp.so | |
94 | %{_libdir}/libfaxpp.la | |
95 | %{_includedir}/faxpp | |
96 | ||
97 | %files static | |
98 | %defattr(644,root,root,755) | |
99 | %{_libdir}/libfaxpp.a | |
100 | ||
101 | %if %{with apidocs} | |
102 | %files apidocs | |
103 | %defattr(644,root,root,755) | |
104 | %doc docs/{api,header.html} | |
105 | %endif |