fix the summary of the devel package [release 20130217git-4mamba;Sun Mar 03 2013]
This commit is contained in:
parent
0a2d91abcf
commit
934853a8c4
@ -1,2 +1,4 @@
|
||||
# libcec
|
||||
|
||||
libCEC allows you in combination with the right hardware to control your device with your TV remote control.
|
||||
|
||||
|
133
libcec.spec
Normal file
133
libcec.spec
Normal file
@ -0,0 +1,133 @@
|
||||
# note: build for raspberrypi
|
||||
# autospec --define _with_raspberrypi=1 -u -a5 libcec.spec
|
||||
# -or-
|
||||
# rpmbuild --with raspberrypi libcec.spec
|
||||
|
||||
%if "%{?_with_raspberrypi}"
|
||||
%define pckname %{name}-rpi
|
||||
%else
|
||||
%define pckname %name
|
||||
%endif
|
||||
|
||||
Name: libcec
|
||||
Version: 20130217git
|
||||
Release: 4mamba
|
||||
Summary: USB CEC Adaptor communication Library
|
||||
Group: System/Kernel and Hardware
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Davide Madrisan <davide.madrisan@gmail.com>
|
||||
URL: http://libcec.pulse-eight.com/
|
||||
## GITSOURCE git://github.com/Pulse-Eight/libcec.git
|
||||
Source: git://github.com/Pulse-Eight/libcec.git/master/libcec-%{version}.tar.bz2
|
||||
License: GPL
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: glibc-devel
|
||||
BuildRequires: libgcc
|
||||
BuildRequires: libstdc++6-devel
|
||||
BuildRequires: systemd-devel
|
||||
BuildRequires: udev-devel
|
||||
## AUTOBUILDREQ-END
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: libtool
|
||||
BuildRequires: liblockdev-devel
|
||||
%if "%{?_with_raspberrypi}"
|
||||
BuildRequires: libraspberrypi-devel
|
||||
Provides: libcec = %{?epoch:%epoch:}%{version}-%{release}
|
||||
%endif
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
|
||||
%description
|
||||
libCEC allows you in combination with the right hardware to control your device with your TV remote control.
|
||||
|
||||
%if "%{?_with_raspberrypi}"
|
||||
%package -n %{name}-rpi
|
||||
Group: System/Kernel and Hardware
|
||||
Summary: USB CEC Adaptor communication Library
|
||||
|
||||
%description -n %{name}-rpi
|
||||
libCEC allows you in combination with the right hardware to control your device with your TV remote control.
|
||||
%endif
|
||||
|
||||
%package -n %{pckname}-devel
|
||||
Group: Development/Libraries
|
||||
Summary: Development files for %{pckname}
|
||||
Requires: %{pckname} = %{?epoch:%epoch:}%{version}-%{release}
|
||||
%if "%{?_with_raspberrypi}"
|
||||
Provides: libcec-devel = %{?epoch:%epoch:}%{version}-%{release}
|
||||
%endif
|
||||
Requires: pkg-config
|
||||
|
||||
%description -n %{pckname}-devel
|
||||
This package contains libraries and header files for developing applications that use %{pckname}.
|
||||
|
||||
%ifnarch noarch
|
||||
%global __debug_package 1
|
||||
|
||||
%package -n %{pckname}-debug
|
||||
Summary: Debug information for package %{pckname}
|
||||
Group: Development/Debug
|
||||
AutoReqProv: 0
|
||||
|
||||
%description -n %{pckname}-debug
|
||||
This package provides debug information for package %{pckname}.
|
||||
Debug information is useful when developing applications that use this package or when debugging this package.
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
#-D -T
|
||||
|
||||
%build
|
||||
#: << CBLOCK
|
||||
./bootstrap
|
||||
%configure \
|
||||
%if "%{?_with_raspberrypi}"
|
||||
--with-rpi-include-path="/opt/vc/include" \
|
||||
--with-rpi-lib-path="/opt/vc/lib"
|
||||
%endif
|
||||
|
||||
%make
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
%makeinstall
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
|
||||
%post -n %{pckname} -p /sbin/ldconfig
|
||||
%postun -n %{pckname} -p /sbin/ldconfig
|
||||
|
||||
%files -n %{pckname}
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/cec-client
|
||||
%{_libdir}/libcec.so.*
|
||||
%doc AUTHORS COPYING
|
||||
|
||||
%files -n %{pckname}-devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/libcec
|
||||
%{_libdir}/libcec.a
|
||||
%{_libdir}/libcec.la
|
||||
%{_libdir}/libcec.so
|
||||
%{_libdir}/pkgconfig/libcec.pc
|
||||
%doc ChangeLog README
|
||||
|
||||
%ifnarch noarch
|
||||
%files -n %{pckname}-debug -f debugfiles.list
|
||||
%defattr(-,root,root)
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Sun Mar 03 2013 Davide Madrisan <davide.madrisan@gmail.com> 20130217git-4mamba
|
||||
- fix the summary of the devel package
|
||||
|
||||
* Mon Feb 25 2013 openmamba WebBuild System <webbuild@openmamba.org> 20130217git-3mamba
|
||||
- simplify the conditional statements by using a syntax that autospec can understand
|
||||
|
||||
* Sun Feb 24 2013 Davide Madrisan <davide.madrisan@gmail.com> 20130217git-2mamba
|
||||
- make raspberrypi a conditional build target
|
||||
|
||||
* Sun Feb 17 2013 Davide Madrisan <davide.madrisan@gmail.com> 20130217git-1mamba
|
||||
- package created by autospec
|
Loading…
Reference in New Issue
Block a user