]> git.pld-linux.org Git - packages/libarchive.git/commitdiff
- new auto/ac/libarchive-1_02_027-1
authorAdam Gołębiowski <adamg@pld-linux.org>
Wed, 27 Jul 2005 08:36:03 +0000 (08:36 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    libarchive-shared.patch -> 1.1
    libarchive.spec -> 1.1

libarchive-shared.patch [new file with mode: 0644]
libarchive.spec [new file with mode: 0644]

diff --git a/libarchive-shared.patch b/libarchive-shared.patch
new file mode 100644 (file)
index 0000000..2ac588d
--- /dev/null
@@ -0,0 +1,31 @@
+diff -burN libarchive-1.02.027.orig/Makefile.am libarchive-1.02.027/Makefile.am
+--- libarchive-1.02.027.orig/Makefile.am       2005-06-10 17:02:54.000000000 +0200
++++ libarchive-1.02.027/Makefile.am    2005-07-27 09:30:16.398885984 +0200
+@@ -1,13 +1,13 @@
+ # $FreeBSD: src/lib/libarchive/Makefile.am,v 1.3 2005/01/25 06:07:28 kientzle Exp $
+-lib_LIBRARIES=        libarchive.a
++lib_LTLIBRARIES=      libarchive.la
+ include_HEADERS= archive_entry.h
+ # Note: archive.h is built from archive.h.in, so don't
+ # include archive.h in the distfile, but do install it.
+ nodist_include_HEADERS= archive.h
+-libarchive_a_SOURCES=                                 \
++libarchive_la_SOURCES=                                        \
+       archive_check_magic.c                           \
+       archive_entry.c                                 \
+       archive_entry.h                                 \
+diff -burN libarchive-1.02.027.orig/configure.ac libarchive-1.02.027/configure.ac
+--- libarchive-1.02.027.orig/configure.ac      2005-06-10 17:02:54.000000000 +0200
++++ libarchive-1.02.027/configure.ac   2005-07-27 09:30:16.398885984 +0200
+@@ -8,7 +8,7 @@
+ # Checks for programs.
+ AC_PROG_CC
+-AC_PROG_RANLIB
++AC_PROG_LIBTOOL
+ AC_CHECK_TOOL([STRIP],[strip])
+ # Checks for libraries.
diff --git a/libarchive.spec b/libarchive.spec
new file mode 100644 (file)
index 0000000..a7e538e
--- /dev/null
@@ -0,0 +1,96 @@
+Summary:       Library to create and read several different archive formats
+Summary(pl):   Biblioteka do tworzenia i odczytu ró¿nych formatów archiwów
+Name:          libarchive
+Version:       1.02.027
+Release:       1
+License:       BSD
+Group:         Libraries
+Source0:       http://people.freebsd.org/~kientzle/libarchive/src/%{name}-%{version}.tar.gz
+# Source0-md5: b59180f515666e65b4338f3b1ec1f53e
+Patch0:                %{name}-shared.patch
+URL:           http://people.freebsd.org/~kientzle/libarchive/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: bzip2-devel
+BuildRequires: libtool
+BuildRequires: zlib-devel
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Libarchive is a programming library that can create and read several
+different streaming archive formats, including most popular TAR
+variants and several CPIO formats. It can also write SHAR archives.
+
+%description -l pl
+Libarchive jest bibliotek± s³u¿ac± to tworzenia i odczytu wielu
+ró¿nych strumieniowych formatów archiwów, w³±czaj±c w to popularne
+odmiany TAR oraz wiele formatów CPIO. Biblioteka ta poptrafi tak¿e
+zapisywaæ archiwa SHAR.
+
+%package devel
+Summary:       Header files for libarchive library
+Summary(pl):   Pliki nag³ówkowe biblioteki libarchive
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description devel
+Header files for libarchive library.
+
+%description devel -l pl
+Pliki nag³ówkowe biblioteki libarchive.
+
+%package static
+Summary:       Static libarchive library
+Summary(pl):   Statyczna biblioteka libarchive
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static libarchive library.
+
+%description static -l pl
+Statyczna biblioteka libarchive.
+
+%prep
+%setup -q
+%patch -p1
+
+%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
+%{__make} \
+       LDFLAGS="%{rpmldflags} -lz -lbz2"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+cd $RPM_BUILD_ROOT%{_libdir}
+ln -sf libarchive.so.*.*.* $RPM_BUILD_ROOT%{_libdir}/libarchive.so
+
+%post   -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libarchive.so.*.*.*
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libarchive.so
+%{_libdir}/libarchive.la
+%{_includedir}/*.h
+%{_mandir}/man3/*
+%{_mandir}/man5/*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libarchive.a
+
+%clean
+rm -rf $RPM_BUILD_ROOT
This page took 0.137214 seconds and 4 git commands to generate.