]> git.pld-linux.org Git - packages/graphene.git/blobdiff - graphene.spec
- updated to 1.10.8
[packages/graphene.git] / graphene.spec
index 04c364f167f4c4e533039ff84d4ecebb9b0a8cb0..ea8cfff5499f03075b03a49569351bd319f764d2 100644 (file)
@@ -7,27 +7,33 @@
 %bcond_with    sse2            # x86 SSE2 fast paths
 %bcond_without armneon         # ARM NEON fast paths
 
-%ifarch pentium4 %{x8664}
+%ifarch pentium4 %{x8664} x32
 %define        with_sse2       1
 %endif
 Summary:       Graphene - a thin layer of types for graphic libraries
 Summary(pl.UTF-8):     Graphene - cienka warstwa typów dla bibliotek graficznych
 Name:          graphene
-Version:       1.2.10
-Release:       2
+Version:       1.10.8
+Release:       1
 License:       MIT
 Group:         Libraries
-Source0:       http://ftp.gnome.org/pub/GNOME/sources/graphene/1.2/%{name}-%{version}.tar.xz
-# Source0-md5: 07b2a7b84e993370fc8915a92a34d7e6
-Patch0:                %{name}-gcc.patch
+Source0:       https://download.gnome.org/sources/graphene/1.10/%{name}-%{version}.tar.xz
+# Source0-md5: 169e3c507b5a5c26e9af492412070b81
 URL:           https://github.com/ebassi/graphene
-BuildRequires: autoconf >= 2.63
-BuildRequires: automake >= 1:1.11
+%if %{with sse2} || %{with armneon}
+BuildRequires: gcc >= 6:4.9
+%else
+BuildRequires: gcc >= 5:3.2
+%endif
 BuildRequires: glib2-devel >= 1:2.40.0
 %{?with_introspection:BuildRequires:   gobject-introspection-devel >= 1.41.0}
 BuildRequires: gtk-doc >= 1.20
-BuildRequires: libtool >= 2:2.2.6
+BuildRequires: meson >= 0.55.3
+BuildRequires: ninja >= 1.5
 BuildRequires: pkgconfig
+BuildRequires: python3 >= 1:3
+BuildRequires: rpm-build >= 4.6
+BuildRequires: rpmbuild(macros) >= 1.736
 BuildRequires: tar >= 1:1.22
 BuildRequires: xz
 Requires:      glib2 >= 1:2.40.0
@@ -72,9 +78,7 @@ Statyczna biblioteka Graphene.
 Summary:       API documentation for Graphene library
 Summary(pl.UTF-8):     Dokumentacja API biblioteki Graphene
 Group:         Documentation
-%if "%{_rpmversion}" >= "5"
 BuildArch:     noarch
-%endif
 
 %description apidocs
 API documentation for Graphene library.
@@ -84,32 +88,21 @@ Dokumentacja API biblioteki Graphene.
 
 %prep
 %setup -q
-%patch0 -p1
 
 %build
-%{__gtkdocize}
-%{__libtoolize}
-%{__aclocal} -I build/autotools
-%{__autoconf}
-%{__autoheader}
-%{__automake}
-%configure \
-       %{!?with_armneon:--disable-arm-neon} \
-       %{!?with_introspection:--disable-introspection} \
-       --disable-silent-rules \
-       %{!?with_sse2:--disable-sse2} \
-       %{?with_static_libs:--enable-static} \
-       --with-html-dir=%{_gtkdocdir}
-%{__make}
+%meson build \
+       %{!?with_armneon:-Darm_neon=false} \
+       -Dgtk_doc=true \
+       %{!?with_introspection:-Dintrospection=false} \
+       %{!?with_sse2:-Dsse2=false} \
+       -Dtests=false
+
+%ninja_build -C build
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install \
-       DESTDIR=$RPM_BUILD_ROOT
-
-# obsoleted by pkg-config
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/libgraphene-1.0.la
+%ninja_install -C build
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -119,7 +112,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc ChangeLog
+%doc LICENSE.txt README.md
 %attr(755,root,root) %{_libdir}/libgraphene-1.0.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libgraphene-1.0.so.0
 %if %{with introspection}
This page took 0.05346 seconds and 4 git commands to generate.