diff --git a/babl-0.1.56.tar.bz2 b/babl-0.1.56.tar.bz2 deleted file mode 100644 index b22329f..0000000 Binary files a/babl-0.1.56.tar.bz2 and /dev/null differ diff --git a/babl-0.1.88.tar.xz b/babl-0.1.88.tar.xz new file mode 100644 index 0000000..8ce8d00 Binary files /dev/null and b/babl-0.1.88.tar.xz differ diff --git a/babl.spec b/babl.spec index 3d40260..588d110 100644 --- a/babl.spec +++ b/babl.spec @@ -1,48 +1,53 @@ -Name: babl -Version: 0.1.56 -Release: 6 -Summary: Pixel encoding and color space conversion engine in C -License: LGPLv3+ and GPLv3+ -URL: http://www.gegl.org/babl/ -Source0: https://download.gimp.org/pub/babl/0.1/%{name}-%{version}.tar.bz2 +Name: babl +Version: 0.1.88 +Release: 1 +Summary: Dynamic Pixel Format Translation Library +License: LGPL-3.0-or-later AND GPL-3.0-or-later +Group: Development/Libraries/C and C++ +URL: http://gegl.org/babl/ -BuildRequires: librsvg2, automake, autoconf, gcc, chrpath +Source0: https://download.gimp.org/pub/babl/0.1/%{name}-%{version}.tar.xz +Source99: baselibs.conf +BuildRequires: meson +BuildRequires: pkgconfig +BuildRequires: vala +BuildRequires: pkgconfig(gobject-introspection-1.0) +BuildRequires: pkgconfig(lcms2) +BuildRequires: pkgconfig(vapigen) + +%define vala_version %(rpm -q --queryformat='%%{VERSION}' vala | sed 's/\.[0-9]*$//g') %description -babl is pixel encoding and color space conversion engine in C. It allows converting between -different methods of storing pixels known as pixel formats that have with different bitdepths -and other data representations, color models, color spaces and component permutations. -A vocabulary to formulate new pixel formats from existing primitives is provided as well as -the framework to add new color models, spaces and data types. +babl is a dynamic, any to any, pixel format translation library. -%package devel -Summary: Development files for %{name} -Requires: %{name}%{?_isa} = %{version}-%{release}, pkgconfig -Provides: %{name}-devel-docs%{?_isa} %{name}-devel-docs -Obsoletes: %{name}-devel-docs +%package -n typelib-1_0-Babl-0_1 +Summary: Introspection bindings for babl +Group: System/Libraries -%description devel -This package includes development files for %{name}. +%description -n typelib-1_0-Babl-0_1 +babl is a dynamic, any to any, pixel format translation library. -%prep -%autosetup -p1 +This package provides the GObject Introspection bindings for babl. -%build -CFLAGS="-fPIC %optflags -fno-strict-aliasing" -LDFLAGS="-pie" -%configure --disable-static +%package devel +Summary: Dynamic Pixel Format Translation Library +Group: Development/Libraries/C and C++ +Requires: glibc-devel +Requires: %{name} = %{version} -%make_build V=1 +%description devel +babl is a dynamic, any to any, pixel format translation library. -%install -make DESTDIR=$RPM_BUILD_ROOT install INSTALL='install -p' +%package vala +Summary: Vala Bindings to the Dynamic Pixel Format Translation Library +Group: Development/Libraries/C and C++ +Requires: %{name} = %{version} +Requires: vala -install -d "$RPM_BUILD_ROOT/%{_docdir}/%{name}-devel/html" -cp -pr docs/graphics docs/*.html docs/babl.css "$RPM_BUILD_ROOT/%{_docdir}/%{name}-devel/html" -rm -rf "$RPM_BUILD_ROOT/%{_docdir}/%{name}-devel/html"/graphics/Makefile* -%delete_la +%description vala +babl is a dynamic, any to any, pixel format translation library. -chrpath -d %{buildroot}/%{_libdir}/%{name}-0.1/*.so +This package provides Vala bindings for babl. %check cd tests @@ -55,24 +60,46 @@ EOF chmod +x "$problematic" done cd - +%meson_test -make check +%prep +%autosetup -p1 -%ldconfig_scriptlets +%build +sed "s,@BABL_GIT_VERSION@,%{version},g" git-version.h.in > git-version.h +%meson -Dwith-docs=false \ + %{nil} +%meson_build + +%install +%meson_install +mv %{buildroot}%{_datadir}/vala %{buildroot}%{_datadir}/vala-%{vala_version} + +%post -n %{name} -p /sbin/ldconfig +%postun -n %{name} -p /sbin/ldconfig %files -%doc AUTHORS README NEWS %license COPYING +%doc NEWS %{_libdir}/*.so.* %{_libdir}/babl-0.1/ +%{_libdir}/girepository-1.0/Babl-0.1.typelib %files devel +%doc AUTHORS TODO %{_includedir}/babl-0.1/ %{_libdir}/*.so -%{_libdir}/pkgconfig/%{name}.pc -%doc %{_docdir}/%{name}-devel/html +%{_libdir}/pkgconfig/*.pc +%{_datadir}/gir-1.0/Babl-0.1.gir + +%files vala +%{_datadir}/vala-%{vala_version}/vapi/babl-0.1.deps +%{_datadir}/vala-%{vala_version}/vapi/babl-0.1.vapi %changelog +* Fri Dec 31 2021 xu_ping - 0.1.88-1 +- update to 0.1.88 + * Thu Oct 28 2021 Chenxi Mao - 0.1.56-6 - Add chrpath in BuildRequires diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..b1c4fc4 --- /dev/null +++ b/baselibs.conf @@ -0,0 +1 @@ +libbabl-0_1-0