Changes of Revision 2
[-] | Added | freetds.spec |
x 1
2 +Name: freetds 3 +Summary: Implementation of the TDS (Tabular DataStream) protocol 4 +Version: 0.64 5 +Release: 1 6 +Group: System Environment/Libraries 7 +License: LGPL 8 +Source: freetds-%{version}.tar.gz 9 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root 10 +BuildRequires: unixODBC-devel 11 +BuildRequires: doxygen, docbook-style-dsssl 12 +Patch0: freetds-0.64-makefile-doc.patch 13 + 14 + 15 +%description 16 +FreeTDS is a project to document and implement the TDS (Tabular 17 +DataStream) protocol. TDS is used by Sybase(TM) and Microsoft(TM) for 18 +client to database server communications. FreeTDS includes call 19 +level interfaces for DB-Lib, CT-Lib, and ODBC. 20 + 21 + 22 +%package devel 23 +Summary: Header files, libraries and development documentation for %{name} 24 +Group: Development/Libraries 25 +Requires: %{name} = %{version}-%{release} 26 + 27 +%description devel 28 +This package contains the header files and development documentation 29 +for %{name}. If you like to develop programs using %{name}, you will need 30 +to install %{name}-devel. 31 + 32 + 33 +%prep 34 +%setup -q 35 +%patch0 -p1 36 + 37 +# cleanup the initial source 38 +sed -i 's/\r//' doc/tds_ssl.html 39 +sed -i '1 s,#!.*/perl,#!%{__perl},' samples/*.pl doc/api_status.txt 40 + 41 +find doc/ samples/ COPYING* -type f -print0 | xargs -0 chmod -x 42 +find . -name "*.[ch]" -print0 | xargs -0 chmod -x 43 + 44 +# cause to rebuild docs 45 +rm doc/doc/freetds-%{version}/reference/index.html 46 +rm doc/doc/freetds-%{version}/userguide/index.htm 47 + 48 + 49 +%build 50 +%configure \ 51 + --disable-dependency-tracking \ 52 + %{!?_with_static: --disable-static} \ 53 + --with-tdsver="4.2" \ 54 + --with-unixodbc="%{_prefix}" \ 55 + --enable-msdblib \ 56 + --enable-sybase-compat 57 + 58 +# avoid any rpath 59 +sed -i -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \ 60 + -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool 61 + 62 +make %{?_smp_mflags} DOCBOOK_DSL="`rpm -ql docbook-style-dsssl | fgrep html/docbook.dsl`" 63 + 64 +chmod -x samples/*.template 65 + 66 + 67 +%install 68 +rm -rf $RPM_BUILD_ROOT 69 + 70 +make install DESTDIR=$RPM_BUILD_ROOT 71 + 72 +rm -f $RPM_BUILD_ROOT%{_libdir}/*.la 73 + 74 +rm -f samples/Makefile* samples/*.in samples/README 75 + 76 + 77 +%post -p /sbin/ldconfig 78 + 79 +%postun -p /sbin/ldconfig 80 + 81 + 82 +%clean 83 +rm -rf $RPM_BUILD_ROOT 84 + 85 + 86 +%files 87 +%defattr(-, root, root, -) 88 +%{_bindir}/* 89 +%{_libdir}/*.so.* 90 +%config(noreplace) %{_sysconfdir}/*.conf 91 +%doc AUTHORS BUGS COPYING* NEWS README TODO 92 +%doc doc/*.html doc/doc/freetds-%{version}/userguide 93 +%{_mandir}/*/* 94 + 95 + 96 +%files devel 97 +%defattr (-, root, root) 98 +%doc samples doc/doc/freetds-%{version}/reference 99 +%{?_with_static: %{_libdir}/*.a} 100 +%{_libdir}/*.so 101 +%{_includedir}/* 102 + 103 + 104 +%changelog 105 +* Fri Jun 15 2007 Dmitry Butskoy <Dmitry@Butskoy.name> - 0.64-6 106 +- bump release to provide update path over Livna 107 + 108 +* Wed Jun 13 2007 Dmitry Butskoy <Dmitry@Butskoy.name> - 0.64-5 109 +- spec file cleanups 110 +- allowed for Fedora (no patent issues exist), clarification by 111 + James K. Lowden <jklowden [AT] freetds.org> 112 +- approved for Fedora (review by Hans de Goede <j.w.r.degoede@hhs.nl>) 113 + 114 +* Wed Aug 2 2006 Dmitry Butskoy <Dmitry@Butskoy.name> - 0.64-4 115 +- approved for Livna (review by Hans de Goede <j.w.r.degoede@hhs.nl>) 116 + 117 +* Tue Aug 1 2006 Dmitry Butskoy <Dmitry@Butskoy.name> - 0.64-4 118 +- add patch to fix sed scripts in the doc/ Makefile 119 +- avoid using rpath in binaries 120 +- cleanup in samples/ dir 121 + 122 +* Thu Jul 27 2006 Dmitry Butskoy <Dmitry@Butskoy.name> - 0.64-3 123 +- rebuild userguide too. 124 +- move reference docs to -devel 125 + 126 +* Mon Jul 24 2006 Dmitry Butskoy <Dmitry@Butskoy.name> - 0.64-2 127 +- Properly clear extra executable bit in source 128 +- Regenerate docs using doxygen 129 + 130 +* Thu Jul 20 2006 Dmitry Butskoy <Dmitry@Butskoy.name> - 0.64-1 131 +- Upgrade to 0.64 132 +- Some spec file and distro cleanups 133 + 134 +* Tue Sep 20 2005 V.C.G.Yeah <VCGYeah@iname.com> - 0.63-1 135 +- Upgrade to 0.63 136 +- spec file cleanups 137 +- build static libs conditional 138 + 139 +* Thu Sep 2 2004 V.C.G.Yeah <VCGYeah@iname.com> - 0.62.4-1Y 140 +- Updated to release 0.62.4. 141 +- Leave includes in system default include dir (needed for php-mssql build) 142 + 143 +* Mon May 17 2004 Dag Wieers <dag@wieers.com> - 0.62.3-1 144 +- Updated to release 0.62.3. 145 + 146 +* Wed Feb 04 2004 Dag Wieers <dag@wieers.com> - 0.61.2-0 147 +- Added --enable-msdblib configure option. (Dean Mumby) 148 +- Updated to release 0.61.2. 149 + 150 +* Fri Jun 13 2003 Dag Wieers <dag@wieers.com> - 0.61-0 151 +- Initial package. (using DAR) 152 |
||
[+] | Added | freetds-0.64-makefile-doc.patch ^ |
@@ -0,0 +1,104 @@ +diff -Nrbu freetds-0.64/doc/Makefile.am freetds-0.64-OK/doc/Makefile.am +--- freetds-0.64/doc/Makefile.am 2006-02-25 00:14:19.000000000 +0300 ++++ freetds-0.64-OK/doc/Makefile.am 2006-08-01 16:31:51.000000000 +0400 +@@ -193,10 +193,10 @@ + </row></thead> \ + <tbody>' \ + >> .dblib.api +- grep '^dblib' $(srcdir)/api_status.txt | sed -e' s!^dblib[ ]!<row><entry>!; \ +- s![ ][ ]*!</> <entry>!g; \ +- s!$$!</></row>!; \ +- ' >> .dblib.api ++ grep '^dblib' $(srcdir)/api_status.txt | \ ++ sed -e 's!^dblib[ ]!<row><entry>!' \ ++ -e 's![ ][ ]*!</> <entry>!g' \ ++ -e 's!$$!</></row>!' >> .dblib.api + echo '</tbody></tgroup></table>' >> .dblib.api + mv .dblib.api $@ + +@@ -212,10 +212,11 @@ + </row></thead> \ + <tbody>' \ + >> .ctlib.api +- grep '^ctlib' $(srcdir)/api_status.txt | sed -e' s!^ctlib[ ]!<row><entry>!; \ +- s![ ]!</> <entry>!g; \ +- s!$$!</></row>!; \ +- ' >> .ctlib.api ++ grep '^ctlib' $(srcdir)/api_status.txt | \ ++ sed -e 's!^ctlib[ ]!<row><entry>!' \ ++ -e 's![ ]!</> <entry>!g' \ ++ -e 's!$$!</></row>!' \ ++ >> .ctlib.api + echo '</tbody></tgroup></table>' \ + >> .ctlib.api + mv .ctlib.api $@ +@@ -236,11 +237,12 @@ + # The mean RE below (with "ulink" in it) forms a URL to Microsoft's reference page + # for the function. It assumes a word starting with "SQL" is an ODBC function. + # Let's hope they don't change their site too often. +- grep '^odbc' $(srcdir)/api_status.txt | sed -e' s!^odbc[ ]!<row><entry>!; \ +- s![ ][ ]*!</> <entry>!g; \ +- s!\(SQL[[:alpha:]]*\)!<ulink url="$(MSDN_ODBC)\1.asp">\1</ulink>!g; \ +- s!$$!</></row>!; \ +- ' >> .odbc.api ++ grep '^odbc' $(srcdir)/api_status.txt | \ ++ sed -e 's!^odbc[ ]!<row><entry>!' \ ++ -e 's![ ][ ]*!</> <entry>!g' \ ++ -e 's!\(SQL[[:alpha:]]*\)!<ulink url="$(MSDN_ODBC)\1.asp">\1</ulink>!g' \ ++ -e 's!$$!</></row>!' \ ++ >> .odbc.api + echo '</tbody></tgroup></table>' \ + >> .odbc.api + mv .odbc.api $@ +diff -Nrbu freetds-0.64/doc/Makefile.in freetds-0.64-OK/doc/Makefile.in +--- freetds-0.64/doc/Makefile.in 2006-07-01 19:10:33.000000000 +0400 ++++ freetds-0.64-OK/doc/Makefile.in 2006-08-01 16:35:04.000000000 +0400 +@@ -607,10 +607,10 @@ + </row></thead> \ + <tbody>' \ + >> .dblib.api +- grep '^dblib' $(srcdir)/api_status.txt | sed -e' s!^dblib[ ]!<row><entry>!; \ +- s![ ][ ]*!</> <entry>!g; \ +- s!$$!</></row>!; \ +- ' >> .dblib.api ++ grep '^dblib' $(srcdir)/api_status.txt | \ ++ sed -e 's!^dblib[ ]!<row><entry>!' \ ++ -e 's![ ][ ]*!</> <entry>!g' \ ++ -e 's!$$!</></row>!' >> .dblib.api + echo '</tbody></tgroup></table>' >> .dblib.api + mv .dblib.api $@ + +@@ -626,10 +626,11 @@ + </row></thead> \ + <tbody>' \ + >> .ctlib.api +- grep '^ctlib' $(srcdir)/api_status.txt | sed -e' s!^ctlib[ ]!<row><entry>!; \ +- s![ ]!</> <entry>!g; \ +- s!$$!</></row>!; \ +- ' >> .ctlib.api ++ grep '^ctlib' $(srcdir)/api_status.txt | \ ++ sed -e 's!^ctlib[ ]!<row><entry>!' \ ++ -e 's![ ]!</> <entry>!g' \ ++ -e 's!$$!</></row>!' \ ++ >> .ctlib.api + echo '</tbody></tgroup></table>' \ + >> .ctlib.api + mv .ctlib.api $@ +@@ -648,11 +649,12 @@ + # The mean RE below (with "ulink" in it) forms a URL to Microsoft's reference page + # for the function. It assumes a word starting with "SQL" is an ODBC function. + # Let's hope they don't change their site too often. +- grep '^odbc' $(srcdir)/api_status.txt | sed -e' s!^odbc[ ]!<row><entry>!; \ +- s![ ][ ]*!</> <entry>!g; \ +- s!\(SQL[[:alpha:]]*\)!<ulink url="$(MSDN_ODBC)\1.asp">\1</ulink>!g; \ +- s!$$!</></row>!; \ +- ' >> .odbc.api ++ grep '^odbc' $(srcdir)/api_status.txt | \ ++ sed -e 's!^odbc[ ]!<row><entry>!' \ ++ -e 's![ ][ ]*!</> <entry>!g' \ ++ -e 's!\(SQL[[:alpha:]]*\)!<ulink url="$(MSDN_ODBC)\1.asp">\1</ulink>!g' \ ++ -e 's!$$!</></row>!' \ ++ >> .odbc.api + echo '</tbody></tgroup></table>' \ + >> .odbc.api + mv .odbc.api $@ | ||
[+] | Deleted | _aggregate ^ |
@@ -1,5 +0,0 @@ -<aggregatelist> - <aggregate project="home:jg:devel"> - <package>freetds</package> - </aggregate> -</aggregatelist> | ||
Added | freetds-0.64.tar.gz ^ |