Search
SailfishOS Open Build Service
>
Projects
>
home:cxl000
:
branches:nemo:devel:hw:x86:x86-common
>
boardname
> boardname.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File boardname.spec of Package boardname
# # Do NOT Edit the Auto-generated Part! # Generated by: spectacle version 0.25 # Name: boardname # >> macros # << macros Summary: Board vendor/name/version detection tool Version: 0.7 Release: 2 Group: System/Base License: GPLv2 URL: http://meego.gitorious.org/meego-os-base/boardname Source0: boardname-%{version}.tar.gz Source1: boardname.service Source100: boardname.yaml Patch0: 0001-fix-boardname-falsely-printing-error-message.patch Patch1: 0002-boardname-add-x86_64.patch Requires: coreutils Requires: grep Requires: systemd >= 185 Requires(preun): systemd Requires(post): /sbin/ldconfig Requires(post): systemd Requires(postun): /sbin/ldconfig Requires(postun): systemd %description This tool allows multiple applications to determine board/skew specific hardware in a consisten manner. Applications that need some form of method of determining a custom workaround within a set of hardware are required to parse the output of boardname to determine appropriate workaround. Vendors can force boardname override values at shipping. %package devel Summary: Headers for boardname Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel Development files for boardname %prep %setup -q -n %{name}-%{version} # 0001-fix-boardname-falsely-printing-error-message.patch %patch0 -p1 # 0002-boardname-add-x86_64.patch %patch1 -p1 # >> setup # << setup %build # >> build pre # << build pre make %{?jobs:-j%jobs} # >> build post # << build post %install rm -rf %{buildroot} # >> install pre # << install pre %make_install # >> install post mkdir -p %{buildroot}/%{_lib}/systemd/system/sysinit.target.wants install -D -m 0644 %SOURCE1 ${RPM_BUILD_ROOT}/%{_lib}/systemd/system/ mkdir -p %{buildroot}/%{_lib}/systemd/system/sysinit.target.wants/ ln -s ../boardname.service %{buildroot}/%{_lib}/systemd/system/sysinit.target.wants/boardname.service chmod +x %{buildroot}/%{_libdir}/*.so* # << install post %preun if [ "$1" -eq 0 ]; then systemctl stop boardname.service fi %post /sbin/ldconfig systemctl daemon-reload systemctl reload-or-try-restart boardname.service %postun /sbin/ldconfig systemctl daemon-reload %files %defattr(-,root,root,-) /sbin/boardname %{_libdir}/libboardname.so.1 /%{_lib}/systemd/system/boardname.service /%{_lib}/systemd/system/sysinit.target.wants/boardname.service # >> files # << files %files devel %defattr(-,root,root,-) %{_includedir}/boardname/boardname.h %{_libdir}/libboardname.so %{_libdir}/pkgconfig/boardname.pc # >> files devel # << files devel