RPM: Packager une extension Gnome-Shell
Le présent article est actuellement en cours de rédaction ou de modification. Adressez-vous à la personne en charge pour toute proposition ou modification. |
Auteur / Editeur : Adadov |
Dernière édition : 15/11/2018 |
Utilisation de mes RPM via DNF
[adadov]
name=Adadov $releasever - $basearch
failovermethod=priority
baseurl=http://repos.adadov.net/adadov/$releasever/$basearch/
enabled=1
gpgcheck=0
Exemples
Extension Alternate Tab
Name: gnome-shell-extension-alternate-tab
Version: 39
Release: 6%{?dist}
Summary: Extension Alternate Tab pour Gnome Shell
BuildArch: noarch
License: GPL
URL: https://gitlab.gnome.org/GNOME/gnome-shell-extensions
Source0: alternate-tab@gnome-shell-extensions.gcampax.github.com.v%{version}.shell-extension.zip
%description
Extension Gnome Shell
%prep
rm -rf %{name}-%{version}
mkdir %{name}-%{version}
cd %{name}-%{version}
unzip -qq %{_topdir}/SOURCES/alternate-tab@gnome-shell-extensions.gcampax.github.com.v%{version}.shell-extension.zip
%install
cd %{name}-%{version}
rm -rf $RPM_BUILD_ROOT
rm -f NEWS
install -m 755 -d $RPM_BUILD_ROOT%{_datadir}/gnome-shell/extensions/alternate-tab@gnome-shell-extensions.gcampax.github.com/
cp -a . $RPM_BUILD_ROOT%{_datadir}/gnome-shell/extensions/alternate-tab@gnome-shell-extensions.gcampax.github.com/
find $RPM_BUILD_ROOT%{_datadir}/gnome-shell/extensions/alternate-tab@gnome-shell-extensions.gcampax.github.com/ -type f -exec chmod 644 {} \;
%files
%defattr(-,root,root)
%{_datadir}/gnome-shell/extensions/alternate-tab@gnome-shell-extensions.gcampax.github.com/locale/
%{_datadir}/gnome-shell/extensions/alternate-tab@gnome-shell-extensions.gcampax.github.com/prefs.js
%{_datadir}/gnome-shell/extensions/alternate-tab@gnome-shell-extensions.gcampax.github.com/metadata.json
%{_datadir}/gnome-shell/extensions/alternate-tab@gnome-shell-extensions.gcampax.github.com/extension.js
%{_datadir}/gnome-shell/extensions/alternate-tab@gnome-shell-extensions.gcampax.github.com/convenience.js
%{_datadir}/gnome-shell/extensions/alternate-tab@gnome-shell-extensions.gcampax.github.com/stylesheet.css
%{_datadir}/gnome-shell/extensions/alternate-tab@gnome-shell-extensions.gcampax.github.com/COPYING
%changelog
* Thu Nov 15 2018 David OLIVIER <***> 39-6
- Ajout URL
* Thu Nov 15 2018 David OLIVIER <***> 39-5
- Correction du nom de répertoire
* Thu Nov 15 2018 David OLIVIER <***> 39-4
- Création du RPM
Extension Caffeine
Name: gnome-shell-extension-caffeine
Version: 30
Release: 3%{?dist}
Summary: Extension Caffeine pour Gnome Shell
BuildArch: noarch
License: GPL
URL: https://github.com/eonpatapon/gnome-shell-extension-caffeine
Source0: caffeine@patapon.info.v%{version}.shell-extension.zip
%description
Extension Gnome Shell
%prep
rm -rf %{name}-%{version}
mkdir %{name}-%{version}
cd %{name}-%{version}
unzip -qq %{_topdir}/SOURCES/caffeine@patapon.info.v%{version}.shell-extension.zip
%install
cd %{name}-%{version}
rm -rf $RPM_BUILD_ROOT
install -m 755 -d $RPM_BUILD_ROOT%{_datadir}/gnome-shell/extensions/caffeine@patapon.info/
cp -a . $RPM_BUILD_ROOT%{_datadir}/gnome-shell/extensions/caffeine@patapon.info/
find $RPM_BUILD_ROOT%{_datadir}/gnome-shell/extensions/caffeine@patapon.info/ -type f -exec chmod 644 {} \;
%files
%defattr(-,root,root)
%{_datadir}/gnome-shell/extensions/caffeine@patapon.info/locale/
%{_datadir}/gnome-shell/extensions/caffeine@patapon.info/icons/
%{_datadir}/gnome-shell/extensions/caffeine@patapon.info/schemas/
%{_datadir}/gnome-shell/extensions/caffeine@patapon.info/prefs.js
%{_datadir}/gnome-shell/extensions/caffeine@patapon.info/metadata.json
%{_datadir}/gnome-shell/extensions/caffeine@patapon.info/extension.js
%{_datadir}/gnome-shell/extensions/caffeine@patapon.info/convenience.js
%changelog
* Tue Nov 06 2018 David OLIVIER <****> 30-2
- Correction des permissions
* Mon Nov 05 2018 David OLIVIER <*****> 30-1
- Création du RPM
Extension Dash-to-Dock
Cette extension est buggé dans certaines versions ...
Name: gnome-shell-extension-dash-to-dock
Version: 64
Release: 1%{?dist}
Summary: Extension Dash-to-dock pour Gnome Shell
BuildArch: noarch
License: GPL
URL: https://micheleg.github.io/dash-to-dock/
Source0: dash-to-dock@micxgx.gmail.com.v%{version}.shell-extension.zip
%description
Extension Gnome Shell
%prep
rm -rf %{name}-%{version}
mkdir %{name}-%{version}
cd %{name}-%{version}
unzip -qq %{_topdir}/SOURCES/dash-to-dock@micxgx.gmail.com.v%{version}.shell-extension.zip
%install
cd %{name}-%{version}
rm -rf $RPM_BUILD_ROOT
install -m 755 -d $RPM_BUILD_ROOT%{_datadir}/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/
cp -a . $RPM_BUILD_ROOT%{_datadir}/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/
find $RPM_BUILD_ROOT%{_datadir}/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/ -type f -exec chmod 644 {} \;
%files
%defattr(-,root,root)
%{_datadir}/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/locale/
%{_datadir}/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/media/
%{_datadir}/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/schemas/
%{_datadir}/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/*.js
%{_datadir}/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/metadata.json
%{_datadir}/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/Settings.ui
%{_datadir}/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/stylesheet.css
%{_datadir}/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/COPYING
%{_datadir}/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/README.md
%changelog
* Tue Nov 06 2018 David OLIVIER <***> 30-2
- Correction des permissions
* Mon Nov 05 2018 David OLIVIER <***> 30-1
- Création du RPM