-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
113 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
pkgname=python-radexreader | ||
pkgver=1.2.4 | ||
pkgrel=1 | ||
pkgdesc="Reader for the RADEX RD1212 and ONE Geiger counters" | ||
arch=('any') | ||
url='https://github.com/luigifab/python-radexreader' | ||
license=('GPL2') | ||
depends=('python-pyusb' 'python-pyserial') | ||
makedepends=('python-setuptools') | ||
source=("https://github.com/luigifab/python-radexreader/archive/v${pkgver}/python-radexreader-${pkgver}.tar.gz") | ||
md5sums=("...") | ||
|
||
prepare() { | ||
cd "$pkgname-$pkgver" | ||
sed -i 's/python3-radexreader /python3-radexreader-zst /g' src/radexreader.py | ||
sed -i 's/\#\!\/usr\/bin\/python3/\#/g' src/radexreader/__init__.py | ||
} | ||
|
||
build() { | ||
cd "$pkgname-$pkgver/src" | ||
python setup.py build | ||
} | ||
|
||
package() { | ||
cd "$pkgname-$pkgver/src" | ||
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build | ||
|
||
mkdir -p "$pkgdir/usr/bin/" | ||
install -pm 755 radexreader.py "$pkgdir/usr/bin/" | ||
|
||
mkdir -p "$pkgdir/usr/share/doc/$pkgname/" | ||
install -pm 644 ../README.md "$pkgdir/usr/share/doc/$pkgname/" | ||
|
||
mkdir -p "$pkgdir/usr/share/licenses/$pkgname/" | ||
install -pm 644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/" | ||
|
||
mkdir -p "$pkgdir/usr/share/man/man1/" "$pkgdir/usr/share/man/fr/man1/" | ||
install -pm 644 ../debian/radexreader.1 "$pkgdir/usr/share/man/man1/$pkgname.1" | ||
install -pm 644 ../debian/radexreader.fr.1 "$pkgdir/usr/share/man/fr/man1/$pkgname.1" | ||
|
||
mkdir -p "$pkgdir/usr/lib/udev/rules.d/" | ||
install -pm 644 ../debian/udev "$pkgdir/usr/lib/udev/rules.d/60-$pkgname.rules" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
python-radexreader (1.2.3-1) experimental; urgency=low | ||
python-radexreader (1.2.4-1) experimental; urgency=low | ||
|
||
* Initial Debian package release (Closes: #973447) | ||
|
||
-- Fabrice Creuzot <[email protected]> Tue, 10 Oct 2023 20:00:00 +0000 | ||
-- Fabrice Creuzot <[email protected]> Fri, 02 Feb 2024 20:00:00 +0000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ Priority: optional | |
Maintainer: Fabrice Creuzot <[email protected]> | ||
Build-Depends: debhelper-compat (= 13), python3-all, dh-python, dh-exec | ||
Rules-Requires-Root: no | ||
Standards-Version: 4.6.1.0 | ||
Standards-Version: 4.6.2 | ||
Homepage: https://github.com/luigifab/python-radexreader | ||
Vcs-Browser: https://github.com/luigifab/python-radexreader | ||
Vcs-Git: https://github.com/luigifab/python-radexreader.git | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ Source: https://github.com/luigifab/python-radexreader | |
Upstream-Contact: Fabrice Creuzot <[email protected]> | ||
|
||
Files: * | ||
Copyright: 2020-2023 Fabrice Creuzot (luigifab) <[email protected]> | ||
Copyright: 2020-2024 Fabrice Creuzot (luigifab) <[email protected]> | ||
License: GPL-2+ | ||
|
||
License: GPL-2+ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ Pour éviter un Access denied (insufficient permissions), n'oubliez pas | |
de débrancher l'appareil après l'installation.} | ||
|
||
Name: python-radexreader | ||
Version: 1.2.3 | ||
Version: 1.2.4 | ||
Release: 1%{?dist} | ||
Summary: %{common_summary_en} | ||
Summary(fr): %{common_summary_fr} | ||
|
@@ -61,12 +61,14 @@ cd src | |
cd src | ||
%py3_install | ||
mkdir -p %{buildroot}%{_bindir}/ | ||
mkdir -p %{buildroot}/lib/udev/rules.d/ | ||
install -pm 755 radexreader.py %{buildroot}%{_bindir}/radexreader | ||
|
||
mkdir -p %{buildroot}%{_mandir}/man1/ %{buildroot}%{_mandir}/fr/man1/ | ||
install -p -m 755 ../src/radexreader.py %{buildroot}%{_bindir}/radexreader | ||
install -p -m 644 ../debian/radexreader.1 %{buildroot}%{_mandir}/man1/radexreader.1 | ||
install -p -m 644 ../debian/radexreader.fr.1 %{buildroot}%{_mandir}/fr/man1/radexreader.1 | ||
install -p -m 644 ../debian/udev %{buildroot}/lib/udev/rules.d/60-python3-radexreader.rules | ||
install -pm 644 ../debian/radexreader.1 %{buildroot}%{_mandir}/man1/radexreader.1 | ||
install -pm 644 ../debian/radexreader.fr.1 %{buildroot}%{_mandir}/fr/man1/radexreader.1 | ||
|
||
mkdir -p %{buildroot}/lib/udev/rules.d/ | ||
install -pm 644 ../debian/udev %{buildroot}/lib/udev/rules.d/60-%{name}.rules | ||
|
||
%files -n python3-radexreader | ||
%license LICENSE | ||
|
@@ -76,10 +78,13 @@ install -p -m 644 ../debian/udev %{buildroot}/lib/udev/rules.d/60-python3-radexr | |
%{_bindir}/radexreader | ||
%{_mandir}/man1/radexreader.1* | ||
%{_mandir}/*/man1/radexreader.1* | ||
/lib/udev/rules.d/60-python3-radexreader.rules | ||
/lib/udev/rules.d/60-%{name}.rules | ||
|
||
|
||
%changelog | ||
* Fri Feb 02 2024 Fabrice Creuzot <[email protected]> - 1.2.4-1 | ||
- New upstream release | ||
|
||
* Tue Oct 10 2023 Fabrice Creuzot <[email protected]> - 1.2.3-1 | ||
- New upstream release | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
%{?!python_module:%define python_module() python-%{**} python3-%{**}} | ||
Name: python-radexreader | ||
Version: 1.2.3 | ||
Version: 1.2.4 | ||
Release: 0 | ||
Summary: Reader for the RADEX RD1212 and ONE Geiger counters | ||
License: GPL-2.0-or-later | ||
|
@@ -45,23 +45,23 @@ cd src | |
mkdir -p %{buildroot}%{_bindir}/ | ||
mkdir -p %{buildroot}%{_mandir}/man1/ %{buildroot}%{_mandir}/fr/man1/ | ||
mkdir -p %{buildroot}%{_udevrulesdir}/ | ||
install -p -m 755 ../src/radexreader.py %{buildroot}%{_bindir}/radexreader | ||
install -p -m 644 ../debian/radexreader.1 %{buildroot}%{_mandir}/man1/radexreader.1 | ||
install -p -m 644 ../debian/radexreader.fr.1 %{buildroot}%{_mandir}/fr/man1/radexreader.1 | ||
%python_expand install -p -m 644 ../debian/udev %{buildroot}%{_udevrulesdir}/60-python%{$python_bin_suffix}-radexreader.rules | ||
install -pm 755 radexreader.py %{buildroot}%{_bindir}/radexreader | ||
install -pm 644 ../debian/radexreader.1 %{buildroot}%{_mandir}/man1/radexreader.1 | ||
install -pm 644 ../debian/radexreader.fr.1 %{buildroot}%{_mandir}/fr/man1/radexreader.1 | ||
%python_clone -a %{buildroot}%{_bindir}/radexreader | ||
%python_clone -a %{buildroot}%{_mandir}/man1/radexreader.1 | ||
%python_clone -a %{buildroot}%{_mandir}/fr/man1/radexreader.1 | ||
%python_expand install -pm 644 ../debian/udev %{buildroot}%{_udevrulesdir}/60-python%{$python_bin_suffix}-radexreader.rules | ||
|
||
%files %{python_files} | ||
%license LICENSE | ||
%doc README.md | ||
%{python_sitelib}/radexreader/ | ||
%{python_sitelib}/radexreader*egg-info/ | ||
%{_udevrulesdir}/60-python%{python_bin_suffix}-radexreader.rules | ||
%python_alternative %{_bindir}/radexreader | ||
%python_alternative %{_mandir}/man1/radexreader.1%{?ext_man} | ||
%python_alternative %{_mandir}/fr/man1/radexreader.1%{?ext_man} | ||
%{_udevrulesdir}/60-python%{python_bin_suffix}-radexreader.rules | ||
|
||
%post | ||
%{python_install_alternative radexreader radexreader.1} | ||
|
@@ -71,6 +71,9 @@ install -p -m 644 ../debian/radexreader.fr.1 %{buildroot}%{_mandir}/fr/man1/rade | |
|
||
|
||
%changelog | ||
* Fri Feb 02 2024 Fabrice Creuzot <[email protected]> - 1.2.4-1 | ||
- New upstream release | ||
|
||
* Tue Oct 10 2023 Fabrice Creuzot <[email protected]> - 1.2.3-1 | ||
- New upstream release | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters