Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
546887af33
!9 babl在22.03-lts-next分支升级到和master分支一致0.1.88
Merge pull request !9 from xu_ping/openEuler-22.03-LTS-Next
2022-01-18 02:50:11 +00:00
cherry530
9e7a95565a upgrade babl from 0.1.56 to 0.1.88
Signed-off-by: cherry530 <xuping33@huawei.com>
2021-12-31 11:08:40 +08:00
openeuler-ci-bot
41355da9f1 !8 babl.spec: add chrpath in BuildRequires
From: @chenxi-mao
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2021-10-29 01:29:16 +00:00
Chenxi Mao
732f774361 babl.spec: add chrpath in BuildRequires
previous commit (ffc26f8) introduce chrpath in install section.
To avoid build issue which means someone didn't buid with OBS
can buid this pack successfully, add chrpath to BuildRequires
like other spec did.

Signed-off-by: Chenxi Mao <chenxi.mao@suse.com>
2021-10-28 17:06:27 +08:00
openeuler-ci-bot
9fb25a555b !6 remove rpath
From: @caodongxia
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2021-09-09 12:55:19 +00:00
caodongxia
ffc26f8494 remove rpath 2021-09-09 14:40:45 +08:00
openeuler-ci-bot
44edd9900b !4 增加构建依赖gcc
From: @bzg1107
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2021-06-01 20:43:14 +08:00
baizg1107
8c5897da3b add build requires 2021-06-01 15:32:29 +08:00
openeuler-ci-bot
fcff62b398 !2 add yaml file
Merge pull request !2 from sugarfillet/master
2020-05-09 17:13:23 +08:00
sugarfillet
e307490cbe add yaml file 2020-05-08 15:51:22 +08:00
5 changed files with 81 additions and 38 deletions

Binary file not shown.

BIN
babl-0.1.88.tar.xz Normal file

Binary file not shown.

114
babl.spec
View File

@ -1,46 +1,53 @@
Name: babl Name: babl
Version: 0.1.56 Version: 0.1.88
Release: 3 Release: 1
Summary: Pixel encoding and color space conversion engine in C Summary: Dynamic Pixel Format Translation Library
License: LGPLv3+ and GPLv3+ License: LGPL-3.0-or-later AND GPL-3.0-or-later
URL: http://www.gegl.org/babl/ Group: Development/Libraries/C and C++
Source0: https://download.gimp.org/pub/babl/0.1/%{name}-%{version}.tar.bz2 URL: http://gegl.org/babl/
BuildRequires: librsvg2, automake, autoconf 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 %description
babl is pixel encoding and color space conversion engine in C. It allows converting between babl is a dynamic, any to any, pixel format translation library.
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.
%package devel %package -n typelib-1_0-Babl-0_1
Summary: Development files for %{name} Summary: Introspection bindings for babl
Requires: %{name}%{?_isa} = %{version}-%{release}, pkgconfig Group: System/Libraries
Provides: %{name}-devel-docs%{?_isa} %{name}-devel-docs
Obsoletes: %{name}-devel-docs
%description devel %description -n typelib-1_0-Babl-0_1
This package includes development files for %{name}. babl is a dynamic, any to any, pixel format translation library.
%prep This package provides the GObject Introspection bindings for babl.
%autosetup -p1
%build %package devel
CFLAGS="-fPIC %optflags -fno-strict-aliasing" Summary: Dynamic Pixel Format Translation Library
LDFLAGS="-pie" Group: Development/Libraries/C and C++
%configure --disable-static Requires: glibc-devel
Requires: %{name} = %{version}
%make_build V=1 %description devel
babl is a dynamic, any to any, pixel format translation library.
%install %package vala
make DESTDIR=$RPM_BUILD_ROOT install INSTALL='install -p' 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" %description vala
cp -pr docs/graphics docs/*.html docs/babl.css "$RPM_BUILD_ROOT/%{_docdir}/%{name}-devel/html" babl is a dynamic, any to any, pixel format translation library.
rm -rf "$RPM_BUILD_ROOT/%{_docdir}/%{name}-devel/html"/graphics/Makefile*
%delete_la This package provides Vala bindings for babl.
%check %check
cd tests cd tests
@ -53,23 +60,54 @@ EOF
chmod +x "$problematic" chmod +x "$problematic"
done done
cd - 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 %files
%doc AUTHORS README NEWS
%license COPYING %license COPYING
%doc NEWS
%{_libdir}/*.so.* %{_libdir}/*.so.*
%{_libdir}/babl-0.1/ %{_libdir}/babl-0.1/
%{_libdir}/girepository-1.0/Babl-0.1.typelib
%files devel %files devel
%doc AUTHORS TODO
%{_includedir}/babl-0.1/ %{_includedir}/babl-0.1/
%{_libdir}/*.so %{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}.pc %{_libdir}/pkgconfig/*.pc
%doc %{_docdir}/%{name}-devel/html %{_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 %changelog
* Fri Dec 31 2021 xu_ping <xuping33@huawei.com> - 0.1.88-1
- update to 0.1.88
* Thu Oct 28 2021 Chenxi Mao <chenxi.mao@suse.com> - 0.1.56-6
- Add chrpath in BuildRequires
* Wed Sep 9 2021 caodongxia <caodongxia@huawei.com> - 0.1.56-5
- Remove rpath
* Mon May 31 2021 baizhonggui <baizhonggui@huawei.com> - 0.1.56-4
- Add gcc in BuildRequires
* Fri Dec 13 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.1.56-3 * Fri Dec 13 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.1.56-3
- Package init - Package init

4
babl.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: gitlab.gnome
src_repo: babl
tag_prefix: ^BABL_
seperator: _

1
baselibs.conf Normal file
View File

@ -0,0 +1 @@
libbabl-0_1-0