Use pkgconfig with BuildRequires
Enable FLAC and Vorbis extractors. Preserve timestamps during install. https://fedoraproject.org/wiki/Packaging:PkgConfigBuildRequires
This commit is contained in:
parent
47776a4241
commit
cae9b5cc38
100
tracker.spec
100
tracker.spec
@ -12,14 +12,15 @@
|
|||||||
%global with_thunderbird 1
|
%global with_thunderbird 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Summary: Desktop-neutral search tool and indexer
|
|
||||||
Name: tracker
|
Name: tracker
|
||||||
Version: 1.2.2
|
Version: 1.2.2
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: GPLv2+
|
Summary: Desktop-neutral search tool and indexer
|
||||||
|
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
|
License: GPLv2+
|
||||||
URL: https://wiki.gnome.org/Projects/Tracker
|
URL: https://wiki.gnome.org/Projects/Tracker
|
||||||
Source0: http://download.gnome.org/sources/tracker/1.2/%{name}-%{version}.tar.xz
|
Source0: https://download.gnome.org/sources/%{name}/1.2/%{name}-%{version}.tar.xz
|
||||||
|
|
||||||
# only autostart in Gnome, see also
|
# only autostart in Gnome, see also
|
||||||
# https://bugzilla.redhat.com/show_bug.cgi?id=771601
|
# https://bugzilla.redhat.com/show_bug.cgi?id=771601
|
||||||
@ -29,53 +30,52 @@ Patch1: tracker-0.15-onlyshowin.patch
|
|||||||
Patch3: 0001-Bump-the-minimum-memory-requirement-to-768M.patch
|
Patch3: 0001-Bump-the-minimum-memory-requirement-to-768M.patch
|
||||||
|
|
||||||
BuildRequires: desktop-file-utils
|
BuildRequires: desktop-file-utils
|
||||||
%if 0%{?with_enca}
|
|
||||||
BuildRequires: enca-devel
|
|
||||||
%endif
|
|
||||||
BuildRequires: exempi-devel
|
|
||||||
BuildRequires: firefox
|
BuildRequires: firefox
|
||||||
BuildRequires: flac-devel
|
|
||||||
BuildRequires: gdk-pixbuf2-devel
|
|
||||||
BuildRequires: giflib-devel
|
BuildRequires: giflib-devel
|
||||||
BuildRequires: gobject-introspection-devel
|
|
||||||
BuildRequires: graphviz
|
BuildRequires: graphviz
|
||||||
BuildRequires: gstreamer1-devel
|
|
||||||
BuildRequires: gstreamer1-plugins-base-devel
|
|
||||||
BuildRequires: gtk-doc
|
BuildRequires: gtk-doc
|
||||||
BuildRequires: gtk3-devel
|
|
||||||
BuildRequires: gupnp-dlna-devel
|
|
||||||
BuildRequires: intltool
|
BuildRequires: intltool
|
||||||
%if 0%{?with_libcue}
|
|
||||||
BuildRequires: libcue-devel
|
|
||||||
%endif
|
|
||||||
BuildRequires: libexif-devel
|
|
||||||
BuildRequires: libgee-devel
|
|
||||||
BuildRequires: libgsf-devel
|
|
||||||
BuildRequires: libgxps-devel
|
|
||||||
BuildRequires: libicu-devel
|
|
||||||
BuildRequires: libiptcdata-devel
|
|
||||||
BuildRequires: libjpeg-devel
|
BuildRequires: libjpeg-devel
|
||||||
BuildRequires: libmediaart-devel
|
|
||||||
BuildRequires: libosinfo-devel
|
|
||||||
BuildRequires: libpng-devel
|
|
||||||
BuildRequires: libtiff-devel
|
BuildRequires: libtiff-devel
|
||||||
BuildRequires: libuuid-devel
|
|
||||||
BuildRequires: libvorbis-devel
|
|
||||||
BuildRequires: libxml2-devel
|
|
||||||
%if 0%{?with_nautilus}
|
|
||||||
BuildRequires: nautilus-devel
|
|
||||||
%endif
|
|
||||||
BuildRequires: NetworkManager-glib-devel
|
|
||||||
BuildRequires: poppler-glib-devel
|
|
||||||
BuildRequires: rest-devel
|
|
||||||
BuildRequires: sqlite-devel
|
|
||||||
BuildRequires: taglib-devel
|
|
||||||
%if 0%{?with_thunderbird}
|
%if 0%{?with_thunderbird}
|
||||||
BuildRequires: thunderbird
|
BuildRequires: thunderbird
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: totem-pl-parser-devel
|
|
||||||
BuildRequires: upower-devel
|
|
||||||
BuildRequires: vala-devel
|
BuildRequires: vala-devel
|
||||||
|
%if 0%{?with_enca}
|
||||||
|
BuildRequires: pkgconfig(enca)
|
||||||
|
%endif
|
||||||
|
BuildRequires: pkgconfig(exempi-2.0)
|
||||||
|
BuildRequires: pkgconfig(flac)
|
||||||
|
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
||||||
|
BuildRequires: pkgconfig(gstreamer-1.0)
|
||||||
|
BuildRequires: pkgconfig(gstreamer-pbutils-1.0)
|
||||||
|
BuildRequires: pkgconfig(gstreamer-tag-1.0)
|
||||||
|
BuildRequires: pkgconfig(gtk+-3.0)
|
||||||
|
BuildRequires: pkgconfig(icu-i18n)
|
||||||
|
BuildRequires: pkgconfig(icu-uc)
|
||||||
|
%if 0%{?with_libcue}
|
||||||
|
BuildRequires: pkgconfig(libcue)
|
||||||
|
%endif
|
||||||
|
BuildRequires: pkgconfig(libexif)
|
||||||
|
BuildRequires: pkgconfig(gee-0.8)
|
||||||
|
BuildRequires: pkgconfig(libgsf-1)
|
||||||
|
BuildRequires: pkgconfig(libgxps)
|
||||||
|
BuildRequires: pkgconfig(libiptcdata)
|
||||||
|
%if 0%{?with_nautilus}
|
||||||
|
BuildRequires: pkgconfig(libnautilus-extension)
|
||||||
|
%endif
|
||||||
|
BuildRequires: pkgconfig(libnm-glib)
|
||||||
|
BuildRequires: pkgconfig(libosinfo-1.0)
|
||||||
|
BuildRequires: pkgconfig(libpng)
|
||||||
|
BuildRequires: pkgconfig(libmediaart-1.0)
|
||||||
|
BuildRequires: pkgconfig(libxml-2.0)
|
||||||
|
BuildRequires: pkgconfig(poppler-glib)
|
||||||
|
BuildRequires: pkgconfig(sqlite3)
|
||||||
|
BuildRequires: pkgconfig(taglib_c)
|
||||||
|
BuildRequires: pkgconfig(totem-plparser)
|
||||||
|
BuildRequires: pkgconfig(upower-glib)
|
||||||
|
BuildRequires: pkgconfig(uuid)
|
||||||
|
BuildRequires: pkgconfig(vorbisfile)
|
||||||
|
|
||||||
Obsoletes: compat-tracker018 < 0.17.2-2
|
Obsoletes: compat-tracker018 < 0.17.2-2
|
||||||
Obsoletes: tracker-miner-flickr < 0.16.0
|
Obsoletes: tracker-miner-flickr < 0.16.0
|
||||||
@ -161,6 +161,7 @@ BuildArch: noarch
|
|||||||
%description docs
|
%description docs
|
||||||
This package contains the documentation for tracker
|
This package contains the documentation for tracker
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
@ -171,9 +172,12 @@ This package contains the documentation for tracker
|
|||||||
## https://fedoraproject.org/wiki/Packaging/Guidelines#Beware_of_Rpath
|
## https://fedoraproject.org/wiki/Packaging/Guidelines#Beware_of_Rpath
|
||||||
sed -i -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure
|
sed -i -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-static \
|
%configure --disable-static \
|
||||||
--enable-gtk-doc \
|
--enable-gtk-doc \
|
||||||
|
--enable-libflac \
|
||||||
|
--enable-libvorbis \
|
||||||
--enable-miner-evolution=no \
|
--enable-miner-evolution=no \
|
||||||
--with-firefox-plugin-dir=%{_libdir}/firefox/extensions \
|
--with-firefox-plugin-dir=%{_libdir}/firefox/extensions \
|
||||||
--disable-mp3 \
|
--disable-mp3 \
|
||||||
@ -191,10 +195,11 @@ sed -i -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure
|
|||||||
|
|
||||||
make V=1 %{?_smp_mflags}
|
make V=1 %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
|
||||||
make DESTDIR=%{buildroot} install
|
|
||||||
|
|
||||||
find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
|
%install
|
||||||
|
make DESTDIR=%{buildroot} INSTALL="install -p" install
|
||||||
|
|
||||||
|
find %{buildroot} -type f -name "*.la" -delete
|
||||||
rm -rf %{buildroot}%{_datadir}/tracker-tests
|
rm -rf %{buildroot}%{_datadir}/tracker-tests
|
||||||
|
|
||||||
# Remove .so symlinks for private libraries -- no external users are supposed
|
# Remove .so symlinks for private libraries -- no external users are supposed
|
||||||
@ -203,9 +208,11 @@ rm -f %{buildroot}%{_libdir}/tracker-1.0/*.so
|
|||||||
|
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
desktop-file-validate %{buildroot}%{_datadir}/applications/tracker-*.desktop
|
desktop-file-validate %{buildroot}%{_datadir}/applications/tracker-*.desktop
|
||||||
|
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
%post preferences
|
%post preferences
|
||||||
@ -229,6 +236,7 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
|
|||||||
%posttrans preferences
|
%posttrans preferences
|
||||||
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||||
|
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%doc AUTHORS COPYING NEWS README
|
%doc AUTHORS COPYING NEWS README
|
||||||
%{_bindir}/tracker*
|
%{_bindir}/tracker*
|
||||||
@ -297,7 +305,13 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|||||||
%{_datadir}/gtk-doc/html/libtracker-sparql/
|
%{_datadir}/gtk-doc/html/libtracker-sparql/
|
||||||
%{_datadir}/gtk-doc/html/ontology/
|
%{_datadir}/gtk-doc/html/ontology/
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Sep 24 2014 David King <amigadave@amigadave.com> - 1.2.2-2
|
||||||
|
- Use pkgconfig for BuildRequires
|
||||||
|
- Preserve timestamps during install
|
||||||
|
- Enable FLAC and Vorbis extractors
|
||||||
|
|
||||||
* Wed Sep 24 2014 Kalev Lember <kalevlember@gmail.com> - 1.2.2-1
|
* Wed Sep 24 2014 Kalev Lember <kalevlember@gmail.com> - 1.2.2-1
|
||||||
- Update to 1.2.2
|
- Update to 1.2.2
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user