Compare commits
10 Commits
2be73bf12d
...
0873e4311b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0873e4311b | ||
|
|
7a160618c6 | ||
|
|
b328c71802 | ||
|
|
2d35121033 | ||
|
|
3a8b4f8863 | ||
|
|
a8beab8a75 | ||
|
|
aadd5f5de2 | ||
|
|
08f9741dc1 | ||
|
|
052592072e | ||
|
|
58c5eb5fc8 |
@ -1,6 +1,6 @@
|
|||||||
--- a/Makefile
|
--- a/Makefile
|
||||||
+++ b/Makefile
|
+++ b/Makefile
|
||||||
@@ -33,7 +33,7 @@ LL2 = -L. -lpigpiod_if -pthread -lr
|
@@ -33,12 +33,12 @@ LL2 = -L. -lpigpiod_if -pthread -lrt
|
||||||
|
|
||||||
LL3 = -L. -lpigpiod_if2 -pthread -lrt
|
LL3 = -L. -lpigpiod_if2 -pthread -lrt
|
||||||
|
|
||||||
@ -9,4 +9,9 @@
|
|||||||
exec_prefix = $(prefix)
|
exec_prefix = $(prefix)
|
||||||
bindir = $(exec_prefix)/bin
|
bindir = $(exec_prefix)/bin
|
||||||
includedir = $(prefix)/include
|
includedir = $(prefix)/include
|
||||||
|
libdir = $(prefix)/lib
|
||||||
|
-mandir = $(prefix)/man
|
||||||
|
+mandir = $(prefix)/share/man
|
||||||
|
|
||||||
|
all: $(ALL)
|
||||||
|
|
||||||
|
|||||||
152
pigpio.spec
152
pigpio.spec
@ -1,17 +1,11 @@
|
|||||||
%global _lib_path /usr/lib
|
%global _lib_dir /usr/lib
|
||||||
%global _include_path /usr/include
|
|
||||||
%global _bin_path /usr/bin
|
|
||||||
%global _man1_path /usr/man/man1
|
|
||||||
%global _man3_path /usr/man/man3
|
|
||||||
%global _opt_path /opt/pigpio/cgi
|
|
||||||
%global _doc_path /usr/share/doc/pigpio
|
|
||||||
%global _service_path /usr/lib/systemd/system
|
%global _service_path /usr/lib/systemd/system
|
||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
|
|
||||||
Name: pigpio
|
Name: pigpio
|
||||||
Version: 1.79
|
Version: 1.79
|
||||||
Release: 1
|
Release: 4
|
||||||
Summary: library for GPIO on RPi
|
Summary: Raspberry Pi GPIO control transitional package
|
||||||
License: Unlicense
|
License: Unlicense
|
||||||
URL: https://github.com/joan2937/pigpio
|
URL: https://github.com/joan2937/pigpio
|
||||||
Source0: https://github.com/joan2937/pigpio/archive/%{version}/pigpio-%{version}.tar.gz
|
Source0: https://github.com/joan2937/pigpio/archive/%{version}/pigpio-%{version}.tar.gz
|
||||||
@ -22,6 +16,16 @@ Patch0002: pigpiod-service.patch
|
|||||||
|
|
||||||
BuildRequires: make >= 3.78
|
BuildRequires: make >= 3.78
|
||||||
BuildRequires: gcc >= 3.4.2
|
BuildRequires: gcc >= 3.4.2
|
||||||
|
BuildRequires: python3
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
Requires: libpigpiod-if2-1 = %{version}-%{release}
|
||||||
|
Requires: libpigpiod-if1 = %{version}-%{release}
|
||||||
|
Requires: libpigpiod-if-devel = %{version}-%{release}
|
||||||
|
Requires: libpigpio1 = %{version}-%{release}
|
||||||
|
Requires: libpigpio-devel = %{version}-%{release}
|
||||||
|
Requires: pigpio-tools = %{version}-%{release}
|
||||||
|
Requires: pigpiod = %{version}-%{release}
|
||||||
|
Requires: python3-pigpio = %{version}-%{release}
|
||||||
AutoReq: no
|
AutoReq: no
|
||||||
AutoProv: yes
|
AutoProv: yes
|
||||||
|
|
||||||
@ -31,7 +35,59 @@ ExclusiveArch: aarch64
|
|||||||
ExclusiveOS: Linux
|
ExclusiveOS: Linux
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Library for the Raspberry which allows control of the General Purpose Input Outputs (GPIO)
|
A set of software which allows control of the General Purpose Input Outputs (GPIO) locally or remotely.
|
||||||
|
|
||||||
|
%package -n libpigpiod-if2-1
|
||||||
|
Summary: Client library for GPIO
|
||||||
|
Provides: libpigpiod-if2-1 = %{version}-%{release}
|
||||||
|
%description -n libpigpiod-if2-1
|
||||||
|
This package provides the libpigpiod_if2 client library for Raspberry Pi GPIO control.
|
||||||
|
|
||||||
|
%package -n libpigpiod-if1
|
||||||
|
Summary: Client library for GPIO (deprecated)
|
||||||
|
Provides: libpigpiod-if1 = %{version}-%{release}
|
||||||
|
%description -n libpigpiod-if1
|
||||||
|
This package provides the deprecated libpigpiod_if client library
|
||||||
|
|
||||||
|
%package -n libpigpiod-if-devel
|
||||||
|
Summary: Development headers for client libraries for Raspberry Pi GPIO control
|
||||||
|
Provides: libpigpiod-if-devel = %{version}-%{release}
|
||||||
|
Requires: libpigpiod-if2-1 = %{version}-%{release}
|
||||||
|
Requires: libpigpiod-if1 = %{version}-%{release}
|
||||||
|
%description -n libpigpiod-if-devel
|
||||||
|
This package provides the development headers for the libpigpiod_if2 and libpigpiod_if client libraries.
|
||||||
|
|
||||||
|
%package -n libpigpio1
|
||||||
|
Summary: Library for Raspberry Pi GPIO control
|
||||||
|
Provides: libpigpio1 = %{version}-%{release}
|
||||||
|
%description -n libpigpio1
|
||||||
|
This package provides the pigpio library used to access the GPIO directly.
|
||||||
|
|
||||||
|
%package -n libpigpio-devel
|
||||||
|
Summary: Client tools for Raspberry Pi GPIO control
|
||||||
|
Provides: libpigpio-devel = %{version}-%{release}
|
||||||
|
Requires: libpigpio1 = %{version}-%{release}
|
||||||
|
%description -n libpigpio-devel
|
||||||
|
This package provides the development headers for the pigpio library used to access the GPIO directly.
|
||||||
|
|
||||||
|
%package -n pigpio-tools
|
||||||
|
Summary: Client tools for Raspberry Pi GPIO control
|
||||||
|
Provides: pigpio-tools = %{version}-%{release}
|
||||||
|
%description -n pigpio-tools
|
||||||
|
This package provides the pigs and pig2vcd tools.
|
||||||
|
|
||||||
|
%package -n pigpiod
|
||||||
|
Summary: Client tools for Raspberry Pi GPIO control
|
||||||
|
Provides: pigpiod = %{version}-%{release}
|
||||||
|
%description -n pigpiod
|
||||||
|
This package provides the pigpiod daemon which offers a socket and pipe interface to the underlying library.
|
||||||
|
|
||||||
|
%package -n python3-pigpio
|
||||||
|
Summary: Python module which talks to the pigpio daemon (Python 3)
|
||||||
|
Provides: python3-pigpio = %{version}-%{release}
|
||||||
|
Requires: python3
|
||||||
|
%description -n python3-pigpio
|
||||||
|
This package provides the python 3 client library.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version} -c
|
%setup -q -n %{name}-%{version} -c
|
||||||
@ -48,23 +104,77 @@ make
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{_service_path}
|
mkdir -p %{buildroot}%{_service_path}
|
||||||
mkdir -p %{buildroot}%{_doc_path}
|
|
||||||
cd %{name}-%{version}
|
cd %{name}-%{version}
|
||||||
make install DESTDIR=%{buildroot}
|
make install DESTDIR=%{buildroot}
|
||||||
install -p -m 644 util/pigpiod.service %{buildroot}%{_service_path}
|
install -p -m 644 util/pigpiod.service %{buildroot}%{_service_path}
|
||||||
install -p -m 644 UNLICENCE %{buildroot}%{_doc_path}
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr (-, root, root)
|
%defattr (-, root, root)
|
||||||
%doc
|
%license %{name}-%{version}/UNLICENCE
|
||||||
/usr/lib/*
|
%exclude %{_lib_dir}/python2*
|
||||||
/usr/include/*
|
|
||||||
/usr/bin/*
|
%files -n libpigpiod-if2-1
|
||||||
/usr/lib/systemd/system/*
|
%defattr (-, root, root)
|
||||||
/usr/man/man1/*
|
%{_lib_dir}/libpigpiod_if2.so.1
|
||||||
/usr/man/man3/*
|
%license %{name}-%{version}/UNLICENCE
|
||||||
/usr/share/doc/pigpio/*
|
|
||||||
|
%files -n libpigpiod-if1
|
||||||
|
%defattr (-, root, root)
|
||||||
|
%{_lib_dir}/libpigpiod_if.so.1
|
||||||
|
%license %{name}-%{version}/UNLICENCE
|
||||||
|
|
||||||
|
%files -n libpigpiod-if-devel
|
||||||
|
%defattr (-, root, root)
|
||||||
|
%{_lib_dir}/libpigpiod_if*.so
|
||||||
|
%{_includedir}/pigpiod_if*.h
|
||||||
|
%{_mandir}/man3/pigpiod_if.3*
|
||||||
|
%{_mandir}/man3/pigpiod_if2.3*
|
||||||
|
%license %{name}-%{version}/UNLICENCE
|
||||||
|
|
||||||
|
%files -n libpigpio1
|
||||||
|
%defattr (-, root, root)
|
||||||
|
%{_lib_dir}/libpigpio.so.1
|
||||||
|
%license %{name}-%{version}/UNLICENCE
|
||||||
|
|
||||||
|
%files -n libpigpio-devel
|
||||||
|
%defattr (-, root, root)
|
||||||
|
%{_lib_dir}/libpigpio.so
|
||||||
|
%{_includedir}/pigpio.h
|
||||||
|
%{_mandir}/man3/pigpio.3*
|
||||||
|
%license %{name}-%{version}/UNLICENCE
|
||||||
|
|
||||||
|
%files -n pigpio-tools
|
||||||
|
%defattr (-, root, root)
|
||||||
|
%{_bindir}/pig2vcd
|
||||||
|
%{_bindir}/pigs
|
||||||
|
%{_mandir}/man1/pigs.1*
|
||||||
|
%{_mandir}/man1/pig2vcd.1*
|
||||||
|
%license %{name}-%{version}/UNLICENCE
|
||||||
|
|
||||||
|
%files -n pigpiod
|
||||||
|
%defattr (-, root, root)
|
||||||
|
/opt/pigpio
|
||||||
|
%{_bindir}/pigpiod
|
||||||
|
%{_mandir}/man1/pigpiod.1*
|
||||||
|
%{_service_path}/pigpiod.service
|
||||||
|
%license %{name}-%{version}/UNLICENCE
|
||||||
|
|
||||||
|
%files -n python3-pigpio
|
||||||
|
%defattr (-, root, root)
|
||||||
|
%{_lib_dir}/python3*
|
||||||
|
%license %{name}-%{version}/UNLICENCE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Nov 01 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 1.79-4
|
||||||
|
- revert to 1.79-2
|
||||||
|
|
||||||
|
* Wed Jun 19 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 1.79-3
|
||||||
|
- build for loongarch64
|
||||||
|
|
||||||
|
* Fri Aug 27 2021 Yafen Fang<yafen@iscas.ac.cn> - 1.79-2
|
||||||
|
- change package name libpigpiod-if-dev to libpigpiod-if-devel
|
||||||
|
- change package name libpigpio-dev to libpigpio-devel
|
||||||
|
- change installation directory of man files
|
||||||
|
|
||||||
* Mon May 17 2021 Yafen Fang<yafen@iscas.ac.cn> - 1.79-1
|
* Mon May 17 2021 Yafen Fang<yafen@iscas.ac.cn> - 1.79-1
|
||||||
- init package
|
- init package
|
||||||
|
|||||||
4
pigpio.yaml
Normal file
4
pigpio.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: joan2937/pigpio
|
||||||
|
tag_prefix: ^
|
||||||
|
seperator: .
|
||||||
Loading…
x
Reference in New Issue
Block a user