aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-04-08 19:32:40 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-04-08 19:32:40 +0000
commitf9ec7d3a0f1a8c169018ae89b50781e36126950f (patch)
tree27aeba38fb16ea548c2ad43cc5f17187a9fd405a
parent75cd7f482d9cebe0169c8a8b82203d2d7cf65a9f (diff)
new files to generate .spec files automatically
-rw-r--r--curl-ssl.spec.in98
-rw-r--r--curl.spec.in96
2 files changed, 194 insertions, 0 deletions
diff --git a/curl-ssl.spec.in b/curl-ssl.spec.in
new file mode 100644
index 000000000..beac7576d
--- /dev/null
+++ b/curl-ssl.spec.in
@@ -0,0 +1,98 @@
+%define ver @VERSION@
+%define rel 1
+%define prefix /usr
+
+Summary: get a file from a FTP, GOPHER or HTTP server.
+Name: @PACKAGE@-ssl
+Version: %ver
+Release: %rel
+Copyright: MPL
+Group: Utilities/Console
+Source: @PACKAGE@-%{version}.tar.gz
+URL: http://@PACKAGE@.haxx.nu
+BuildPrereq: openssl
+BuildRoot: /tmp/%{name}-%{version}-%{rel}-root
+Packager: Fill In As You Wish
+Docdir: %{prefix}/doc
+
+%description
+@PACKAGE@-ssl is a client to get documents/files from servers, using
+any of the supported protocols. The command is designed to
+work without user interaction or any kind of interactivity.
+
+@PACKAGE@-ssl offers a busload of useful tricks like proxy support,
+user authentication, ftp upload, HTTP post, file transfer
+resume and more.
+
+Note: this version is compiled with SSL (https:) support.
+
+Authors:
+ Daniel Stenberg <Daniel.Stenberg@haxx.nu>
+
+
+%prep
+%setup -n @PACKAGE@-@VERSION@
+
+
+%build
+# Needed for snapshot releases.
+if [ ! -f configure ]; then
+ CONF="./autogen.sh"
+else
+ CONF="./configure"
+fi
+
+#
+# Configuring the package
+#
+CFLAGS="${RPM_OPT_FLAGS}" ${CONF} \
+ --prefix=%{prefix} \
+ --with-ssl
+
+
+[ "$SMP" != "" ] && JSMP = '"MAKE=make -k -j $SMP"'
+
+make ${JSMP} CFLAGS="-DUSE_SSLEAY -I/usr/include/openssl";
+
+
+%install
+[ -d ${RPM_BUILD_ROOT} ] && rm -rf ${RPM_BUILD_ROOT}
+
+make prefix=${RPM_BUILD_ROOT}%{prefix} install-strip
+
+#
+# Generating file lists and store them in file-lists
+# Starting with the directory listings
+#
+find ${RPM_BUILD_ROOT}%{prefix}/{bin,lib,man} -type d | sed "s#^${RPM_BUILD_ROOT}#\%attr (-\,root\,root) \%dir #" > file-lists
+
+#
+# Then, the file listings
+#
+echo "%defattr (-, root, root)" >> file-lists
+find ${RPM_BUILD_ROOT}%{prefix} -type f | sed -e "s#^${RPM_BUILD_ROOT}##g" >> file-lists
+
+
+%clean
+(cd ..; rm -rf @PACKAGE@-@VERSION@ ${RPM_BUILD_ROOT})
+
+
+%files -f file-lists
+%defattr (-, root, root)
+%doc BUGS
+%doc CHANGES
+%doc CONTRIBUTE
+%doc FAQ
+%doc FEATURES
+%doc FILES
+%doc INSTALL
+%doc LEGAL
+%doc MPL-1.0.txt
+%doc README
+%doc README.curl
+%doc README.lib@PACKAGE@
+%doc RESOURCES
+%doc TODO
+%doc %{name}-ssl.spec.in
+%doc %{name}.spec.in
+
diff --git a/curl.spec.in b/curl.spec.in
new file mode 100644
index 000000000..e1a3df2f5
--- /dev/null
+++ b/curl.spec.in
@@ -0,0 +1,96 @@
+%define ver @VERSION@
+%define rel 1
+%define prefix /usr
+
+Summary: get a file from a FTP, GOPHER or HTTP server.
+Name: @PACKAGE@
+Version: %ver
+Release: %rel
+Copyright: MPL
+Group: Utilities/Console
+Source: %{name}-%{version}.tar.gz
+URL: http://@PACKAGE@.haxx.nu
+BuildRoot: /tmp/%{name}-%{version}-%{rel}-root
+Packager: Fill In As You Wish
+Docdir: %{prefix}/doc
+
+%description
+@PACKAGE@ is a client to get documents/files from servers, using
+any of the supported protocols. The command is designed to
+work without user interaction or any kind of interactivity.
+
+@PACKAGE@ offers a busload of useful tricks like proxy support,
+user authentication, ftp upload, HTTP post, file transfer
+resume and more.
+
+Note: this version is compiled without SSL (https:) support.
+
+Authors:
+ Daniel Stenberg <Daniel.Stenberg@haxx.nu>
+
+
+%prep
+%setup -n %{name}-%{version}
+
+
+%build
+# Needed for snapshot releases.
+if [ ! -f configure ]; then
+ CONF="./autogen.sh"
+else
+ CONF="./configure"
+fi
+
+#
+# Configuring the package
+#
+CFLAGS="${RPM_OPT_FLAGS}" ${CONF} \
+ --prefix=%{prefix}
+
+
+[ "$SMP" != "" ] && JSMP = '"MAKE=make -k -j $SMP"'
+
+make ${JSMP};
+
+
+%install
+[ -d ${RPM_BUILD_ROOT} ] && rm -rf ${RPM_BUILD_ROOT}
+
+make prefix=${RPM_BUILD_ROOT}%{prefix} install-strip
+
+#
+# Generating file lists and store them in file-lists
+# Starting with the directory listings
+#
+find ${RPM_BUILD_ROOT}%{prefix}/{bin,lib,man} -type d | sed "s#^${RPM_BUILD_ROOT}#\%attr (-\,root\,root) \%dir #" > file-lists
+
+#
+# Then, the file listings
+#
+echo "%defattr (-, root, root)" >> file-lists
+find ${RPM_BUILD_ROOT}%{prefix} -type f | sed -e "s#^${RPM_BUILD_ROOT}##g" >> file-lists
+
+
+%clean
+(cd ..; rm -rf %{name}-%{version} ${RPM_BUILD_ROOT})
+
+
+%files -f file-lists
+%defattr (-, root, root)
+%doc BUGS
+%doc CHANGES
+%doc CONTRIBUTE
+%doc FAQ
+%doc FEATURES
+%doc FILES
+%doc INSTALL
+%doc LEGAL
+%doc MPL-1.0.txt
+%doc README
+%doc README.curl
+%doc README.lib@PACKAGE@
+%doc RESOURCES
+%doc TODO
+%doc %{name}-ssl.spec.in
+%doc %{name}.spec.in
+