SPECS: libxcrypt.spec (NEW) - initial 3.0.2
arekm
arekm at pld-linux.org
Wed Nov 26 14:16:13 CET 2008
Author: arekm Date: Wed Nov 26 13:16:13 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- initial 3.0.2
---- Files affected:
SPECS:
libxcrypt.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/libxcrypt.spec
diff -u /dev/null SPECS/libxcrypt.spec:1.1
--- /dev/null Wed Nov 26 14:16:13 2008
+++ SPECS/libxcrypt.spec Wed Nov 26 14:16:08 2008
@@ -0,0 +1,87 @@
+# $Revision$, $Date$
+Summary: Crypt Library for DES, MD5, and Blowfish
+Name: libxcrypt
+Version: 3.0.2
+Release: 1
+License: LGPL v2+, Public Domain, Freeware
+Group: Libraries
+Source0: ftp://ftp.suse.com/pub/people/kukuk/libxcrypt/%{name}-%{version}.tar.bz2
+# Source0-md5: 56cf4285086f26649b8792b53fe8b00f
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Libxcrypt is a replacement for libcrypt, which comes with the GNU C
+Library. It supports DES crypt, MD5, and passwords with blowfish
+encryption.
+
+%package devel
+Summary: Header files and develpment documentation for libxcrypt
+Group: Development/Libraries
+Requires: %{name} = %{epoch}:%{version}-%{release}
+
+%description devel
+This package contains the header files to develop software using
+libxcrypt.
+
+%package static
+Summary: Static libxcrypt library
+Group: Development/Libraries
+Requires: %{name}-devel = %{epoch}:%{version}-%{release}
+
+%description static
+This package contains the static library used for development.
+
+%prep
+%setup -q
+
+%build
+%configure \
+ --libdir=/%{_lib}
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_libdir}
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+mv $RPM_BUILD_ROOT/%{_lib}/lib*.{l,}a $RPM_BUILD_ROOT%{_libdir}
+for lib in $RPM_BUILD_ROOT/%{_lib}/lib*.so.*; do
+ lib=$(echo $lib | sed -e "s#$RPM_BUILD_ROOT##g")
+ slib=$(basename $lib | sed -e 's#\.so\..*#.so#g')
+ ln -sf $lib $RPM_BUILD_ROOT%{_libdir}/$slib
+done
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog NEWS README*
+%attr(755,root,root) /%{_lib}/libxcrypt.so.*
+%dir /%{_lib}/xcrypt
+%attr(755,root,root) /%{_lib}/xcrypt/libxcrypt*.so*
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libxcrypt.so
+%{_includedir}/xcrypt.h
+%{_libdir}/*.la
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libxcrypt.a
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2008/11/26 13:16:08 arekm
+- initial 3.0.2
+
================================================================
More information about the pld-cvs-commit
mailing list