Adjust provides generation for rpm >= 4.9.0
This commit is contained in:
parent
729b5afe9c
commit
1ae5f2f501
2
gstreamer.attr
Normal file
2
gstreamer.attr
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
%__gstreamer_provides %{_rpmconfigdir}/gstreamer.prov
|
||||||
|
%__gstreamer_path ^%{_libdir}/gstreamer-.*/.*\.so$
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
Name: %{gstreamer}
|
Name: %{gstreamer}
|
||||||
Version: 0.10.32
|
Version: 0.10.32
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: GStreamer streaming media framework runtime
|
Summary: GStreamer streaming media framework runtime
|
||||||
|
|
||||||
Group: Applications/Multimedia
|
Group: Applications/Multimedia
|
||||||
@ -38,7 +38,7 @@ BuildRequires: gcc-c++
|
|||||||
# For the GStreamer RPM provides
|
# For the GStreamer RPM provides
|
||||||
Patch1: gstreamer-inspect-rpm-format.patch
|
Patch1: gstreamer-inspect-rpm-format.patch
|
||||||
Source1: gstreamer.prov
|
Source1: gstreamer.prov
|
||||||
Source2: macros.gstreamer
|
Source2: gstreamer.attr
|
||||||
|
|
||||||
### documentation requirements
|
### documentation requirements
|
||||||
BuildRequires: python2
|
BuildRequires: python2
|
||||||
@ -144,9 +144,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|||||||
# Create empty cache directory
|
# Create empty cache directory
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/cache/gstreamer-%{majorminor}
|
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/cache/gstreamer-%{majorminor}
|
||||||
# Add the provides script
|
# Add the provides script
|
||||||
install -m0755 -D %{SOURCE1} $RPM_BUILD_ROOT%{_prefix}/lib/rpm/gstreamer.prov
|
install -m0755 -D %{SOURCE1} $RPM_BUILD_ROOT%{_rpmconfigdir}/gstreamer.prov
|
||||||
# Add the macros file
|
# Add the gstreamer plugin file attribute entry (rpm >= 4.9.0)
|
||||||
install -m0644 -D %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.gstreamer
|
install -m0644 -D %{SOURCE2} $RPM_BUILD_ROOT%{_rpmconfigdir}/fileattrs/gstreamer.attr
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
@ -231,8 +231,8 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_libdir}/pkgconfig/gstreamer-dataprotocol-%{majorminor}.pc
|
%{_libdir}/pkgconfig/gstreamer-dataprotocol-%{majorminor}.pc
|
||||||
%{_libdir}/pkgconfig/gstreamer-net-%{majorminor}.pc
|
%{_libdir}/pkgconfig/gstreamer-net-%{majorminor}.pc
|
||||||
|
|
||||||
%{_prefix}/lib/rpm/gstreamer.prov
|
%{_rpmconfigdir}/gstreamer.prov
|
||||||
%{_sysconfdir}/rpm/macros.gstreamer
|
%{_rpmconfigdir}/fileattrs/gstreamer.attr
|
||||||
|
|
||||||
%files devel-docs
|
%files devel-docs
|
||||||
%defattr(-, root, root, -)
|
%defattr(-, root, root, -)
|
||||||
@ -241,6 +241,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%doc %{_datadir}/gtk-doc/html/gstreamer-plugins-%{majorminor}
|
%doc %{_datadir}/gtk-doc/html/gstreamer-plugins-%{majorminor}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Mar 21 2011 Panu Matilainen <pmatilai@redhat.com> 0.10.32-4
|
||||||
|
- Adjust provides generation for rpm >= 4.9.0
|
||||||
|
|
||||||
* Mon Mar 21 2011 Bastien Nocera <bnocera@redhat.com> 0.10.32-3
|
* Mon Mar 21 2011 Bastien Nocera <bnocera@redhat.com> 0.10.32-3
|
||||||
- Make it possible to auto-install GStreamer elements by name
|
- Make it possible to auto-install GStreamer elements by name
|
||||||
|
|
||||||
|
@ -1 +0,0 @@
|
|||||||
%__gstreamer_provides /usr/lib/rpm/gstreamer.prov
|
|
Loading…
Reference in New Issue
Block a user