blob: 35a2bc828f01007d463f1210ffd0cbbb5b230fe7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
Name: pkgmgr-server
Summary: Packager Manager server package
Version: 0.7.4
Release: 1
Group: Application Framework/Package Management
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
Source1001: %{name}.manifest
BuildRequires: cmake
BuildRequires: unzip
BuildRequires: gettext-tools
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(aul)
BuildRequires: pkgconfig(bundle)
BuildRequires: pkgconfig(pkgmgr-info)
BuildRequires: pkgconfig(libtzplatform-config)
BuildRequires: pkgconfig(pkgmgr)
BuildRequires: pkgconfig(pkgmgr-installer)
BuildRequires: pkgconfig(pkgmgr-parser)
BuildRequires: pkgconfig(libgum)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(libsystemd)
BuildRequires: pkgconfig(minizip)
BuildRequires: fdupes
%description
Packager Manager server package for packaging
%prep
%setup -q
cp %{SOURCE1001} .
%define run_dir /run/user
%define db_dir %{_localstatedir}/lib/package-manager
%define backend_dir %{_sysconfdir}/package-manager/backend
%build
sqlite3 restriction.db < ./restriction.sql
%cmake . -DRUN_DIR=%{run_dir} \
-DDB_DIR=%{db_dir} \
-DBACKEND_DIR=%{backend_dir} \
-DUNITDIR=%{_unitdir}
%__make %{?_smp_mflags}
%install
%make_install
mkdir -p %{buildroot}%{_sysconfdir}/package-manager/server
mkdir -p %{buildroot}%{db_dir}
install -m 0600 restriction.db %{buildroot}%{db_dir}
%fdupes %{buildroot}
%post
/sbin/ldconfig
%files
%manifest %{name}.manifest
%license LICENSE
%defattr(-,root,root,-)
%{_unitdir}/package-manager.service
%{_datadir}/dbus-1/system-services/org.tizen.pkgmgr.service
%config %{_sysconfdir}/dbus-1/system.d/*pkgmgr*.conf
%config(noreplace) %{db_dir}
%config(noreplace) %{db_dir}/restriction.db
%{_bindir}/pkgmgr-server
%{_sysconfdir}/package-manager/server
|