split off devel-docs subpackage to make package multi-lib compliant
(#477807) let devel package require correct arch of base package
This commit is contained in:
parent
aa459b5895
commit
f2a56dbce2
39
babl.spec
39
babl.spec
@ -1,7 +1,7 @@
|
|||||||
Summary: A dynamic, any to any, pixel format conversion library
|
Summary: A dynamic, any to any, pixel format conversion library
|
||||||
Name: babl
|
Name: babl
|
||||||
Version: 0.1.2
|
Version: 0.1.2
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
# The gggl codes contained in this package are under the GPL, with exceptions allowing their use under libraries covered under the LGPL
|
# The gggl codes contained in this package are under the GPL, with exceptions allowing their use under libraries covered under the LGPL
|
||||||
License: LGPLv3+ and GPLv3+
|
License: LGPLv3+ and GPLv3+
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
@ -10,6 +10,8 @@ Source0: ftp://ftp.gtk.org/pub/babl/0.1/%{name}-%{version}.tar.bz2
|
|||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildRequires: librsvg2 w3m
|
BuildRequires: librsvg2 w3m
|
||||||
|
|
||||||
|
%global develdocdir %{_docdir}/%{name}-devel-%{version}/html
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Babl is a dynamic, any to any, pixel format conversion library. It
|
Babl is a dynamic, any to any, pixel format conversion library. It
|
||||||
provides conversions between the myriad of buffer types images can be
|
provides conversions between the myriad of buffer types images can be
|
||||||
@ -19,13 +21,28 @@ facilitates creation of new and uncommon ones.
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Headers for developing programs that will use %{name}
|
Summary: Headers for developing programs that will use %{name}
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
Requires: pkgconfig
|
Requires: pkgconfig
|
||||||
|
# Split off devel docs from 0.1.2-2 on
|
||||||
|
Obsoletes: %{name}-devel < 0.1.2-2%{?dist}
|
||||||
|
Conflicts: %{name}-devel < 0.1.2-2%{?dist}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
This package contains the libraries and header files needed for
|
This package contains the libraries and header files needed for
|
||||||
developing with %{name}.
|
developing with %{name}.
|
||||||
|
|
||||||
|
%package devel-docs
|
||||||
|
Summary: Documentation for developing programs that will use %{name}
|
||||||
|
Group: Documentation
|
||||||
|
BuildArch: noarch
|
||||||
|
Requires: %{name}-devel = %{version}-%{release}
|
||||||
|
# Split off devel docs from 0.1.2-2 on
|
||||||
|
Obsoletes: %{name}-devel < 0.1.2-2%{?dist}
|
||||||
|
Conflicts: %{name}-devel < 0.1.2-2%{?dist}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
This package contains documentation needed for developing with %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
@ -38,15 +55,12 @@ make V=1 %{?_smp_mflags}
|
|||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
make DESTDIR=%{buildroot} install INSTALL='install -p'
|
make DESTDIR=%{buildroot} install INSTALL='install -p'
|
||||||
|
|
||||||
mkdir -p babl_docs babl_docs/html
|
mkdir -p "%{buildroot}/%{develdocdir}"
|
||||||
cp -pr docs/graphics docs/*.html docs/babl.css babl_docs/html
|
cp -pr docs/graphics docs/*.html docs/babl.css "%{buildroot}/%{develdocdir}"
|
||||||
rm -rf babl_docs/html/graphics/Makefile*
|
rm -rf "%{buildroot}/%{develdocdir}"/graphics/Makefile*
|
||||||
|
|
||||||
find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
|
find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
|
||||||
|
|
||||||
# fix timestamps for multilib
|
|
||||||
touch -m --reference=docs/Makefile.am babl_docs/html{,/graphics}/*
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check
|
make check
|
||||||
|
|
||||||
@ -65,12 +79,19 @@ rm -rf %{buildroot}
|
|||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-, root, root, -)
|
%defattr(-, root, root, -)
|
||||||
%doc babl_docs/html
|
|
||||||
%{_includedir}/babl-0.1/
|
%{_includedir}/babl-0.1/
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
%{_libdir}/pkgconfig/%{name}.pc
|
%{_libdir}/pkgconfig/%{name}.pc
|
||||||
|
|
||||||
|
%files devel-docs
|
||||||
|
%defattr(-, root, root, -)
|
||||||
|
%doc %{develdocdir}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jun 14 2010 Nils Philippsen <nils@redhat.com> - 0.1.2-2
|
||||||
|
- split off devel-docs subpackage to make package multi-lib compliant (#477807)
|
||||||
|
- let devel package require correct arch of base package
|
||||||
|
|
||||||
* Thu Jan 21 2010 Deji Akingunola <dakingun@gmail.com> - 0.1.2-1
|
* Thu Jan 21 2010 Deji Akingunola <dakingun@gmail.com> - 0.1.2-1
|
||||||
- Update to 0.1.2
|
- Update to 0.1.2
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user