]> git.pld-linux.org Git - packages/dar.git/commitdiff
- don't link statically
authorankry <ankry@pld-linux.org>
Sat, 5 Apr 2003 10:47:48 +0000 (10:47 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- install binaries in /usr/bin, not in /bin
- rel. 2

Changed files:
    dar.spec -> 1.4

dar.spec

index 2b46f2e3cf176950f711599211edb7d5712a7690..8050d4e00424fcc954c3adea8fc304898498c089 100644 (file)
--- a/dar.spec
+++ b/dar.spec
@@ -2,14 +2,12 @@ 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
 Version:       1.2.1
-Release:       1
+Release:       2
 License:       GPL
 Group:         Applications
 Source0:       http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+Patch0:                %{name}-nostatic_compilation.patch
 URL:           http://dar.linux.free.fr/
-BuildRequires: glibc-static
-BuildRequires: libstdc++-static
-BuildRequires: zlib-static
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -147,17 +145,18 @@ katalog
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
-%{__make}
+%{__make} BUILD_STATIC="no" OPTIMIZATION="%{rpmcflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{/bin,%{_mandir}/man1}
-install dar $RPM_BUILD_ROOT/bin
-install dar_xform $RPM_BUILD_ROOT/bin
-install dar_slave $RPM_BUILD_ROOT/bin
-install *.1 $RPM_BUILD_ROOT%{_mandir}/man1
+%{__make} install BUILD_STATIC="no" \
+       INSTALL=install \
+       INSTALL_ROOT_DIR=$RPM_BUILD_ROOT \
+       BIN_DIR=%{_bindir} \
+       MAN_DIR=%{_mandir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -165,5 +164,5 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc BUGS CHANGES NOTES README TODO TUTORIAL
-%attr(755,root,root) /bin/*
+%attr(755,root,root) %{_bindir}/*
 %attr(644,root,root) %{_mandir}/*
This page took 0.079985 seconds and 4 git commands to generate.