]> git.pld-linux.org Git - packages/libxcrypt.git/commitdiff
don't customize _includedir when building as default crypt
authorJan Palus <atler@pld-linux.org>
Sun, 25 Oct 2020 00:20:14 +0000 (02:20 +0200)
committerJan Palus <atler@pld-linux.org>
Sun, 25 Oct 2020 00:20:14 +0000 (02:20 +0200)
libxcrypt.spec

index 1f46a1428a8eb74f34cb24b86bbd8bcd15ba5cb9..84055e3904ccd5f7871f3d41eed74476bf836b3b 100644 (file)
@@ -86,7 +86,7 @@ Ten pakiet zawiera statycznÄ… wersjÄ™ biblioteki libxcrypt.
 %{__autoheader}
 %{__automake}
 %configure \
-       --includedir=%{_includedir}/xcrypt \
+       %{!?with_default_crypt:--includedir=%{_includedir}/xcrypt} \
        --disable-werror \
        --disable-xcrypt-compat-files
 %{__make}
@@ -123,7 +123,11 @@ rm -rf $RPM_BUILD_ROOT
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/%{libname}.so
+%if %{with default_crypt}
+%{_includedir}/*.h
+%else
 %{_includedir}/xcrypt
+%endif
 %{_pkgconfigdir}/libcrypt.pc
 %{_pkgconfigdir}/libxcrypt.pc
 %{_mandir}/man3/crypt_checksalt.3*
This page took 0.159334 seconds and 4 git commands to generate.