diff --git a/enchant.spec b/enchant.spec index 376d9656bfdc27b3027767d2b3cd0d6a4acf1f25..356ac20fda38bb97f3a518909af4b2b6ffc86b75 100644 --- a/enchant.spec +++ b/enchant.spec @@ -1,6 +1,6 @@ Name: enchant Version: 1.6.1 -Release: 2 +Release: 3 Epoch: 1 Summary: Generic spell checking library @@ -47,12 +47,18 @@ Applications need libraries integrated by using libenchant with voikko. %autosetup -n %{name}-%{version} -p1 %build +# export CFLAGS="%{optflags} -fPIE -pie" + %configure --disable-ispell --disable-hspell --disable-zemberek --enable-myspell \ - --with-myspell-dir=/usr/share/myspell + --with-myspell-dir=/usr/share/myspell CFLAGS="-fPIE -pie" make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} +chrpath -d %{buildroot}%{_libdir}/%{name}/lib%{name}_myspell.so +chrpath -d %{buildroot}%{_bindir}/%{name}-lsmod +chrpath -d %{buildroot}%{_bindir}/%{name} + %delete_la %ldconfig_scriptlets @@ -83,6 +89,9 @@ make install DESTDIR=%{buildroot} %{_mandir}/man1/*.gz %changelog +* Wed Nov 02 2023 zhangxianting - 1:1.6.1-3 +- Enable fPIE and Remove rpath + * Sat Mar 21 2020 openEuler Buildteam - 1:1.6.1-2 - Type:NA - Id:NA