]> git.pld-linux.org Git - packages/dar.git/commitdiff
- force define %%with_static_libs when dar_static is build auto/th/dar-2_3_1-1
authortwittner <twittner@pld-linux.org>
Sat, 4 Nov 2006 17:55:40 +0000 (17:55 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  (building dar_static needs dat static libraries)
- %%define _noaotureq bash perl - bash and perl is esed only
  by sample scripts
- added %%__gettextize - i hope that it will fix error:
  make[1]: Entering directory `/home/users/builder/rpm/BUILD/dar-2.3.1/po'
  /bin/sh @MKINSTALLDIRS@ /tmp/B.fe51ec/dar-2.3.1-root-builder/usr/share

Changed files:
    dar.spec -> 1.58

dar.spec

index 1bf9bd9406c82f1c190e69387b25c2df3087ed1a..2f444b54a4e06e0ce3e7d71b53bb87c9f0733da0 100644 (file)
--- a/dar.spec
+++ b/dar.spec
@@ -4,6 +4,10 @@
 %bcond_without static          # build without dar_static
 %bcond_without static_libs     # don't build static libraries
 #
+%if %{with static}
+%define with_static_libs 1
+%endif
+#
 Summary:       dar makes backup of a directory tree and files
 Summary(pl):   dar - narzêdzie do tworzenia kopii zapasowych drzew katalogów i plików
 Name:          dar
@@ -41,6 +45,9 @@ BuildRequires:        zlib-static
 Requires:      %{name}-libs = %{version}-%{release}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+# don't generate `Requires' for sample scripts
+%define        _noautoreq bash perl
+
 %description
 dar is a shell command, that makes backup of a directory tree and
 files.
@@ -243,6 +250,7 @@ Dokumentacja dla dar.
 %patch0 -p1
 
 %build
+%{__gettextize}
 %{__libtoolize}
 %{__aclocal}
 %{__autoconf}
@@ -251,7 +259,7 @@ Dokumentacja dla dar.
 %configure \
        %{!?with_ea:--disable-ea-support} \
        %{!?with_static:--disable-dar-static} \
-       %{!?with_static_libs:--disable-static} \
+       --enable-static=%{?with_static_libs:yes}%{!?with_static_libs:no} \
        --enable-mode=64 \
        --disable-upx
 %{__make}
This page took 0.06494 seconds and 4 git commands to generate.