]>
Commit | Line | Data |
---|---|---|
d64e5f65 JB |
1 | # |
2 | # Conditional build: | |
2a083a0b | 3 | %bcond_with apidocs # API documentation |
29727ce1 | 4 | |
d64e5f65 JB |
5 | Summary: Generator Runner - calling binding generator front-ends |
6 | Summary(pl.UTF-8): Generator Runner - wywoływanie frontendów generatorów wiązań | |
7 | Name: generatorrunner | |
8 | Version: 0.6.16 | |
29727ce1 | 9 | Release: 2 |
d64e5f65 JB |
10 | License: GPL v2 |
11 | Group: Development/Tools | |
4e67ec9a JB |
12 | #Source0Download: https://github.com/PySide/Generatorrunner/releases |
13 | Source0: https://github.com/PySide/Generatorrunner/archive/%{version}/%{name}-%{version}.tar.gz | |
d64e5f65 JB |
14 | # Source0-md5: 34e60a01f574e5976279510fa9c9069a |
15 | URL: https://github.com/PySide/Generatorrunner | |
16 | BuildRequires: QtCore-devel >= 4.5.0 | |
17 | BuildRequires: apiextractor-devel >= 0.10.10 | |
18 | BuildRequires: cmake >= 2.6 | |
9742a943 | 19 | BuildRequires: rpm-build >= 4.6 |
d64e5f65 JB |
20 | %{?with_apidocs:BuildRequires: sphinx-pdg} |
21 | Requires: apiextractor >= 0.10.10 | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | Generator Runner loads and calls binding generator front-ends. | |
26 | ||
27 | %description -l pl.UTF-8 | |
28 | Generator Runner wczytuje i wywołuje frontendy generatorów wiązań. | |
29 | ||
30 | %package devel | |
31 | Summary: Header files for Generator Runner library and plugins | |
32 | Summary(pl.UTF-8): Pliki nagłówkowe dla biblioteki oraz wtyczek Generator Runnera | |
33 | Group: Development/Libraries | |
34 | Requires: %{name} = %{version}-%{release} | |
35 | ||
36 | %description devel | |
37 | Header files for Generator Runner library and plugins. | |
38 | ||
39 | %description devel -l pl.UTF-8 | |
40 | Pliki nagłówkowe dla biblioteki oraz wtyczek Generator Runnera. | |
41 | ||
42 | %package apidocs | |
43 | Summary: Generator Runner API documentation | |
44 | Summary(pl.UTF-8): Dokumentacja API Generator Runnera | |
45 | Group: Documentation | |
29727ce1 | 46 | BuildArch: noarch |
d64e5f65 JB |
47 | |
48 | %description apidocs | |
49 | Generator Runner API documentation. | |
50 | ||
51 | %description apidocs -l pl.UTF-8 | |
52 | Dokumentacja API Generator Runnera. | |
53 | ||
54 | %prep | |
55 | %setup -q -n Generatorrunner-%{version} | |
56 | ||
57 | %build | |
58 | install -d build | |
59 | cd build | |
60 | %cmake .. | |
61 | %{__make} | |
d64e5f65 JB |
62 | %{?with_apidocs:%{__make} doc} |
63 | ||
64 | %install | |
65 | rm -rf $RPM_BUILD_ROOT | |
d64e5f65 JB |
66 | %{__make} -C build install \ |
67 | DESTDIR=$RPM_BUILD_ROOT | |
68 | ||
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %post -p /sbin/ldconfig | |
73 | %postun -p /sbin/ldconfig | |
74 | ||
75 | %files | |
76 | %defattr(644,root,root,755) | |
77 | %doc AUTHORS | |
78 | %attr(755,root,root) %{_bindir}/docgenerator | |
79 | %attr(755,root,root) %{_bindir}/generatorrunner | |
80 | %attr(755,root,root) %{_libdir}/libgenrunner.so.*.*.* | |
81 | %attr(755,root,root) %ghost %{_libdir}/libgenrunner.so.0.6 | |
82 | %dir %{_libdir}/generatorrunner | |
83 | %attr(755,root,root) %{_libdir}/generatorrunner/qtdoc_generator.so | |
84 | %{_mandir}/man1/docgenerator.1* | |
85 | %{_mandir}/man1/generatorrunner.1* | |
86 | ||
87 | %files devel | |
88 | %defattr(644,root,root,755) | |
89 | %attr(755,root,root) %{_libdir}/libgenrunner.so | |
90 | %{_includedir}/generatorrunner | |
91 | %{_pkgconfigdir}/generatorrunner.pc | |
92 | %{_libdir}/cmake/GeneratorRunner-%{version} | |
93 | ||
94 | %if %{with apidocs} | |
95 | %files apidocs | |
96 | %defattr(644,root,root,755) | |
97 | %doc build/doc/html/{_images,_sources,_static,*.{html,js}} | |
98 | %endif |