Search
SailfishOS Open Build Service
>
Projects
>
home:slava
:
test
>
libmc
> _service:tar_git:libmc.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File _service:tar_git:libmc.spec of Package libmc
Name: libmc Version: 1.0.5 Release: 0 Summary: Library for parsing mobile codes License: BSD URL: https://github.com/monich/libmc Source: %{name}-%{version}.tar.bz2 BuildRequires: pkgconfig BuildRequires: pkgconfig(glib-2.0) # license macro requires rpm >= 4.11 BuildRequires: pkgconfig(rpm) %define license_support %(pkg-config --exists 'rpm >= 4.11'; echo $?) Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig %description Provides library for parsing mobile codes e.g. MECARD %package devel Summary: Development library for %{name} Requires: %{name} = %{version} %description devel This package contains the development library for %{name}. %prep %setup -q %build make %{_smp_mflags} LIBDIR=%{_libdir} KEEP_SYMBOLS=1 release pkgconfig %install make LIBDIR=%{_libdir} DESTDIR=%{buildroot} install-dev %check make test %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %{_libdir}/%{name}.so.* %if %{license_support} == 0 %license LICENSE %endif %files devel %defattr(-,root,root,-) %dir %{_includedir}/mc %{_libdir}/pkgconfig/*.pc %{_libdir}/%{name}.so %{_includedir}/mc/*.h