split into subpackages
This commit is contained in:
parent
2be73bf12d
commit
58c5eb5fc8
153
pigpio.spec
153
pigpio.spec
@ -4,14 +4,14 @@
|
||||
%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 _doc_path /usr/share/doc
|
||||
%global _service_path /usr/lib/systemd/system
|
||||
%global debug_package %{nil}
|
||||
|
||||
Name: pigpio
|
||||
Version: 1.79
|
||||
Release: 1
|
||||
Summary: library for GPIO on RPi
|
||||
Summary: Raspberry Pi GPIO control transitional package
|
||||
License: Unlicense
|
||||
URL: https://github.com/joan2937/pigpio
|
||||
Source0: https://github.com/joan2937/pigpio/archive/%{version}/pigpio-%{version}.tar.gz
|
||||
@ -22,6 +22,19 @@ Patch0002: pigpiod-service.patch
|
||||
|
||||
BuildRequires: make >= 3.78
|
||||
BuildRequires: gcc >= 3.4.2
|
||||
BuildRequires: python
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python3
|
||||
BuildRequires: python3-setuptools
|
||||
Requires: libpigpiod-if2-1 = %{version}-%{release}
|
||||
Requires: libpigpiod-if1 = %{version}-%{release}
|
||||
Requires: libpigpiod-if-dev = %{version}-%{release}
|
||||
Requires: libpigpio1 = %{version}-%{release}
|
||||
Requires: libpigpio-dev = %{version}-%{release}
|
||||
Requires: pigpio-tools = %{version}-%{release}
|
||||
Requires: pigpiod = %{version}-%{release}
|
||||
Requires: python-pigpio = %{version}-%{release}
|
||||
Requires: python3-pigpio = %{version}-%{release}
|
||||
AutoReq: no
|
||||
AutoProv: yes
|
||||
|
||||
@ -31,7 +44,66 @@ ExclusiveArch: aarch64
|
||||
ExclusiveOS: Linux
|
||||
|
||||
%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-dev
|
||||
Summary: Development headers for client libraries for Raspberry Pi GPIO control
|
||||
Provides: libpigpiod-if-dev = %{version}-%{release}
|
||||
Requires: libpigpiod-if2-1 = %{version}-%{release}
|
||||
Requires: libpigpiod-if1 = %{version}-%{release}
|
||||
%description -n libpigpiod-if-dev
|
||||
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-dev
|
||||
Summary: Client tools for Raspberry Pi GPIO control
|
||||
Provides: libpigpio-dev = %{version}-%{release}
|
||||
Requires: libpigpio1 = %{version}-%{release}
|
||||
%description -n libpigpio-dev
|
||||
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 python-pigpio
|
||||
Summary: Python module which talks to the pigpio daemon (Python 2)
|
||||
Provides: python-pigpio = %{version}-%{release}
|
||||
Requires: python
|
||||
%description -n python-pigpio
|
||||
This package provides the python 2 client 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
|
||||
%setup -q -n %{name}-%{version} -c
|
||||
@ -48,23 +120,82 @@ make
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_service_path}
|
||||
mkdir -p %{buildroot}%{_doc_path}
|
||||
mkdir -p %{buildroot}%{_doc_path}/{pigpio,pigpiod,pigpio-tools,libpigpio-dev,libpigpio1,libpigpiod-if-dev,libpigpiod-if2-1,libpigpiod-if1,python-pigpio,python3-pigpio}
|
||||
cd %{name}-%{version}
|
||||
make install DESTDIR=%{buildroot}
|
||||
install -p -m 644 util/pigpiod.service %{buildroot}%{_service_path}
|
||||
install -p -m 644 UNLICENCE %{buildroot}%{_doc_path}
|
||||
install -p -m 644 UNLICENCE %{buildroot}%{_doc_path}/pigpio/
|
||||
install -p -m 644 UNLICENCE %{buildroot}%{_doc_path}/pigpiod/
|
||||
install -p -m 644 UNLICENCE %{buildroot}%{_doc_path}/pigpio-tools/
|
||||
install -p -m 644 UNLICENCE %{buildroot}%{_doc_path}/libpigpio-dev/
|
||||
install -p -m 644 UNLICENCE %{buildroot}%{_doc_path}/libpigpio1/
|
||||
install -p -m 644 UNLICENCE %{buildroot}%{_doc_path}/libpigpiod-if-dev/
|
||||
install -p -m 644 UNLICENCE %{buildroot}%{_doc_path}/libpigpiod-if2-1/
|
||||
install -p -m 644 UNLICENCE %{buildroot}%{_doc_path}/libpigpiod-if1/
|
||||
install -p -m 644 UNLICENCE %{buildroot}%{_doc_path}/python-pigpio/
|
||||
install -p -m 644 UNLICENCE %{buildroot}%{_doc_path}/python3-pigpio/
|
||||
|
||||
%files
|
||||
%defattr (-, root, root)
|
||||
%doc
|
||||
/usr/lib/*
|
||||
/usr/include/*
|
||||
/usr/bin/*
|
||||
/usr/lib/systemd/system/*
|
||||
/usr/man/man1/*
|
||||
/usr/man/man3/*
|
||||
/usr/share/doc/pigpio/*
|
||||
|
||||
%files -n libpigpiod-if2-1
|
||||
%defattr (-, root, root)
|
||||
/usr/lib/libpigpiod_if2.so.1
|
||||
/usr/share/doc/libpigpiod-if2-1/*
|
||||
|
||||
%files -n libpigpiod-if1
|
||||
%defattr (-, root, root)
|
||||
/usr/lib/libpigpiod_if.so.1
|
||||
/usr/share/doc/libpigpiod-if1/*
|
||||
|
||||
%files -n libpigpiod-if-dev
|
||||
%defattr (-, root, root)
|
||||
/usr/lib/libpigpiod_if*.so
|
||||
/usr/include/pigpiod_if*.h
|
||||
/usr/man/man3/pigpiod_if.3*
|
||||
/usr/man/man3/pigpiod_if2.3*
|
||||
/usr/share/doc/libpigpiod-if-dev/*
|
||||
|
||||
%files -n libpigpio1
|
||||
%defattr (-, root, root)
|
||||
/usr/lib/libpigpio.so.1
|
||||
/usr/share/doc/libpigpio1/*
|
||||
|
||||
%files -n libpigpio-dev
|
||||
%defattr (-, root, root)
|
||||
/usr/lib/libpigpio.so
|
||||
/usr/include/pigpio.h
|
||||
/usr/man/man3/pigpio.3*
|
||||
/usr/share/doc/libpigpio-dev/*
|
||||
|
||||
%files -n pigpio-tools
|
||||
%defattr (-, root, root)
|
||||
/usr/bin/pig2vcd
|
||||
/usr/bin/pigs
|
||||
/usr/man/man1/pigs.1*
|
||||
/usr/man/man1/pig2vcd.1*
|
||||
/usr/share/doc/pigpio-tools/*
|
||||
|
||||
%files -n pigpiod
|
||||
%defattr (-, root, root)
|
||||
/opt/pigpio/*
|
||||
/usr/bin/pigpiod
|
||||
/usr/man/man1/pigpiod.1*
|
||||
/usr/lib/systemd/system/pigpiod.service
|
||||
/usr/share/doc/pigpiod/*
|
||||
|
||||
%files -n python-pigpio
|
||||
%defattr (-, root, root)
|
||||
/usr/lib/python2*
|
||||
/usr/share/doc/python-pigpio/*
|
||||
|
||||
%files -n python3-pigpio
|
||||
%defattr (-, root, root)
|
||||
/usr/lib/python3*
|
||||
/usr/share/doc/python3-pigpio/*
|
||||
|
||||
%changelog
|
||||
* Mon May 17 2021 Yafen Fang<yafen@iscas.ac.cn> - 1.79-1
|
||||
- init package
|
||||
Loading…
x
Reference in New Issue
Block a user