nemo-qml-plugin-systemsettings.spec 2.24 KB
Newer Older
1 2
Name:       nemo-qml-plugin-systemsettings
Summary:    System settings plugin for Nemo Mobile
spiiroin's avatar
spiiroin committed
3
Version:    0.3.0
4 5 6
Release:    1
Group:      System/Libraries
License:    BSD
Slava Monich's avatar
Slava Monich committed
7
URL:        https://git.merproject.org/mer-core/nemo-qml-plugin-systemsettings
8
Source0:    %{name}-%{version}.tar.bz2
9 10
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
11
Requires:       connman
12
Requires:       mce >= 1.83.0
13
Requires:       libsailfishkeyprovider >= 0.0.14
14 15
BuildRequires:  pkgconfig(Qt5Qml)
BuildRequires:  pkgconfig(Qt5SystemInfo)
16
BuildRequires:  pkgconfig(Qt5Test)
17
BuildRequires:  pkgconfig(timed-qt5)
18
BuildRequires:  pkgconfig(profile)
neochapay's avatar
neochapay committed
19
BuildRequires:  pkgconfig(mce) >= 1.21.0
20
BuildRequires:  pkgconfig(mlite5)
21
BuildRequires:  pkgconfig(usb-moded-qt5)
22
BuildRequires:  pkgconfig(libshadowutils)
23
BuildRequires:  pkgconfig(blkid)
24
BuildRequires:  pkgconfig(libcrypto)
25
BuildRequires:  pkgconfig(nemodbus) >= 2.1.16
26
BuildRequires:  pkgconfig(nemomodels-qt5)
27
BuildRequires:  pkgconfig(libsailfishkeyprovider) >= 0.0.14
28
BuildRequires:  pkgconfig(connman-qt5)
29
BuildRequires:  pkgconfig(ssu-sysinfo) >= 1.1.0
30 31 32 33

%description
%{summary}.

34 35 36 37 38 39 40 41
%package devel
Summary:    System settings C++ library
Group:      System/Libraries
Requires:   %{name} = %{version}-%{release}

%description devel
%{summary}.

42 43 44 45 46 47 48
%package tests
Summary:    System settings C++ library (unit tests)
Group:      System/Libraries

%description tests
%{summary}.

49 50 51 52
%prep
%setup -q -n %{name}-%{version}

%build
53
%qmake5 "VERSION=%{version}"
54
make %{?_smp_mflags}
55 56 57

%install
rm -rf %{buildroot}
58
%qmake5_install
59
chmod +x %{buildroot}/%{_bindir}/vpn-updown.sh
60

61 62 63 64
%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

65 66
%files
%defattr(-,root,root,-)
67 68 69
%{_libdir}/qt5/qml/org/nemomobile/systemsettings/libnemosystemsettings.so
%{_libdir}/qt5/qml/org/nemomobile/systemsettings/qmldir
%{_libdir}/libsystemsettings.so.*
70 71
%{_libdir}/systemd/user/vpn-updown.service
%{_bindir}/vpn-updown.sh
72 73
%dir %attr(0775, root, privileged) /etc/location
%config %attr(0664, root, privileged) /etc/location/location.conf
74 75 76 77 78 79

%files devel
%defattr(-,root,root,-)
%{_libdir}/pkgconfig/systemsettings.pc
%{_includedir}/systemsettings/*
%{_libdir}/libsystemsettings.so
80 81 82 83 84

%files tests
%defattr(-,root,root,-)
%{_libdir}/%{name}-tests/ut_diskusage
%{_datadir}/%{name}-tests/tests.xml