Search
SailfishOS Open Build Service
>
Projects
>
home:tangtao77
>
buteo-sync-plugins-qt5
> Changes
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 2
We truncated the diff of some files because they were too big. If you want to see the full diff for every file,
click here
.
[-]
[+]
Added
buteo-mtp-qt5.spec
@@ -0,0 +1,292 @@ +Name: buteo-mtp-qt5 +Version: 0.4.7 +Release: 1.2.6 +Summary: MTP library +Group: System/Libraries +License: LGPLv2.1 +URL: https://github.com/nemomobile/buteo-mtp +Source0: %{name}-%{version}.tar.gz +BuildRequires: pkgconfig(Qt5Core) +BuildRequires: pkgconfig(Qt5Sparql) +BuildRequires: pkgconfig(Qt5DBus) +BuildRequires: pkgconfig(Qt5Xml) +BuildRequires: pkgconfig(Qt5Qml) +BuildRequires: pkgconfig(Qt5Test) +BuildRequires: pkgconfig(buteosyncfw5) +BuildRequires: pkgconfig(Qt5SystemInfo) +BuildRequires: pkgconfig(blkid) +BuildRequires: pkgconfig(mount) +# for the thumbnailer unit test +BuildRequires: pkgconfig(Qt5Gui) +Requires: mtp-vendor-configuration +# buteo-mtp can use org.freedesktop.thumbnails.Thumbnailer1 to create +# thumbnails on request; at least Windows 8 requires thumbnails to be +# generated on the device. +Requires: tumbler +Requires: libqt5sparql-tracker-direct +Requires: libqt5sparql-tracker +Requires(pre): shadow-utils +Requires(pre): /usr/bin/groupadd-user +Provides: buteo-mtp = %{version} +Obsoletes: buteo-mtp < %{version} + +%description +%{summary}. + +# TODO: once proper activation as msyncd plugin works as expected, +# move user session startup into sub-package +%files +%defattr(-,root,root,-) +/usr/lib/systemd/user/buteo-mtp.service +%{_unitdir}/*.mount +%{_unitdir}/local-fs.target.wants/*.mount +%{_bindir}/buteo-mtp +%{_libdir}/*.so.* +%{_libdir}/mtp/*.so +%{_libdir}/mtp/mtp_service +%{_libdir}/mtp/start-mtp.sh + +%package sample-vendor-configuration +Summary: Vendor configuration example for MTP +Group: System/Libraries +Provides: mtp-vendor-configuration + +%description sample-vendor-configuration +%{summary}. + +# TODO: the deviceinfo xml here should only contain things like model, +# vendor, ... -- the supported datatypes are tied in tighly with +# the mtp daemon currently, and therefore can't be changed that +# easily +%files sample-vendor-configuration +%defattr(-,root,root,-) +%{_datadir}/mtp/*.xml +%{_datadir}/mtp/*.ico +%config %{_sysconfdir}/fsstorage.d/* + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +%{summary}. + +%files devel +%defattr(-,root,root,-) +%{_includedir}/* +%{_libdir}/*.so + + +%package sync-plugin +Summary: MTP plugin for buteo-sync +Group: System/Libraries + +%description sync-plugin +%{summary}. + +%files sync-plugin +%defattr(-,root,root,-) +%{_libdir}/buteo-plugins-qt5/*.so +%config %{_sysconfdir}/buteo/profiles/server/*.xml + + +%package tests +Summary: Tests for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Conflicts: buteo-mtp-tests + +%description tests +%{summary}. + +%files tests +%defattr(-,root,root,-) +/opt/tests/buteo-mtp + + +%prep +%setup -q + + +%build +%qmake5 +make %{_smp_mflags} + + +%install +make INSTALL_ROOT=%{buildroot} install +chmod +x %{buildroot}/%{_bindir}/buteo-mtp +mkdir -p %{buildroot}/%{_unitdir}/local-fs.target.wants +ln -s ../dev-mtp.mount %{buildroot}/%{_unitdir}/local-fs.target.wants/ + + +# create group if it does not exist yet, though don't remove it +# as it should come from other packages +%pre +groupadd -f -g 1024 mtp +groupadd-user mtp + + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig +%changelog +* Tue Oct 7 2014 faenil <and.bernabei@gmail.com> - 0.4.7 +- [compilation] Fix compilation on glibc 2.19/gcc 4.8 +* Thu Sep 18 2014 Slava Monich <monich@users.noreply.github.com> - 0.4.6 +- [buteo-mtp] Fix build break +* Wed Aug 27 2014 Richard Braakman <richard.braakman@jollamobile.com> - 0.4.5 +- [rpm] Also pull in libqt5sparql-tracker +* Mon Jul 28 2014 chriadam <chris.adams@jollamobile.com> - 0.4.4 +- [buteo-mtp] Fix build break +* Thu Jun 12 2014 chriadam <chris.adams@jollamobile.com> - 0.4.3 +- [buteo-mtp] Fix build of mtpserver +* Mon May 19 2014 Richard Braakman <richard.braakman@jollamobile.com> - 0.4.2 +- [tests] fix MTPResponder_test::testSetObjectReferences() +- [tests] wait until storages are ready +* Tue May 6 2014 Richard Braakman <richard.braakman@jollamobile.com> - 0.4.1 +- [fsstorage] ensure absolute FSStoragePlugin::m_storagePath +- [fsstorage] ensure storage path exists when instantiating the plugin +- [fsstorage] remove legacy PUOID database +- [fsstorage] remove unused m_rootFolderPath +- [fsstorage] remove unused m_uniqueObjectHandle +- [fsstorage] use unique filenames for PUOID databases +- [storage] move StoragePlugin::m_storagePath to FsStoragePlugin +- [storage] remove HalProxy +- [tests] don't link storage-test with libblkid and libmount +- [tests] remove some Qt4 legacy in a project file +- [W] QCoreApplicationPrivate::QCoreApplicationPrivate:416 - WARNING: \ +* Tue Apr 8 2014 Richard Braakman <richard.braakman@jollamobile.com> - 0.4.0 +- [mtp] Do the file scan in the background +* Thu Mar 27 2014 Jakub Adam <jakub.adam@ktknet.cz> - 0.3.9 +- [propertycache] dispose ObjectPropertyCache together with StorageFactory +* Mon Mar 17 2014 Richard Braakman <richard.braakman@jollamobile.com> - 0.3.8 +- [fsstorage] ignore ObjectProp_Not_Supported from getObjectPropertyValueF... +- [fsstorage] ignore ObjectProp_Not_Supported from getObjectPropertyValueFromStorage() +* Thu Mar 13 2014 Richard Braakman <richard.braakman@jollamobile.com> - 0.3.7 +- [storagefactory] prevent repeating mass queries with getChildPropertyValues() +- [tests] add a case testing excessive getChildPropertyValues() call prevention +- [tests] add utility StorageFactory_test::m_queryForObjSize +- [tests] remember storage root path in StorageFactory_test +* Wed Mar 12 2014 Richard Braakman <richard.braakman@jollamobile.com> - 0.3.6 +- [build] remove nonexistent ptest.h from HEADERS in test.pro +- [deviceinfo] add support for reporting BatteryLevel (0x5001) +- [deviceinfo] refactor DeviceInfo::getBatteryLevelForm() +- [deviceinfo] remove Buteo::SyncDBusConnection from DeviceInfoProvider +- [deviceinfo] send both OS and HW adaptation versions in MTP device info +- [doc] Add doc for StorageFactory::getObjectPropertyValue() +- [mtp] Don't send undefined properties to initiator in getObjectPropListReq +- [mtp] ignore storage ID sent in MTP object info +- [mtp] Report battery level as a device property +- [mtp] send DevicePropChanged on battery level change +- [performance] Reduce number of queries to tracker +- [performance] Speed up reading from USB +- [propertycache] Abridge ObjectPropertyCache method names +- [propertycache] Let ObjectPropertyCache manage its own lifetime +- [propertycache] Move handling of ObjectPropertyCache to StorageFactory +- [propertycache] Remove ObjectPropertyCache::setAllProps() hint +- [propertypod] convert if-else if to switch statement in constructor +- [storage] discard object's all cached properties on ObjectInfoChanged +- [storage] Factor out storageOfHandle +- [storage] (get|set)ObjectPropertyValue aren't private in FsStoragePlugin +- [storage] Move getObjectPropertyValue() call out of serializePropList() +- [storage] remove filePath argument from StoragePlugin::eventGenerated() +- [storage] Remove getFromObjInfo and getDynamically flags from getObjectPropertyValue +- [storage] Remove pointless getObjectPropertyValue() call +- [storage] Rename serializePropListQuantum -> serializePropList +- [storage] Speculative caching of object properties +- [tests] Add test case for FSStoragePlugin::getChildPropertyValues() +- [tests] add testGetDevicePropValueAfterObjectInfoChanged()