summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowitz@users.sourceforge.net>2011-03-14 00:47:25 -0500
committerYaakov Selkowitz <yselkowitz@users.sourceforge.net>2011-03-14 00:47:25 -0500
commitaadda2ecc9035e57377dc4137edca54c537d9795 (patch)
treeffc62e7a871f6c9f8c06b3733761c705c4470ac5
downloadcygwin-crypt-aadda2ecc9035e57377dc4137edca54c537d9795.tar.gz
cygwin-crypt-aadda2ecc9035e57377dc4137edca54c537d9795.tar.xz
cygwin-crypt-aadda2ecc9035e57377dc4137edca54c537d9795.zip
cygwin-crypt 1.1-1
-rw-r--r--crypt-1.1-AR.patch18
-rw-r--r--cygwin-crypt.spec76
-rw-r--r--sources1
3 files changed, 95 insertions, 0 deletions
diff --git a/crypt-1.1-AR.patch b/crypt-1.1-AR.patch
new file mode 100644
index 0000000..3f93630
--- /dev/null
+++ b/crypt-1.1-AR.patch
@@ -0,0 +1,18 @@
+--- a/Makefile 2011-03-14 00:39:38.337013003 -0500
++++ b/Makefile 2011-03-14 00:39:52.603013003 -0500
+@@ -1,5 +1,6 @@
+
+ CC:=gcc
++AR:=ar
+ CFLAGS=-g -O2
+
+ prefix:=/usr
+@@ -23,7 +24,7 @@
+ $(CC) -static -o $@ crypt.o -L. -lcrypt
+
+ $(STATICLIB): encrypt.o
+- ar rv $@ encrypt.o
++ $(AR) rv $@ encrypt.o
+
+ $(SHAREDLIB): encrypt.o
+ $(CC) -shared -Wl,--out-implib=$(IMPORTLIB) -Wl,--export-all \
diff --git a/cygwin-crypt.spec b/cygwin-crypt.spec
new file mode 100644
index 0000000..d098b7f
--- /dev/null
+++ b/cygwin-crypt.spec
@@ -0,0 +1,76 @@
+%global __strip %{_cygwin_strip}
+%global __objdump %{_cygwin_objdump}
+%global _use_internal_dependency_generator 0
+%global __find_requires %{_cygwin_findrequires}
+%global __find_provides %{_cygwin_findprovides}
+
+Name: cygwin-crypt
+Version: 1.1
+Release: 1%{?dist}
+Summary: Cygwin crypt library
+
+License: GPLv2+
+Group: Development/Libraries
+URL: http://cygwin.com/
+Source0: ftp://sourceware.org/pub/cygwin/release/crypt/crypt-%{version}-1-src.tar.bz2
+Patch0: crypt-1.1-AR.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch: noarch
+
+BuildRequires: cygwin-filesystem
+BuildRequires: cygwin-gcc
+BuildRequires: cygwin-binutils
+
+
+%description
+Cygwin crypt library.
+
+%package static
+Summary: Static version of the Cygwin crypt library.
+Group: Development/Libraries
+Requires: cygwin-crypt = %{version}-%{release}
+
+%description static
+Static version of the Cygwin crypt library.
+
+
+%prep
+%setup -q -n crypt-%{version}-1
+%patch0 -p1
+
+%build
+make %{?_smp_flags} \
+ CC=%{_cygwin_cc} \
+ AR=%{_cygwin_ar} \
+ CFLAGS="%{_cygwin_cflags}"
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{_cygwin_makeinstall}
+
+rm -fr $RPM_BUILD_ROOT%{_cygwin_prefix}/share/doc/Cygwin
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc crypt.README
+%{_cygwin_bindir}/cygcrypt-0.dll
+%{_cygwin_bindir}/crypt.exe
+%{_cygwin_includedir}/crypt.h
+%{_cygwin_libdir}/libcrypt.dll.a
+
+
+%files static
+%defattr(-,root,root,-)
+%{_cygwin_libdir}/libcrypt.a
+
+
+%changelog
+* Sun Mar 13 2011 Yaakov Selkowitz <cygwin-ports-general@lists.sourceforge.net> - 1.1-1
+- Initial RPM release.
diff --git a/sources b/sources
new file mode 100644
index 0000000..685cb99
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+4c0fb83c8929fffd8b1bbfd1e5b2af6d crypt-1.1-1-src.tar.bz2