summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-07-10 10:34:56 +0000
committerCoprDistGit <infra@openeuler.org>2024-07-10 10:34:56 +0000
commitad50f3e032c55671e85e5122b94ad873f4bba770 (patch)
tree84b83118ccd136852736ac23f82ade71d8a818f4
parent149ed839a4d276977325df28e8e07ef911795042 (diff)
automatic import of linglong-store
-rw-r--r--.gitignore1
-rw-r--r--linglong-store.spec55
-rw-r--r--sources1
3 files changed, 57 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..c2730d2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/linglong-store-1.3.3.7.tar.gz
diff --git a/linglong-store.spec b/linglong-store.spec
new file mode 100644
index 0000000..9fb331c
--- /dev/null
+++ b/linglong-store.spec
@@ -0,0 +1,55 @@
+Name: linglong-store
+Version: 1.3.3.7
+Release: 1
+Summary: Linglong package installer for web store
+License: LGPLv3
+URL: https://github.com/kamiyadm/%{name}
+Source0: %{url}/archive/%{version}/linglong-store-%{version}.tar.gz
+
+BuildRequires: cmake gcc-c++
+BuildRequires: qt5-qtbase-devel
+Requires: linglong-installer = %{version}-%{release}
+
+%description
+This package is a tool for installing package from web store.
+
+%package -n linglong-installer
+Summary: Linglong package installer
+Requires: xdg-utils
+%description -n linglong-installer
+Linglong package installer for web store
+
+%prep
+%autosetup -p1 -n linglong-store-%{version}
+
+%define _debugsource_template %{nil}
+
+%build
+export PATH=%{_qt5_bindir}:$PATH
+mkdir build && cd build
+cmake -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
+ -DLIB_INSTALL_DIR:PATH=%{_libdir} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DSHARE_INSTALL_PREFIX:PATH=%{_datadir} ..
+%make_build
+
+%install
+cd build
+%make_install INSTALL_ROOT=%{buildroot}
+
+%post -n linglong-installer
+xdg-mime default space.linglong.Installer.desktop x-scheme-handler/og
+
+%files
+%doc README.md
+%license LICENSE
+
+%files -n linglong-installer
+%doc README.md
+%license LICENSE
+%{_bindir}/ll-installer
+%{_datadir}/applications/*.desktop
+
+%changelog
+* Thu Apr 25 2024 chenhuixing <chenhuixing@deepin.org> - 1.3.3.7-1
+- Init project
diff --git a/sources b/sources
new file mode 100644
index 0000000..30861d0
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+c4d95a78c41a87e93c5c7339f3077976 linglong-store-1.3.3.7.tar.gz