61 lines
1.3 KiB
RPMSpec
61 lines
1.3 KiB
RPMSpec
Name: libmce-glib
|
|
|
|
Version: 1.1.0
|
|
Release: 0
|
|
Summary: MCE client library
|
|
License: BSD
|
|
URL: https://github.com/sailfishos/libmce-glib
|
|
Source: %{name}-%{version}.tar.bz2
|
|
|
|
%define libglibutil_version 1.0.5
|
|
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
BuildRequires: pkgconfig(libglibutil) >= %{libglibutil_version}
|
|
BuildRequires: pkgconfig(mce) >= 1.24.0
|
|
|
|
# license macro requires rpm >= 4.11
|
|
BuildRequires: pkgconfig(rpm)
|
|
%define license_support %(pkg-config --exists 'rpm >= 4.11'; echo $?)
|
|
|
|
Requires: libglibutil >= %{libglibutil_version}
|
|
Requires(post): /sbin/ldconfig
|
|
Requires(postun): /sbin/ldconfig
|
|
|
|
%description
|
|
Provides glib-based MCE client API
|
|
|
|
%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
|
|
rm -rf %{buildroot}
|
|
make LIBDIR=%{_libdir} DESTDIR=%{buildroot} install-dev
|
|
|
|
%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,-)
|
|
%{_libdir}/pkgconfig/*.pc
|
|
%{_libdir}/%{name}.so
|
|
%{_includedir}/%{name}/*.h
|