Merge pull request #30 from mer-hybris/executable_so

Executable .so, clean up spec
This commit is contained in:
Pekka Vuorela
2025-03-19 15:58:00 +02:00
committed by GitHub
2 changed files with 23 additions and 30 deletions

View File

@@ -32,7 +32,7 @@ all: debug release
VERSION_MAJOR = 1
VERSION_MINOR = 2
VERSION_RELEASE = 7
VERSION_RELEASE = 8
# Version for pkg-config
PCVERSION = $(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_RELEASE)
@@ -269,7 +269,7 @@ INSTALL_PKGCONFIG_DIR = $(DESTDIR)$(ABS_LIBDIR)/pkgconfig
install: $(INSTALL_LIB_DIR) $(INSTALL_PLUGIN_DIR)
$(INSTALL) -m 755 $(RELEASE_PLUGIN) $(INSTALL_PLUGIN_DIR)
$(INSTALL_FILES) $(RELEASE_LIB) $(INSTALL_LIB_DIR)
$(INSTALL) -m 755 $(RELEASE_LIB) $(INSTALL_LIB_DIR)
ln -sf $(LIB_SO) $(INSTALL_LIB_DIR)/$(LIB_SYMLINK2)
ln -sf $(LIB_SYMLINK2) $(INSTALL_LIB_DIR)/$(LIB_SYMLINK1)

View File

@@ -1,6 +1,6 @@
Name: ofono-ril-binder-plugin
Version: 1.2.7
Version: 1.2.8
Release: 1
Summary: Ofono RIL binder transport plugin
License: BSD
@@ -27,29 +27,6 @@ Requires: libgrilio >= %{libgrilio_version}
%description
This package contains ofono plugin which implements binder transport for RIL
%prep
%setup -q -n %{name}-%{version}
%build
make %{_smp_mflags} LIBDIR=%{_libdir} KEEP_SYMBOLS=1 release pkgconfig
%install
rm -rf %{buildroot}
make LIBDIR=%{_libdir} DESTDIR=%{buildroot} install-dev
mkdir -p %{buildroot}/%{plugin_dir}
%preun
%files
%dir %{plugin_dir}
%defattr(-,root,root,-)
%{plugin_dir}/rilbinderplugin.so
%if %{license_support} == 0
%license LICENSE
%endif
#############################################################################
%package -n libgrilio-binder
Summary: Binder based transport for libgrilio
Requires(post): /sbin/ldconfig
@@ -70,22 +47,38 @@ Requires: pkgconfig(libgbinder) >= %{libgbinder_version}
Requires: pkgconfig(libgbinder-radio) >= %{libgbinder_radio_version}
Requires: libgrilio-binder = %{version}
%description -n libgrilio-binder-devel
This package contains the development library for libgrilio-binder.
%prep
%setup -q -n %{name}-%{version}
%build
make %{_smp_mflags} LIBDIR=%{_libdir} KEEP_SYMBOLS=1 release pkgconfig
%install
make LIBDIR=%{_libdir} DESTDIR=%{buildroot} install-dev
mkdir -p %{buildroot}/%{plugin_dir}
%post -n libgrilio-binder -p /sbin/ldconfig
%postun -n libgrilio-binder -p /sbin/ldconfig
%description -n libgrilio-binder-devel
This package contains the development library for libgrilio-binder.
%files
%dir %{plugin_dir}
%{plugin_dir}/rilbinderplugin.so
%if %{license_support} == 0
%license LICENSE
%endif
%files -n libgrilio-binder
%defattr(-,root,root,-)
%{_libdir}/libgrilio-binder.so.*
%if %{license_support} == 0
%license LICENSE
%endif
%files -n libgrilio-binder-devel
%defattr(-,root,root,-)
%{_libdir}/pkgconfig/libgrilio-binder.pc
%{_libdir}/libgrilio-binder.so
%{_includedir}/grilio-binder/*.h