Skip to content

Commit

Permalink
chore: sync package dir
Browse files Browse the repository at this point in the history
Sync package dir.
  • Loading branch information
dengbo11 committed Feb 28, 2025
1 parent 3a08a6f commit 6645a40
Show file tree
Hide file tree
Showing 3 changed files with 220 additions and 0 deletions.
71 changes: 71 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
Source: linglong
Section: admin
Priority: optional
Maintainer: Deepin Packages Builder <[email protected]>
Build-Depends: cmake,
debhelper-compat (= 12),
erofsfuse (>= 1.8.3),
intltool,
libcli11-dev (>= 2.4.1) | hello,
libcurl4-openssl-dev,
libdeflate-dev,
libelf-dev,
libexpected-dev (>= 1.0.0~dfsg-2~bpo10+1) | hello,
libfuse3-dev,
libglib2.0-dev,
libgmock-dev,
libgtest-dev,
liblz4-dev,
liblzma-dev,
libostree-dev,
libpcre2-dev,
libseccomp-dev,
libselinux1-dev,
libssl-dev,
libsystemd-dev,
libyaml-cpp-dev (>= 0.6.2),
libzstd-dev,
nlohmann-json3-dev (>= 3.5.0),
pkg-config,
qt5-qmake,
qtbase5-dev,
qtbase5-private-dev,
systemd,
zlib1g-dev,
libcap-dev
Standards-Version: 4.1.3
Homepage: http://www.deepin.org

Package: linglong-bin
Architecture: any
Depends: desktop-file-utils,
erofsfuse,
libglib2.0-bin,
linglong-box | crun,
shared-mime-info,
${misc:Depends},
${shlibs:Depends}
Replaces: linglong-dbus-proxy
Conflicts: linglong-dbus-proxy
Description: Linglong package manager.
Linglong package management command line tool.

Package: linglong-builder
Architecture: any
Depends: erofs-utils,
erofsfuse,
fuse-overlayfs,
git,
linglong-bin,
linglong-box | crun,
${misc:Depends},
${shlibs:Depends}
Recommends: devscripts, linglong-loader
Description: Linglong application building tools.
ll-builder is a tool that makes it easy to build applications and dependencies.

Package: linglong-box
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}
Description: Deepin sandbox with OCI standard.
Deepin sandbox...
26 changes: 26 additions & 0 deletions debian/linglong-bin.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
debian/sysctl.d/linglong.conf usr/lib/sysctl.d/
etc/X11/Xsession.d/21linglong
etc/profile.d/linglong.sh
usr/bin/ll-cli
usr/bin/llpkg
usr/lib/linglong/*
usr/lib/systemd/system-environment-generators/61-linglong
usr/lib/systemd/user-generators/linglong-user-systemd-generator
usr/lib/systemd/system/org.deepin.linglong.PackageManager.service lib/systemd/system/
usr/lib/systemd/user/linglong-session-helper.service
usr/lib/sysusers.d/linglong.conf
usr/lib/tmpfiles.d/linglong.conf
usr/libexec/linglong/ll-package-manager
usr/libexec/linglong/ll-session-helper
usr/libexec/linglong/ld-cache-generator
usr/libexec/linglong/font-cache-generator
usr/libexec/linglong/ll-dialog
usr/libexec/linglong/dialog/99-linglong-permission
usr/share/bash-completion/completions/ll-cli
usr/share/zsh/vendor-completions/_ll-cli
usr/share/dbus-1/system-services/org.deepin.linglong.PackageManager1.service
usr/share/dbus-1/system.d/org.deepin.linglong.PackageManager1.conf
usr/share/linglong/config.yaml
usr/share/locale
usr/share/mime/packages/vnd.linyaps.uab.xml
usr/share/polkit-1/actions/org.deepin.linglong.PackageManager1.policy
123 changes: 123 additions & 0 deletions rpm/linglong.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
Name: linglong
Version: 1.4.3
Release: 1
Summary: Linglong Package FrameWork
License: LGPLv3
URL: https://github.com/linuxdeepin/%{name}
Source0: %{url}/archive/%{version}/linglong-%{version}.tar.gz

BuildRequires: cmake gcc-c++
BuildRequires: qt5-qtbase-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
BuildRequires: libcurl-devel openssl-devel libcap-devel
BuildRequires: gtest-devel gmock-devel
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}
%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}
%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

%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

%files -n linglong-bin
%doc README.md
%license LICENSE
%{_sysconfdir}/profile.d/*
%{_sysconfdir}/X11/Xsession.d/*
%{_bindir}/ll-cli
%{_bindir}/llpkg
%{_prefix}/lib/%{name}/container/*
%{_prefix}/lib/%{name}/generate-xdg-data-dirs.sh
%{_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-generators/*
%{_libexecdir}/%{name}/ll-package-manager
%{_libexecdir}/%{name}/ll-session-helper
%{_libexecdir}/%{name}/ld-cache-generator
%{_libexecdir}/%{name}/font-cache-generator
%{_libexecdir}/%{name}/ll-dialog
%{_libexecdir}/%{name}/dialog/99-linglong-permission
%{_datadir}/bash-completion/completions/ll-cli
%{_datadir}/zsh/vendor-completions/_ll-cli
%{_datadir}/dbus-1/system-services/*.service
%{_datadir}/dbus-1/system.d/*.conf
%{_datadir}/polkit-1/actions/org.deepin.linglong.PackageManager1.policy
%{_datadir}/%{name}/config.yaml
%{_datadir}/mime/packages/*
%{_datadir}/locale/*

%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
%{_datadir}/%{name}/builder/uab/*

%files -n linglong-box
%license LICENSE
%{_bindir}/ll-box

%changelog
* Thu Apr 25 2024 chenhuixing <[email protected]> - 1.4.3-1
- Init project

0 comments on commit 6645a40

Please sign in to comment.