]> git.pld-linux.org Git - packages/dar.git/commitdiff
- static library moved to -libs-static subpackage auto/ac/dar-2_0_0-0_2
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 10 Nov 2003 02:16:20 +0000 (02:16 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added opt patch to use our optflags (except for alpha because of gcc ICE)
- BR: ac,am,lt
- release 0.2

Changed files:
    dar-opt.patch -> 1.1
    dar.spec -> 1.15

dar-opt.patch [new file with mode: 0644]
dar.spec

diff --git a/dar-opt.patch b/dar-opt.patch
new file mode 100644 (file)
index 0000000..7bf5755
--- /dev/null
@@ -0,0 +1,18 @@
+--- dar-2.0.0/configure.ac.orig        2003-11-03 15:21:02.000000000 +0100
++++ dar-2.0.0/configure.ac     2003-11-10 02:47:04.252495048 +0100
+@@ -145,13 +145,11 @@
+ AC_ARG_ENABLE( [debug],
+                 AC_HELP_STRING(--enable-debug, [build targets with debugging option and no optimization]),
+                 [
+-                        CXXFLAGS="-g -Wall"
+-                        CFLAGS="-g -Wall"
++                        CXXFLAGS="$CXXFLAGS -Wall"
++                        CFLAGS="$CFLAGS -Wall"
+                         debug_static="yes"
+                 ],
+                 [
+-                        CXXFLAGS=-O
+-                        CFLAGS=-O
+                         debug_static="no"
+                 ])
index cbdc11e1468175bd6028da295c130553229fd62f..e41939daf3c9c6bee171b024d3e0ac2d050a274d 100644 (file)
--- a/dar.spec
+++ b/dar.spec
@@ -1,20 +1,24 @@
 #
 # Conditional build:
 %bcond_without static  # build without dar_static
-
+#
 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:       2.0.0
-Release:       0.1
+Release:       0.2
 License:       GPL
 Group:         Applications
 Source0:       http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
 # Source0-md5: a2f8f8a10d49d06d848ec794d7db65e8
+Patch0:                %{name}-opt.patch
 URL:           http://dar.linux.free.fr/
 BuildRequires: attr-devel
+BuildRequires: autoconf
+BuildRequires: automake
 BuildRequires: bzip2-devel
 BuildRequires: libstdc++-devel
+BuildRequires: libtool
 BuildRequires: zlib-devel
 %if %{with static}
 BuildRequires: attr-static
@@ -25,6 +29,9 @@ BuildRequires:        zlib-static
 %endif
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+# workaround for gcc bug optimization/12965 (should be fixed in 3.3.3)
+%define                specflags_alpha         -O
+
 %description
 dar is a shell command, that makes backup of a directory tree and
 files.
@@ -170,19 +177,33 @@ Static version of dar backup tool.
 Statyczna wersja archiwizatora dar.
 
 %package devel
-Summary:        Header files and libraries to develop dar software
-Summary(pl):    Pliki nag³ówkowe i biblioteki
+Summary:        Header files to develop dar software
+Summary(pl):    Pliki nag³ówkowe biblioteki dar
 Group:          Development/Libraries
 Requires:       %{name} = %{version}
 
 %description devel
-Header files and libraries to develop software which operates on dar.
+Header files to develop software which operates on dar.
 
 %description devel -l pl
-Pliki nag³ówkowe i biblioteki potrzebne do rozwoju oprogramowania dar.
+Pliki nag³ówkowe potrzebne do rozwoju oprogramowania korzystaj±cego z
+dara.
+
+%package libs-static
+Summary:       Static version of dar library
+Summary(pl):   Statyczna wersja biblioteki dar
+Group:          Development/Libraries
+Requires:       %{name}-devel = %{version}
+
+%description libs-static
+Static version of dar library.
+
+%description libs-static -l pl
+Statyczna wersja biblioteki dar.
 
 %prep
 %setup -q
+%patch -p1
 
 %build
 %{__libtoolize}
@@ -200,7 +221,8 @@ Pliki nag
 rm -rf $RPM_BUILD_ROOT
 %{?with_static:install -d $RPM_BUILD_ROOT/bin}
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %{?with_static:mv -f $RPM_BUILD_ROOT{%{_bindir},/bin}/dar_static}
 
@@ -214,19 +236,22 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc BUGS README TODO doc
 %attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libexecdir}/libdar.so.*.*.*
+%attr(755,root,root) %{_libdir}/libdar.so.*.*.*
 %{_datadir}/%{name}
 %{_mandir}/man1/*
 
 %files devel
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libdar.so
+%{_libdir}/libdar.la
 %{_includedir}/dar
-%{?with_static:%{_libexecdir}/*.la}
-%attr(755,root,root) %{_libexecdir}/*.so
 
 %if %{with static}
 %files static
 %defattr(644,root,root,755)
 %attr(755,root,root) /bin/*
-%{_libexecdir}/*.a
 %endif
+
+%files libs-static
+%defattr(644,root,root,755)
+%{_libdir}/libdar.a
This page took 0.059939 seconds and 4 git commands to generate.