diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-01-08 13:42:18 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-01-08 13:42:18 +0000 |
commit | 08cfdf909e5b3fd3b8016b96b2fd7a30c217bc70 (patch) | |
tree | 44472519aaa8476ec0e5fbfb20189dd5763c1680 /packages/Linux/RPM | |
parent | 434ce4801614cfa80a10fea6f7449f72e5538448 (diff) |
use .spec.in files instead of plain .spec files
Diffstat (limited to 'packages/Linux/RPM')
-rw-r--r-- | packages/Linux/RPM/curl-ssl.spec | 98 | ||||
-rw-r--r-- | packages/Linux/RPM/curl-ssl.spec.in | 78 | ||||
-rw-r--r-- | packages/Linux/RPM/curl.spec | 96 | ||||
-rw-r--r-- | packages/Linux/RPM/curl.spec.in | 84 |
4 files changed, 162 insertions, 194 deletions
diff --git a/packages/Linux/RPM/curl-ssl.spec b/packages/Linux/RPM/curl-ssl.spec deleted file mode 100644 index cb393f82b..000000000 --- a/packages/Linux/RPM/curl-ssl.spec +++ /dev/null @@ -1,98 +0,0 @@ -%define ver 7.4.2 -%define rel 1 -%define prefix /usr - -Summary: get a file from a FTP, GOPHER or HTTP server. -Name: curl-ssl -Version: %ver -Release: %rel -Copyright: MPL -Group: Utilities/Console -Source: curl-%{version}.tar.gz -URL: http://curl.haxx.se -BuildPrereq: openssl -BuildRoot: /tmp/%{name}-%{version}-%{rel}-root -Packager: Fill In As You Wish -Docdir: %{prefix}/doc - -%description -curl-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. - -curl-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@haxx.se> - - -%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} \ - --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 curl-7.4.2 ${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.libcurl -%doc RESOURCES -%doc TODO -%doc %{name}-ssl.spec.in -%doc %{name}.spec.in - diff --git a/packages/Linux/RPM/curl-ssl.spec.in b/packages/Linux/RPM/curl-ssl.spec.in new file mode 100644 index 000000000..2cc5ee85a --- /dev/null +++ b/packages/Linux/RPM/curl-ssl.spec.in @@ -0,0 +1,78 @@ +%define name curl-ssl +%define tarball curl +%define version @VERSION@ +%define release 1 +%define prefix /usr + +%define builddir $RPM_BUILD_DIR/%{tarball}-%{version} + +Summary: get a file from a FTP, GOPHER or HTTP server. +Name: %{name} +Version: %{version} +Release: %{release} +Copyright: MPL +Vendor: Daniel Stenberg <Daniel.Stenberg@haxx.se> +Packager: Loic Dachary <loic@senga.org> +Group: Utilities/Console +Source: %{tarball}-%{version}.tar.gz +URL: http://curl.haxx.se/ +BuildRoot: /tmp/%{tarball}-%{version}-root +Requires: openssl >= 0.9.5 + +%description +curl 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. + +curl offers a busload of useful tricks like proxy support, user +authentication, ftp upload, HTTP post, file transfer resume and more. + +%package devel +Summary: The includes, libs, and man pages to develop with libcurl +Group: Development/Libraries +Requires: openssl-devel >= 0.9.5 + +%description devel +libcurl is the core engine of curl; this packages contains all the libs, +headers, and manual pages to develop applications using libcurl. + +%prep +rm -rf %{builddir} + +%setup -n %{tarball}-%{version} + +%build +%configure --prefix=%{prefix} --with-ssl +make + +%install +rm -rf $RPM_BUILD_ROOT +make DESTDIR=$RPM_BUILD_ROOT install-strip + +%clean +rm -rf $RPM_BUILD_ROOT +rm -rf %{builddir} + +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + +%files +%defattr(-,root,root) +%attr(0755,root,root) %{_bindir}/curl +%attr(0644,root,root) %{_mandir}/man1/* +%{_libdir}/libcurl.so* +%doc CHANGES FILES LEGAL MITX.txt MPL-1.1.txt README docs/BUGS +%doc docs/CONTRIBUTE docs/FAQ docs/FEATURES docs/INSTALL docs/INTERNALS +%doc docs/LIBCURL docs/MANUAL docs/README* docs/RESOURCES docs/TODO +%doc docs/TheArtOfHttpScripting + +%files devel +%defattr(-,root,root) +%attr(0644,root,root) %{_mandir}/man3/* +%attr(0644,root,root) %{_includedir}/curl/* +%{_libdir}/libcurl.a +%{_libdir}/libcurl.la +%doc docs/examples/* diff --git a/packages/Linux/RPM/curl.spec b/packages/Linux/RPM/curl.spec deleted file mode 100644 index 133a45c91..000000000 --- a/packages/Linux/RPM/curl.spec +++ /dev/null @@ -1,96 +0,0 @@ -%define ver 7.4.2 -%define rel 1 -%define prefix /usr - -Summary: get a file from a FTP, GOPHER or HTTP server. -Name: curl -Version: %ver -Release: %rel -Copyright: MPL -Group: Utilities/Console -Source: %{name}-%{version}.tar.gz -URL: http://curl.haxx.se -BuildRoot: /tmp/%{name}-%{version}-%{rel}-root -Packager: Fill In As You Wish -Docdir: %{prefix}/doc - -%description -curl 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. - -curl 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@haxx.se> - - -%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.libcurl -%doc RESOURCES -%doc TODO -%doc %{name}-ssl.spec.in -%doc %{name}.spec.in - diff --git a/packages/Linux/RPM/curl.spec.in b/packages/Linux/RPM/curl.spec.in new file mode 100644 index 000000000..db96b2b57 --- /dev/null +++ b/packages/Linux/RPM/curl.spec.in @@ -0,0 +1,84 @@ +%define name curl +%define version @VERSION@ +%define release 1 +%define prefix /usr + +%define builddir $RPM_BUILD_DIR/%{name}-%{version} + +Summary: get a file from a FTP, GOPHER or HTTP server. +Name: %{name} +Version: %{version} +Release: %{release} +Copyright: MPL +Vendor: Daniel Stenberg <Daniel.Stenberg@haxx.se> +Packager: Loic Dachary <loic@senga.org> +Group: Utilities/Console +Source: %{name}-%{version}.tar.gz +URL: http://curl.haxx.se/ +BuildRoot: /tmp/%{name}-%{version}-root + +%description +curl 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. + +curl 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. + +%package devel +Summary: The includes, libs, and man pages to develop with libcurl +Group: Development/Libraries + +%description devel +libcurl is the core engine of curl; this packages contains all the libs, +headers, and manual pages to develop applications using libcurl. + +%prep +rm -rf %{builddir} + +%setup + +%build +%configure --without-ssl --prefix=%{prefix} +make + +%install +rm -rf $RPM_BUILD_ROOT +make DESTDIR=$RPM_BUILD_ROOT install-strip + +%clean +rm -rf $RPM_BUILD_ROOT +rm -rf %{builddir} + +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + +%files +%defattr(-,root,root) +%attr(0755,root,root) %{_bindir}/curl +%attr(0644,root,root) %{_mandir}/man1/* +%{prefix}/lib/libcurl.so* +%doc CHANGES FILES LEGAL MITX.txt MPL-1.1.txt README docs/BUGS +%doc docs/CONTRIBUTE docs/FAQ docs/FEATURES docs/INSTALL docs/INTERNALS +%doc docs/LIBCURL docs/MANUAL docs/README* docs/RESOURCES docs/TODO +%doc docs/TheArtOfHttpScripting + +%files devel +%defattr(-,root,root) +%attr(0644,root,root) %{_mandir}/man3/* +%attr(0644,root,root) %{_includedir}/curl/* +%{prefix}/lib/libcurl.a +%{prefix}/lib/libcurl.la +%doc docs/examples/* + +%changelog +* Sun Jan 7 2001 Loic Dachary <loic@senga.org> + + - use _mandir instead of prefix to locate man pages because + _mandir is not always prefix/man/man?. + |