babl/babl.spec

116 lines
2.9 KiB
RPMSpec
Raw Normal View History

2021-08-30 07:56:42 +00:00
Name: babl
Version: 0.1.106
Release: 1
2021-08-30 07:56:42 +00:00
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/
Source0: https://download.gimp.org/pub/babl/0.1/%{name}-%{version}.tar.xz
Source99: baselibs.conf
2021-08-30 07:56:42 +00:00
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')
2019-12-17 16:27:06 +08:00
%description
2021-08-30 07:56:42 +00:00
babl is a dynamic, any to any, pixel format translation library.
2019-12-17 16:27:06 +08:00
2021-08-30 07:56:42 +00:00
%package -n typelib-1_0-Babl-0_1
Summary: Introspection bindings for babl
Group: System/Libraries
2019-12-17 16:27:06 +08:00
2021-08-30 07:56:42 +00:00
%description -n typelib-1_0-Babl-0_1
babl is a dynamic, any to any, pixel format translation library.
2019-12-17 16:27:06 +08:00
2021-08-30 07:56:42 +00:00
This package provides the GObject Introspection bindings for babl.
2019-12-17 16:27:06 +08:00
2021-08-30 07:56:42 +00:00
%package devel
Summary: Dynamic Pixel Format Translation Library
Group: Development/Libraries/C and C++
Requires: glibc-devel
Requires: %{name} = %{version}
2019-12-17 16:27:06 +08:00
2021-08-30 07:56:42 +00:00
%description devel
babl is a dynamic, any to any, pixel format translation library.
2019-12-17 16:27:06 +08:00
2021-08-30 07:56:42 +00:00
%package vala
Summary: Vala Bindings to the Dynamic Pixel Format Translation Library
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: vala
%description vala
babl is a dynamic, any to any, pixel format translation library.
2019-12-17 16:27:06 +08:00
2021-08-30 07:56:42 +00:00
This package provides Vala bindings for babl.
2019-12-17 16:27:06 +08:00
%check
cd tests
for problematic in %nil; do
rm -f "$problematic"
cat << EOF > "$problematic"
#!/bin/sh
echo Skipping test "$problematic"
EOF
chmod +x "$problematic"
done
cd -
2021-08-30 07:56:42 +00:00
%meson_test
%prep
%autosetup -p1
2019-12-17 16:27:06 +08:00
2021-08-30 07:56:42 +00:00
%build
sed "s,@BABL_GIT_VERSION@,%{version},g" git-version.h.in > git-version.h
%meson -Dwith-docs=false \
%{nil}
%meson_build
2019-12-17 16:27:06 +08:00
2021-08-30 07:56:42 +00:00
%install
%meson_install
mv %{buildroot}%{_datadir}/vala %{buildroot}%{_datadir}/vala-%{vala_version}
%post -n %{name} -p /sbin/ldconfig
%postun -n %{name} -p /sbin/ldconfig
2019-12-17 16:27:06 +08:00
%files
%license COPYING
2021-08-30 07:56:42 +00:00
%doc NEWS
%{_bindir}/%{name}
2019-12-17 16:27:06 +08:00
%{_libdir}/*.so.*
%{_libdir}/babl-0.1/
2021-08-30 07:56:42 +00:00
%{_libdir}/girepository-1.0/Babl-0.1.typelib
2019-12-17 16:27:06 +08:00
%files devel
2021-08-30 07:56:42 +00:00
%doc AUTHORS TODO
2019-12-17 16:27:06 +08:00
%{_includedir}/babl-0.1/
%{_libdir}/*.so
2021-08-30 07:56:42 +00:00
%{_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
2019-12-17 16:27:06 +08:00
%changelog
* Wed Oct 18 2023 xu_ping <707078654@qq.com> - 0.1.106-1
- Upgrade version to 0.1.106
2023-01-18 15:52:17 +08:00
* Wed Jan 18 2023 yaoxin <yaoxin30@h-partners.com> - 0.1.88-2
- Fix build error
2021-08-30 07:56:42 +00:00
* Tue Aug 24 2021 chenchen <chen_aka_jan@163.com> - 0.1.88-1
- update to 0.1.88
2021-06-01 15:32:29 +08:00
* Mon May 31 2021 baizhonggui <baizhonggui@huawei.com> - 0.1.56-4
- Add gcc in BuildRequires
2019-12-17 16:27:06 +08:00
* Fri Dec 13 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.1.56-3
- Package init