]>
Commit | Line | Data |
---|---|---|
69d361f0 JB |
1 | # |
2 | # Conditional build: | |
6788c99c | 3 | %bcond_with apidocs # API documentation |
69d361f0 JB |
4 | # |
5 | Summary: Qt4 Binding Generator library | |
6 | Summary(pl.UTF-8): Biblioteka do generowania wiązań Qt4 | |
7 | Name: apiextractor | |
8 | Version: 0.10.10 | |
6788c99c | 9 | Release: 2 |
69d361f0 JB |
10 | License: GPL v2 |
11 | Group: Libraries | |
12 | Source0: https://github.com/PySide/Apiextractor/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz | |
13 | # Source0-md5: 62192889eed581edb7e755cf4be054b2 | |
14 | URL: https://github.com/PySide/Apiextractor | |
15 | BuildRequires: QtCore-devel >= 4.5.0 | |
16 | BuildRequires: QtXml-devel >= 4.5.0 | |
17 | BuildRequires: QtXmlPatterns-devel >= 4.5.0 | |
18 | BuildRequires: cmake >= 2.6 | |
19 | BuildRequires: libxml2-devel >= 1:2.6.32 | |
20 | BuildRequires: libxslt-devel >= 1.1.19 | |
21 | %{?with_apidocs:BuildRequires: sphinx-pdg} | |
22 | Requires: QtCore >= 4.5.0 | |
23 | Requires: libxml2 >= 1:2.6.32 | |
24 | Requires: libxslt >= 1.1.19 | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | Qt4 Binding Generator library. | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | Biblioteka do generowania wiązań Qt4. | |
32 | ||
33 | %package devel | |
34 | Summary: Header files for ApiExtractor library | |
35 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ApiExtractor | |
36 | Group: Development/Libraries | |
37 | Requires: %{name} = %{version}-%{release} | |
38 | Requires: QtCore-devel >= 4.5.0 | |
39 | ||
40 | %description devel | |
41 | Header files for ApiExtractor library. | |
42 | ||
43 | %description devel -l pl.UTF-8 | |
44 | Pliki nagłówkowe biblioteki ApiExtractor. | |
45 | ||
46 | %package apidocs | |
47 | Summary: ApiExtractor API documentation | |
48 | Summary(pl.UTF-8): Dokumentacja API biblioteki ApiExtractor | |
49 | Group: Documentation | |
50 | ||
51 | %description apidocs | |
52 | ApiExtractor API documentation. | |
53 | ||
54 | %description apidocs -l pl.UTF-8 | |
55 | Dokumentacja API biblioteki ApiExtractor. | |
56 | ||
57 | %prep | |
58 | %setup -q -n Apiextractor-%{version} | |
59 | ||
60 | %build | |
61 | install -d build | |
62 | cd build | |
63 | %cmake .. | |
64 | %{__make} | |
65 | ||
66 | %{?with_apidocs:%{__make} doc} | |
67 | ||
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %{__make} -C build install \ | |
72 | DESTDIR=$RPM_BUILD_ROOT | |
73 | ||
74 | %clean | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %post -p /sbin/ldconfig | |
78 | %postun -p /sbin/ldconfig | |
79 | ||
80 | %files | |
81 | %defattr(644,root,root,755) | |
82 | %doc AUTHORS | |
83 | %attr(755,root,root) %{_libdir}/libapiextractor.so.*.*.* | |
84 | %attr(755,root,root) %ghost %{_libdir}/libapiextractor.so.0.10 | |
85 | ||
86 | %files devel | |
87 | %defattr(644,root,root,755) | |
88 | %attr(755,root,root) %{_libdir}/libapiextractor.so | |
89 | %{_includedir}/apiextractor | |
90 | %{_pkgconfigdir}/apiextractor.pc | |
91 | %{_libdir}/cmake/ApiExtractor-%{version} | |
92 | ||
93 | %if %{with apidocs} | |
94 | %files apidocs | |
95 | %defattr(644,root,root,755) | |
96 | %doc build/doc/html/{_sources,_static,*.{html,js}} | |
97 | %endif |