Skip to content

Commit c928765

Browse files
fireworkmarkscannium
authored andcommitted
Fix the problem that rpm cannot join the plugins .so (#265)
1 parent 8f5454e commit c928765

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

package/yig.spec

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ URL: http://github.com/journeymidnight/yig
1313
Source0: %{name}-%{version}-%{rel}.tar.gz
1414
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
1515
#BuildRequires:
16-
Requires: libradosstriper1
17-
Requires: librados2
18-
Requires: librdkafka1
16+
Requires: libradosstriper1,librados2,librdkafka1
1917

2018
%description
2119

@@ -45,6 +43,8 @@ install -D -m 644 package/yig.service %{buildroot}/usr/lib/systemd/system/yig.
4543
install -D -m 644 package/yig_delete.service %{buildroot}/usr/lib/systemd/system/yig_delete.service
4644
install -D -m 644 package/yig_lc.service %{buildroot}/usr/lib/systemd/system/yig_lc.service
4745
install -D -m 644 conf/yig.toml %{buildroot}%{_sysconfdir}/yig/yig.toml
46+
install -d %{buildroot}%{_sysconfdir}/yig/plugins/
47+
cp -a plugins/*.so %{buildroot}%{_sysconfdir}/yig/plugins/
4848
install -d %{buildroot}/var/log/yig/
4949

5050
#ceph confs ?
@@ -63,6 +63,7 @@ rm -rf %{buildroot}
6363
%files
6464
%defattr(-,root,root,-)
6565
%config(noreplace) /etc/yig/yig.toml
66+
/etc/yig/plugins/*
6667
/usr/bin/yig_admin
6768
/usr/bin/yig
6869
/usr/bin/yig_delete_daemon

0 commit comments

Comments
 (0)