mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
92 lines
3.0 KiB
RPMSpec
92 lines
3.0 KiB
RPMSpec
%undefine __brp_add_determinism
|
|
# disable debuginfo subpackage
|
|
%global debug_package %{nil}
|
|
# Disable build-id symlinks to avoid conflicts
|
|
%global _build_id_links none
|
|
# don't strip bundled binaries because pycharm checks length (!!!) of binary fsnotif
|
|
# and if you strip debug stuff from it, it will complain
|
|
%global __strip /bin/true
|
|
# dont repack jars
|
|
%global __jar_repack %{nil}
|
|
# disable rpath checks
|
|
%define __brp_check_rpaths %{nil}
|
|
|
|
%define __requires_exclude_from ^/usr/libexec/android-studio/.*$
|
|
%define __provides_exclude_from ^/usr/libexec/android-studio/.*|libedit\\so.*$
|
|
%global __requires_exclude ^libaaudio\\.so.*|^libandroid\\.so.*|^libmediandk\\.so.*|^liblog\\.so.*|^libc\\.so.*|^libm\\.so.*|^libdl\\.so.*|^libcrypt\\.so.*|^libstdc\\+\\+\\.so.*|^libncursesw\\.so.*|^libtinfo\\.so.*|^libnsl\\.so.*|^libpanelw\\.so.*$
|
|
|
|
Name: android-studio
|
|
Version: 2025.3.3.6
|
|
Release: 1%{?dist}
|
|
Summary: Official IDE for Android development
|
|
License: Apache-2.0
|
|
Packager: veuxit <erroor234@gmail.com>, like-engels <higashikataengels@icloud.com>
|
|
ExclusiveArch: x86_64
|
|
URL: https://developer.android.com/studio
|
|
|
|
%define suffixS panda3
|
|
|
|
Source0: https://dl.google.com/dl/android/studio/ide-zips/%{version}/android-studio-%{suffixS}-linux.tar.gz
|
|
|
|
Requires: alsa-lib
|
|
Requires: freetype
|
|
Requires: which
|
|
Requires: libXrender
|
|
Requires: libXtst
|
|
Requires: glibc
|
|
Requires: libsecret
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
%description
|
|
Android Studio is the official IDE for Android development, and includes everything you need to build Android apps.
|
|
|
|
%prep
|
|
%autosetup -n android-studio
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
cp -a * %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
ln -s %{_libexecdir}/%{name}/bin/studio %{buildroot}%{_bindir}/%{name}
|
|
|
|
mkdir -p %{buildroot}%{_licensedir}/%{name}
|
|
install -Dm644 LICENSE.txt %{buildroot}%{_licensedir}/%{name}/LICENSE.txt
|
|
|
|
install -d %{buildroot}%{_datadir}/pixmaps
|
|
install -m 0644 -p bin/studio.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
|
install -d %{buildroot}%{_datadir}/icons/hicolor/scalable/apps
|
|
install -m 0644 -p bin/studio.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/applications
|
|
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << 'EOF'
|
|
[Desktop Entry]
|
|
Version=1.0
|
|
Type=Application
|
|
Name=Android Studio
|
|
Exec=android-studio
|
|
Icon=android-studio
|
|
Comment=Official IDE for Android development
|
|
Categories=Development;IDE;
|
|
Terminal=false
|
|
StartupNotify=true
|
|
StartupWMClass=jetbrains-studio
|
|
MimeType=application/x-extension-iml;
|
|
EOF
|
|
|
|
%check
|
|
%desktop_file_validate %{buildroot}%{_datadir}/applications/%{name}.desktop
|
|
|
|
%files
|
|
%license %{_licensedir}/%{name}/LICENSE.txt
|
|
%{_libexecdir}/%{name}
|
|
%{_bindir}/%{name}
|
|
%{_datadir}/pixmaps/android-studio.png
|
|
%{_datadir}/icons/hicolor/scalable/apps/android-studio.svg
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%changelog
|
|
* Fri Feb 20 2026 veuxit <erroor234@gmail.com> - 2025.3.1.8
|
|
- Package update to 2025.3.1.8 panda1-patch1 |