babl/babl.spec

87 lines
2.3 KiB
RPMSpec
Raw Normal View History

2019-12-17 16:27:06 +08:00
Name: babl
Version: 0.1.56
Release: 6
2019-12-17 16:27:06 +08:00
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
BuildRequires: librsvg2, automake, autoconf, gcc, chrpath
2019-12-17 16:27:06 +08:00
%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.
%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
%description devel
This package includes development files for %{name}.
%prep
%autosetup -p1
%build
CFLAGS="-fPIC %optflags -fno-strict-aliasing"
LDFLAGS="-pie"
%configure --disable-static
%make_build V=1
%install
make DESTDIR=$RPM_BUILD_ROOT install INSTALL='install -p'
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
2021-09-09 14:40:45 +08:00
chrpath -d %{buildroot}/%{_libdir}/%{name}-0.1/*.so
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 -
make check
%ldconfig_scriptlets
%files
%doc AUTHORS README NEWS
%license COPYING
%{_libdir}/*.so.*
%{_libdir}/babl-0.1/
%files devel
%{_includedir}/babl-0.1/
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}.pc
%doc %{_docdir}/%{name}-devel/html
%changelog
* Thu Oct 28 2021 Chenxi Mao <chenxi.mao@suse.com> - 0.1.56-6
- Add chrpath in BuildRequires
2021-09-09 14:40:45 +08:00
* Wed Sep 9 2021 caodongxia <caodongxia@huawei.com> - 0.1.56-5
- Remove rpath
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