blob: d9b0268c3042fb57f638dc45ad637ec71e3e9327 (
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
Name: linglong
Version: 1.5.6.4
Release: 1
Summary: Linglong Package FrameWork
License: LGPLv3
URL: https://github.com/kamiyadm/%{name}
Source0: %{url}/archive/%{version}/linglong-%{version}.tar.gz
BuildRequires: cmake gcc-c++
BuildRequires: qt5-qtbase-devel qt5-qtwebsockets-devel qt5-qtbase-private-devel
BuildRequires: glib2-devel nlohmann-json-devel ostree-devel yaml-cpp-devel
BuildRequires: systemd-devel gtest-devel libseccomp-devel elfutils-libelf-devel
BuildRequires: glibc-static libstdc++-static
Requires: linglong-bin = %{version}-%{release}
%description
This package is a linglong package framework.
%package -n linglong-bin
Summary: Linglong package manager
Requires: linglong-box = %{version}-%{release}
Requires: linglong-installer erofsfuse
%description -n linglong-bin
Linglong package management command line tool.
%package -n linglong-builder
Summary: Linglong build tools
Requires: linglong-box = %{version}-%{release} linglong-bin = %{version}-%{release}
Requires: erofsutils erofsfuse
%description -n linglong-builder
This package is a tool that makes it easy to build applications and dependencies.
%package -n linglong-box
Summary: Linglong sandbox
%description -n linglong-box
Linglong sandbox with OCI standard.
%prep
%autosetup -p1 -n linglong-%{version}
%define _debugsource_template %{nil}
%build
export PATH=%{_qt5_bindir}:$PATH
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
-DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \
-DLIB_INSTALL_DIR:PATH=%{_libdir} \
-DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
-DSHARE_INSTALL_PREFIX:PATH=%{_datadir} \
-DBUILD_SHARED_LIBS=OFF \
-DCPM_LOCAL_PACKAGES_ONLY=ON ..
%make_build
%install
cd build
%make_install INSTALL_ROOT=%{buildroot}
%post -n linglong-bin
%systemd_post org.deepin.linglong.PackageManager.service
/usr/bin/busctl call org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus ReloadConfig
%preun -n linglong-bin
%systemd_preun org.deepin.linglong.PackageManager.service
%postun -n linglong-bin
%systemd_postun_with_restart org.deepin.linglong.PackageManager.service
%files
%doc README.md
%license LICENSE
%exclude %{_libdir}/cmake/linglong-*/*.cmake
%exclude %{_datadir}/polkit-1/actions/org.deepin.linglong.PackageManager.policy
%files -n linglong-bin
%doc README.md
%license LICENSE
%{_sysconfdir}/profile.d/*
%{_sysconfdir}/X11/Xsession.d/*
%{_bindir}/ll-cli
%{_bindir}/llpkg
%{_bindir}/linglong-repair-tool
%{_prefix}/lib/%{name}/container/*
%{_prefix}/lib/sysusers.d/*.conf
%{_prefix}/lib/tmpfiles.d/*.conf
%{_prefix}/lib/systemd/system/*.service
%{_prefix}/lib/systemd/system-preset/*.preset
%{_prefix}/lib/systemd/user/*
%{_prefix}/lib/systemd/system-environment-generators/*
%{_prefix}/lib/systemd/user-environment-generators/*
%{_libexecdir}/%{name}/ll-package-manager
%{_libexecdir}/%{name}/00-id-mapping-static
%{_libexecdir}/%{name}/05-initialize-static
%{_libexecdir}/%{name}/20-devices-static
%{_libexecdir}/%{name}/25-host-env-static
%{_libexecdir}/%{name}/30-user-home-static
%{_libexecdir}/%{name}/40-host-ipc-static
%{_libexecdir}/%{name}/90-legacy-static
%{_libexecdir}/%{name}/upgrade-all
%{_libexecdir}/%{name}/ll-session-helper
%{_datadir}/bash-completion/completions/ll-cli
%{_datadir}/dbus-1/system-services/*.service
%{_datadir}/dbus-1/system.d/*.conf
%{_datadir}/%{name}/config.yaml
%{_datadir}/mime/packages/*
%{_datadir}/%{name}/api/api.json
%{_datadir}/applications/*.desktop
%files -n linglong-builder
%license LICENSE
%{_bindir}/ll-builder
%{_libexecdir}/%{name}/fetch-dsc-source
%{_libexecdir}/%{name}/fetch-git-source
%{_libexecdir}/%{name}/fetch-file-source
%{_libexecdir}/%{name}/fetch-archive-source
%{_libexecdir}/%{name}/app-conf-generator
%{_libexecdir}/%{name}/builder/helper/*.sh
%{_datadir}/bash-completion/completions/ll-builder
%{_datadir}/%{name}/builder/templates/*.yaml
%files -n linglong-box
%license LICENSE
%{_bindir}/ll-box
%changelog
* Thu June 25 2024 chenhuixing <chenhuixing@deepin.org> - 1.5.6.4-1
- Release 1.5.6.2
* Thu Apr 25 2024 chenhuixing <chenhuixing@deepin.org> - 1.4.3-1
- Init project
|