1 # NOTE: despite some comments in configure, SSE2 is not selected at runtime;
2 # SSE2 option seems to change the ABI of library
5 %bcond_without static_libs # static library
6 %bcond_without introspection # gobject introspection
7 %bcond_with sse2 # x86 SSE2 fast paths
8 %bcond_without armneon # ARM NEON fast paths
10 %ifarch pentium4 %{x8664}
13 Summary: Graphene - a thin layer of types for graphic libraries
14 Summary(pl.UTF-8): Graphene - cienka warstwa typów dla bibliotek graficznych
20 Source0: http://ftp.gnome.org/pub/GNOME/sources/graphene/1.8/%{name}-%{version}.tar.xz
21 # Source0-md5: 87e023dcf748da9fb83bed4f18f6a8e6
22 Patch0: %{name}-gir.patch
23 URL: https://github.com/ebassi/graphene
24 BuildRequires: gcc >= 5:3.2
26 BuildRequires: gcc >= 6:4.9
28 BuildRequires: glib2-devel >= 1:2.40.0
29 %{?with_introspection:BuildRequires: gobject-introspection-devel >= 1.41.0}
30 BuildRequires: gtk-doc >= 1.20
31 BuildRequires: meson >= 0.43.1
33 BuildRequires: pkgconfig
34 %{?with_introspection:BuildRequires: python3 >= 1:3}
35 BuildRequires: tar >= 1:1.22
37 Requires: glib2 >= 1:2.40.0
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 Graphene provides a small set of mathematical types needed to
42 implement graphic libraries that deal with 2D and 3D transformations
45 %description -l pl.UTF-8
46 Graphene udostępnia mały zestaw typów matematycznych potrzebnych przy
47 implementowaniu bibliotek graficznych wykonujących przekształcenia i
51 Summary: Header files for Graphene library
52 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Graphene
53 Group: Development/Libraries
54 Requires: %{name} = %{version}-%{release}
55 Requires: glib2-devel >= 1:2.40.0
58 Header files for Graphene library.
60 %description devel -l pl.UTF-8
61 Pliki nagłówkowe biblioteki Graphene.
64 Summary: Static Graphene library
65 Summary(pl.UTF-8): Statyczna biblioteka Graphene
66 Group: Development/Libraries
67 Requires: %{name}-devel = %{version}-%{release}
70 Static Graphene library.
72 %description static -l pl.UTF-8
73 Statyczna biblioteka Graphene.
76 Summary: API documentation for Graphene library
77 Summary(pl.UTF-8): Dokumentacja API biblioteki Graphene
79 %if "%{_rpmversion}" >= "5"
84 API documentation for Graphene library.
86 %description apidocs -l pl.UTF-8
87 Dokumentacja API biblioteki Graphene.
95 %{!?with_armneon:-Darm_neon=false} \
97 %{!?with_introspection:-Dintrospection=false} \
98 %{!?with_sse2:-Dsse2=false} \
101 %meson_build -C build
104 rm -rf $RPM_BUILD_ROOT
106 %meson_install -C build
109 rm -rf $RPM_BUILD_ROOT
111 %post -p /sbin/ldconfig
112 %postun -p /sbin/ldconfig
115 %defattr(644,root,root,755)
116 %doc LICENSE README.md
117 %attr(755,root,root) %{_libdir}/libgraphene-1.0.so.*.*.*
118 %attr(755,root,root) %ghost %{_libdir}/libgraphene-1.0.so.0
119 %if %{with introspection}
120 %{_libdir}/girepository-1.0/Graphene-1.0.typelib
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_libdir}/libgraphene-1.0.so
126 %{_includedir}/graphene-1.0
127 %dir %{_libdir}/graphene-1.0
128 %{_libdir}/graphene-1.0/include
129 %if %{with introspection}
130 %{_datadir}/gir-1.0/Graphene-1.0.gir
132 %{_pkgconfigdir}/graphene-1.0.pc
133 %{_pkgconfigdir}/graphene-gobject-1.0.pc
135 %if %{with static_libs}
137 %defattr(644,root,root,755)
138 %{_libdir}/libgraphene-1.0.a
142 %defattr(644,root,root,755)
143 %{_gtkdocdir}/graphene