Blame SPECS/nepomuk-core.spec

bbc265
%define shared_desktop_ontologies_ver 0.10.0
bbc265
%define soprano_ver 2.9.0
bbc265
bbc265
%global shared_desktop_ontologies_version %(pkg-config --modversion shared-desktop-ontologies 2>/dev/null || echo %{shared_desktop_ontologies_ver})
bbc265
%global soprano_version %(pkg-config --modversion soprano 2>/dev/null || echo %{soprano_ver})
bbc265
bbc265
# undef or set to 0 to disable items for a faster build
bbc265
#global tests 1
bbc265
bbc265
Name:    nepomuk-core
bbc265
Version: 4.10.5
bbc265
Release: 6%{?dist}
bbc265
Summary: Nepomuk Core utilities and libraries
bbc265
bbc265
License: LGPLv2 or LGPLv3
bbc265
URL:     http://www.kde.org/
bbc265
bbc265
%global revision %(echo %{version} | cut -d. -f3)
bbc265
%if %{revision} >= 50
bbc265
%global stable unstable
bbc265
%else
bbc265
%global stable stable
bbc265
%endif
bbc265
Source0: http://download.kde.org/%{stable}/%{version}/src/%{name}-%{version}.tar.xz
bbc265
bbc265
%if 0%{?fedora} > 17
bbc265
%define sysctl 1
bbc265
%endif
bbc265
Source1: nepomuk-inotify.conf
bbc265
bbc265
# Replace "#!/usr/bin/env python" with "#!/usr/bin/python"
bbc265
Patch0: nepomuk-core-4.10-simpleresourec-rcgen-shebang-fix.patch
bbc265
bbc265
## upstream patches
bbc265
#define git_patches 1
bbc265
%if 0%{?git_patches}
bbc265
BuildRequires: git-core
bbc265
%endif
bbc265
bbc265
BuildRequires: doxygen
bbc265
BuildRequires: kdelibs4-devel >= %{version}
bbc265
BuildRequires: pkgconfig
bbc265
BuildRequires: pkgconfig(soprano) >= %{soprano_ver}
bbc265
BuildRequires: pkgconfig(libstreamanalyzer) pkgconfig(libstreams)
bbc265
BuildRequires: pkgconfig(shared-desktop-ontologies)
bbc265
# fileindexer plugins
bbc265
BuildRequires: pkgconfig(exiv2) >= 0.20
bbc265
BuildRequires: pkgconfig(poppler-qt4)
bbc265
BuildRequires: pkgconfig(taglib)
bbc265
%if  0%{?tests}
bbc265
BuildRequires: dbus-x11
bbc265
BuildRequires: virtuoso-opensource
bbc265
%endif
bbc265
bbc265
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
bbc265
Requires: kdelibs4%{?_isa} >= %{version}
bbc265
Requires: shared-desktop-ontologies >= %{shared_desktop_ontologies_version}
bbc265
Provides: soprano-backend-virtuoso >= %{soprano_version}
bbc265
Requires: virtuoso-opensource
bbc265
bbc265
# moved from kde-runtime in 4.8.80 (nepomuk common has nepomuk-core preference)
bbc265
Conflicts: kde-runtime < 4.8.80-2
bbc265
bbc265
%description
bbc265
%{summary}.
bbc265
bbc265
%package devel
bbc265
Summary:  Developer files for %{name}
bbc265
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
bbc265
Requires: kdelibs4-devel
bbc265
%description devel
bbc265
%{summary}.
bbc265
bbc265
%package libs
bbc265
Summary:  Runtime libraries for %{name}
bbc265
Requires: kdelibs4%{?_isa} >= %{version}
bbc265
Requires: %{name} = %{version}-%{release}
bbc265
%description libs
bbc265
%{summary}.
bbc265
bbc265
bbc265
%prep
bbc265
%setup -q
bbc265
bbc265
%if 0%{?git_patches}
bbc265
git init
bbc265
if [ -z "$GIT_COMMITTER_NAME" ]; then
bbc265
git config user.email "kde@lists.fedoraproject.org"
bbc265
git config user.name "Fedora KDE SIG"
bbc265
fi
bbc265
git add .
bbc265
git commit -a -q -m "%{version} baseline."
bbc265
bbc265
# Apply all the patches
bbc265
git am -p1 %{patches} < /dev/null
bbc265
%endif
bbc265
bbc265
%patch0 -p1 -b .rcgenshebang
bbc265
bbc265
bbc265
%build
bbc265
mkdir -p %{_target_platform}
bbc265
pushd %{_target_platform}
bbc265
%{cmake_kde4} ..
bbc265
popd
bbc265
bbc265
make %{?_smp_mflags} -C %{_target_platform}
bbc265
bbc265
bbc265
%install
bbc265
bbc265
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
bbc265
bbc265
%if 0%{?sysctl}
bbc265
install -p -m644 -D %{SOURCE1} %{buildroot}%{_prefix}/lib/sysctl.d/nepomuk-inotify.conf
bbc265
%else
bbc265
install -p -m644    %{SOURCE1} ./nepomuk-inotify.conf
bbc265
%endif
bbc265
bbc265
# fix multilib
bbc265
sed -i -e 's!QUERYINTERFACE_H_[0-9]*!QUERYINTERFACE_H!g' %{buildroot}%{_kde4_includedir}/nepomuk2/queryinterface.h
bbc265
sed -i -e 's!QUERYSERVICEINTERFACE_H_[0-9]*!QUERYSERVICEINTERFACE_H!g' %{buildroot}%{_kde4_includedir}/nepomuk2/queryserviceinterface.h
bbc265
bbc265
%check
bbc265
desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/nepomukbackup.desktop
bbc265
%if 0%{?tests}
bbc265
make -C %{_target_platform}/autotests/test test  ||:
bbc265
%endif
bbc265
bbc265
bbc265
%files
bbc265
%doc ontologies/README COPYING.LGPL*
bbc265
%if 0%{?sysctl}
bbc265
%{_prefix}/lib/sysctl.d/nepomuk-inotify.conf
bbc265
%else
bbc265
%doc nepomuk-inotify.conf 
bbc265
%endif
bbc265
%{_kde4_appsdir}/fileindexerservice/
bbc265
%{_kde4_appsdir}/nepomukfilewatch/
bbc265
%{_kde4_appsdir}/nepomukstorage/
bbc265
%{_kde4_bindir}/nepomuk-simpleresource-rcgen
bbc265
%{_kde4_bindir}/nepomukbackup
bbc265
%{_kde4_bindir}/nepomukcleaner
bbc265
%{_kde4_bindir}/nepomukindexer
bbc265
%{_kde4_bindir}/nepomukserver
bbc265
%{_kde4_bindir}/nepomukservicestub
bbc265
%{_kde4_bindir}/nepomuk2-rcgen
bbc265
%{_kde4_libdir}/libkdeinit4_nepomukserver.so
bbc265
%{_kde4_datadir}/applications/kde4/nepomukbackup.desktop
bbc265
%{_kde4_datadir}/applications/kde4/nepomukcleaner.desktop
bbc265
%{_kde4_datadir}/autostart/nepomukserver.desktop
bbc265
%{_kde4_datadir}/kde4/services/*.desktop
bbc265
%{_kde4_datadir}/kde4/servicetypes/nepomukservice.desktop
bbc265
%{_kde4_datadir}/kde4/servicetypes/nepomukextractor.desktop
bbc265
%{_kde4_datadir}/ontology/kde/
bbc265
%{_datadir}/dbus-1/interfaces/*.xml
bbc265
%{_kde4_libdir}/kde4/nepomukfileindexer.so
bbc265
%{_kde4_libdir}/kde4/nepomukfilewatch.so
bbc265
%{_kde4_libdir}/kde4/nepomukstorage.so
bbc265
# metadata extractor plugins
bbc265
# some of these (poppler, taglib) are good candidates to move to subpkg(s) -- rex
bbc265
%{_kde4_libdir}/kde4/nepomuk*extractor.so
bbc265
bbc265
%files devel
bbc265
%{_kde4_libdir}/libnepomukcore.so
bbc265
%{_kde4_libdir}/cmake/NepomukCore/
bbc265
%{_kde4_includedir}/nepomuk2/
bbc265
%{_kde4_includedir}/Nepomuk2/
bbc265
bbc265
%post libs -p /sbin/ldconfig
bbc265
%postun libs -p /sbin/ldconfig
bbc265
bbc265
%files libs
bbc265
%{_kde4_libdir}/libnepomukcommon.so
bbc265
%{_kde4_libdir}/libnepomukcore.so.4*
bbc265
%{_kde4_libdir}/libnepomukextractor.so
bbc265
bbc265
bbc265
%changelog
bbc265
* Wed Sep 06 2017 Jan Grulich <jgrulich@redhat.com> - 4.10.5-6
bbc265
- Rebuild exiv2
bbc265
  Resolves: bz#1488011
bbc265
bbc265
* Tue Mar 18 2014 Than Ngo <than@redhat.com> - 4.10.5-5
bbc265
- fix multilib issue
bbc265
bbc265
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 4.10.5-4
bbc265
- Mass rebuild 2014-01-24
bbc265
bbc265
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 4.10.5-3
bbc265
- Mass rebuild 2013-12-27
bbc265
bbc265
* Wed Jul 24 2013 Daniel Vrátil <dvratil@redhat.com> - 4.10.5-2
bbc265
- Resolves: bz#987030 - shebang with /usr/bin/env
bbc265
bbc265
* Sun Jun 30 2013 Than Ngo <than@redhat.com> - 4.10.5-1
bbc265
- 4.10.5
bbc265
bbc265
* Sat Jun 01 2013 Rex Dieter <rdieter@fedoraproject.org> - 4.10.4-1
bbc265
- 4.10.4
bbc265
bbc265
* Mon May 06 2013 Than Ngo <than@redhat.com> - 4.10.3-1
bbc265
- 4.10.3
bbc265
bbc265
* Sun Mar 31 2013 Rex Dieter <rdieter@fedoraproject.org> 4.10.2-2
bbc265
- tarball respin
bbc265
bbc265
* Sun Mar 31 2013 Rex Dieter <rdieter@fedoraproject.org> - 4.10.2-1
bbc265
- 4.10.2
bbc265
bbc265
* Thu Mar 21 2013 Rex Dieter <rdieter@fedoraproject.org> 4.10.1-2
bbc265
- bump minimal exiv2 dep
bbc265
bbc265
* Sat Mar 02 2013 Rex Dieter <rdieter@fedoraproject.org> 4.10.1-1
bbc265
- 4.10.1
bbc265
bbc265
* Fri Feb 08 2013 Rex Dieter <rdieter@fedoraproject.org> 4.10.0-2
bbc265
- pull in a few upstream patches
bbc265
bbc265
* Thu Jan 31 2013 Rex Dieter <rdieter@fedoraproject.org> - 4.10.0-1
bbc265
- 4.10.0
bbc265
bbc265
* Sat Jan 19 2013 Rex Dieter <rdieter@fedoraproject.org> - 4.9.98-1
bbc265
- 4.9.98
bbc265
bbc265
* Fri Jan 04 2013 Rex Dieter <rdieter@fedoraproject.org> - 4.9.97-1
bbc265
- 4.9.97
bbc265
bbc265
* Wed Dec 19 2012 Rex Dieter <rdieter@fedoraproject.org> - 4.9.95-1
bbc265
- 4.9.95
bbc265
bbc265
* Fri Dec 07 2012 Rex Dieter <rdieter@fedoraproject.org> 4.9.90-2
bbc265
- s|/etc/sysctl.d|/usr/lib/sysctl.d|
bbc265
bbc265
* Mon Dec 03 2012 Rex Dieter <rdieter@fedoraproject.org> 4.9.90-1
bbc265
- 4.9.90 (4.10beta2)
bbc265
bbc265
* Mon Dec 03 2012 Than Ngo <than@redhat.com> - 4.9.4-1
bbc265
- 4.9.4
bbc265
bbc265
* Fri Nov 02 2012 Rex Dieter <rdieter@fedoraproject.org> - 4.9.3-1
bbc265
- 4.9.3
bbc265
bbc265
* Wed Oct 03 2012 Rex Dieter <rdieter@fedoraproject.org> 4.9.2-5
bbc265
- respin isEmpty_crash based on 32b44881 upstream commit (#858271)
bbc265
bbc265
* Tue Oct 02 2012 Rex Dieter <rdieter@fedoraproject.org> 4.9.2-4
bbc265
- respin isEmpty_crash patch to guard against NULL (#858271)
bbc265
bbc265
* Tue Oct 02 2012 Rex Dieter <rdieter@fedoraproject.org> 4.9.2-3
bbc265
- sysctl.d/nepomuk-inotify.conf: fs.inotify.max_user_watches=524288 (f18+)
bbc265
bbc265
* Mon Oct 01 2012 Rex Dieter <rdieter@fedoraproject.org> 4.9.2-2
bbc265
- proposed patch to fix/workaround isEmpty crash (#858271)
bbc265
bbc265
* Fri Sep 28 2012 Rex Dieter <rdieter@fedoraproject.org> - 4.9.2-1
bbc265
- 4.9.2
bbc265
bbc265
* Mon Sep 03 2012 Than Ngo <than@redhat.com> - 4.9.1-1
bbc265
- 4.9.1
bbc265
bbc265
* Fri Aug 10 2012 Rex Dieter <rdieter@fedoraproject.org> 
bbc265
- 4.9.0-3.20120810git
bbc265
- sync 4.9-branch patches
bbc265
- %%check: do autotests
bbc265
- Requires: +soprano-backend-virtuoso +virtuoso-opensource
bbc265
bbc265
* Thu Aug 02 2012 Rex Dieter <rdieter@fedoraproject.org> 4.9.0-2
bbc265
- respin
bbc265
bbc265
* Thu Jul 26 2012 Lukas Tinkl <ltinkl@redhat.com> - 4.9.0-1
bbc265
- 4.9.0
bbc265
bbc265
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.8.97-2
bbc265
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
bbc265
bbc265
* Wed Jul 11 2012 Rex Dieter <rdieter@fedoraproject.org> - 4.8.97-1
bbc265
- 4.8.97
bbc265
bbc265
* Wed Jun 27 2012 Jaroslav Reznik <jreznik@redhat.com> - 4.8.95-1
bbc265
- 4.8.95
bbc265
bbc265
* Tue Jun 12 2012 Rex Dieter <rdieter@fedoraproject.org> 
bbc265
- 4.8.90-2
bbc265
- move libkdeinit_* to base pkg (no need for multilib) 
bbc265
- .spec cleanup
bbc265
- add shared-desktop-ontologies, soprano runtime deps
bbc265
bbc265
* Sat Jun 09 2012 Rex Dieter <rdieter@fedoraproject.org> - 4.8.90-1
bbc265
- 4.8.90
bbc265
bbc265
* Fri Jun 01 2012 Kevin Kofler <Kevin@tigcc.ticalc.org> 4.8.80-4
bbc265
- BR kdelibs4-devel instead of kdelibs-devel, fixes minimum version (no Epoch)
bbc265
bbc265
* Fri Jun 01 2012 Jaroslav Reznik <jreznik@redhat.com> 4.8.80-3
bbc265
- respin
bbc265
bbc265
* Wed May 30 2012 Jaroslav Reznik <jreznik@redhat.com> 4.8.80-2
bbc265
- split -libs
bbc265
- fix license
bbc265
bbc265
* Sat May 26 2012 Jaroslav Reznik <jreznik@redhat.com> 4.8.80-1
bbc265
- initial try