Skip to content

Commit

Permalink
[aarch64] Use macros, not hardcoded paths. Contributes to JB#49681
Browse files Browse the repository at this point in the history
  • Loading branch information
xfade authored and monich committed May 27, 2020
1 parent 7eeb322 commit c9d201f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion core/Makefile
Expand Up @@ -195,7 +195,7 @@ INSTALL = install
INSTALL_DIRS = $(INSTALL) -d

INSTALL_INCLUDE_DIR = $(DESTDIR)/usr/include/nfcd
INSTALL_PKGCONFIG_DIR = $(DESTDIR)/usr/lib/pkgconfig
INSTALL_PKGCONFIG_DIR = $(DESTDIR)$(LIBDIR)/pkgconfig

install: $(INSTALL_INCLUDE_DIR) $(INSTALL_PKGCONFIG_DIR) $(PKGCONFIG)
$(INSTALL) -m 644 $(INCLUDE_DIR)/*.h $(INSTALL_INCLUDE_DIR)
Expand Down
9 changes: 4 additions & 5 deletions rpm/nfcd.spec
Expand Up @@ -2,7 +2,6 @@ Name: nfcd
Version: 1.0.31
Release: 0
Summary: NFC daemon
Group: Development/Libraries
License: BSD
URL: https://git.sailfishos.org/mer-core/nfcd
Source: %{name}-%{version}.tar.bz2
Expand Down Expand Up @@ -51,11 +50,11 @@ This package contains command line NFC tools.
make KEEP_SYMBOLS=1 release

%install
%define target_wants_dir %{_lib}/systemd/system/network.target.wants
%define target_wants_dir %{_unitdir}/network.target.wants
%define settings_dir %{_sharedstatedir}/nfcd/
%define settings_file %{settings_dir}/settings
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
make install DESTDIR=%{buildroot} LIBDIR=%{_libdir}
install -d -m 0700 %{buildroot}/%{settings_dir}
mkdir -p %{buildroot}/%{target_wants_dir}
ln -s ../nfcd.service %{buildroot}/%{target_wants_dir}/nfcd.service
Expand All @@ -82,8 +81,8 @@ systemctl daemon-reload ||:
%dir %attr(700,nfc,nfc) %{settings_dir}
%{_sbindir}/*
%{_sysconfdir}/dbus-1/system.d/*.conf
/%{target_wants_dir}/nfcd.service
/%{_lib}/systemd/system/nfcd.service
%{target_wants_dir}/nfcd.service
%{_unitdir}/nfcd.service

%files tools
%{_bindir}/*
Expand Down

0 comments on commit c9d201f

Please sign in to comment.