Index: trunk/tools/ts-specs/include/arch64.inc |
— | — | @@ -59,8 +59,8 @@ |
60 | 60 | %endif |
61 | 61 | |
62 | 62 | %ifarch i386 |
63 | | -%define suncc_optflags64 -i %_cc64_opt_level -xstrconst -xarch=generic64 -Kpic -xregs=no%%frameptr |
64 | | -%define suncc_cxx_optflags64 -i %_cxx64_opt_level -xarch=generic64 -Kpic -pentium -mr -norunpath -xregs=no%%frameptr |
| 63 | +%define suncc_optflags64 -i %_cc64_opt_level -xstrconst -m64 -Kpic -xregs=no%%frameptr |
| 64 | +%define suncc_cxx_optflags64 -i %_cxx64_opt_level -m64 -Kpic -pentium -mr -norunpath -xregs=no%%frameptr |
65 | 65 | %endif |
66 | 66 | |
67 | 67 | %if %cc_is_gcc |
Index: trunk/tools/ts-specs/include/base.inc |
— | — | @@ -11,6 +11,8 @@ |
12 | 12 | %define bld_arch "i386" |
13 | 13 | %endif |
14 | 14 | |
| 15 | +%define opt_arch64 0 |
| 16 | + |
15 | 17 | # use --without-gtk-doc to disable building gtk-docs (it takes quite |
16 | 18 | # a while to build them) |
17 | 19 | # default: build gtk-doc API docs |
Index: trunk/tools/ts-specs/TSsubversion.spec |
— | — | @@ -8,14 +8,15 @@ |
9 | 9 | Name: TSsubversion |
10 | 10 | License: Apache,LGPL,BSD |
11 | 11 | Group: system/dscm |
12 | | -Version: 1.4.6 |
| 12 | +Version: 1.5.5 |
13 | 13 | Release: 1 |
14 | 14 | Summary: Subversion SCM |
15 | 15 | Source: http://subversion.tigris.org/downloads/subversion-%{version}.tar.bz2 |
16 | | - |
| 16 | +Patch1: subversion-01-iconv.diff |
17 | 17 | URL: http://subversion.tigris.org/ |
18 | 18 | BuildRoot: %{_tmppath}/%{name}-%{version}-build |
19 | 19 | SUNW_BaseDir: %{_prefix} |
| 20 | + |
20 | 21 | Requires: SUNWcsl |
21 | 22 | Requires: SUNWcsr |
22 | 23 | Requires: TSgdbm |
— | — | @@ -24,12 +25,14 @@ |
25 | 26 | Requires: SUNWpostrun |
26 | 27 | Requires: SUNWopenssl-libraries |
27 | 28 | Requires: SUNWlexpt |
28 | | -Requires: TSneon |
| 29 | +Requires: TSserf |
| 30 | +Requires: TSlibiconv |
29 | 31 | BuildRequires: SUNWPython |
30 | 32 | BuildRequires: SUNWopenssl-include |
31 | 33 | BuildRequires: TSgdbm-devel |
32 | | -BuildRequires: TSneon-devel |
| 34 | +BuildRequires: TSserf-devel |
33 | 35 | BuildRequires: TSapache |
| 36 | +BuildRequires: TSlibiconv-devel |
34 | 37 | |
35 | 38 | %description |
36 | 39 | Subversion source code management system. |
— | — | @@ -60,6 +63,7 @@ |
61 | 64 | |
62 | 65 | %prep |
63 | 66 | %setup -q -n subversion-%{version} |
| 67 | +%patch1 -p0 |
64 | 68 | #%patch1 -p1 -b .patch01 |
65 | 69 | |
66 | 70 | %build |
— | — | @@ -83,7 +87,8 @@ |
84 | 88 | --infodir=%{_infodir} \ |
85 | 89 | --with-apr=/opt/ts \ |
86 | 90 | --with-apr-util=/opt/ts \ |
87 | | - --with-neon=%{_prefix} \ |
| 91 | + --with-serf=%{_prefix} \ |
| 92 | + --with-neon=no \ |
88 | 93 | --with-apxs=/opt/TSapache/bin/apxs |
89 | 94 | |
90 | 95 | gmake |
Index: trunk/tools/ts-specs/TSneon.spec |
— | — | @@ -10,7 +10,7 @@ |
11 | 11 | Group: system/dscm |
12 | 12 | # Be careful not to update this to a newer version without checking |
13 | 13 | # if subversion will like it. |
14 | | -Version: 0.26.2 |
| 14 | +Version: 0.28.3 |
15 | 15 | Release: 1 |
16 | 16 | Summary: neon http and webdav client library |
17 | 17 | Source: http://www.webdav.org/neon/neon-%{version}.tar.gz |
— | — | @@ -132,6 +132,8 @@ |
133 | 133 | %endif |
134 | 134 | |
135 | 135 | %changelog |
| 136 | +* Mon Feb 23 2009 - river@loreley.flyingparchment.org.uk |
| 137 | +- 2.83.3 |
136 | 138 | * Thu Jun 19 2008 - river@wikimedia.org |
137 | 139 | - modified for toolserver |
138 | 140 | * Mon Feb 25 2008 - laca@sun.com |
Index: trunk/tools/ts-specs/base-specs/serf.spec |
— | — | @@ -0,0 +1,46 @@ |
| 2 | +Name: TSserf |
| 3 | +Summary: Serf HTTP library |
| 4 | +Version: 0.3.0 |
| 5 | +Source: http://serf.googlecode.com/files/serf-%{version}.tar.bz2 |
| 6 | +Patch1: serf-01-cflags.diff |
| 7 | + |
| 8 | +%prep |
| 9 | +%setup -q -n serf-%{version} |
| 10 | +%patch1 -p0 |
| 11 | + |
| 12 | +%if %opt_arch64 |
| 13 | +%define _libsubdir %_arch64 |
| 14 | +%else |
| 15 | +%define _libsubdir "" |
| 16 | +%endif |
| 17 | + |
| 18 | +export CC=cc |
| 19 | +export CXX=CC |
| 20 | +export CFLAGS="%optflags" |
| 21 | +export CPPFLAGS=-I/usr/sfw/include |
| 22 | +export CXXFLAGS="%cxx_optflags" |
| 23 | +export LDFLAGS="%_ldflags -L%{_libdir}/%_libsubdir -L/usr/sfw/lib/%_libsubdir -R%{_libdir}/%_libsubdir:/usr/sfw/lib/%_libsubdir" |
| 24 | + |
| 25 | +./configure \ |
| 26 | + --prefix=%{_prefix} \ |
| 27 | + --libdir=%{_libdir} \ |
| 28 | + --bindir=%{_bindir} \ |
| 29 | + --with-apr=$APR_CONFIG \ |
| 30 | + --with-apr-util=$APR_UTIL_CONFIG \ |
| 31 | + --includedir=$INCDIR \ |
| 32 | + |
| 33 | +%build |
| 34 | +CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
| 35 | +if test "x$CPUS" = "x" -o $CPUS = 0; then |
| 36 | + CPUS=1 |
| 37 | +fi |
| 38 | + |
| 39 | +gmake -j$CPUS |
| 40 | + |
| 41 | +%install |
| 42 | +gmake install DESTDIR=$RPM_BUILD_ROOT |
| 43 | +rm $RPM_BUILD_ROOT%{_libdir}/*.a |
| 44 | +#rm $RPM_BUILD_ROOT%{_libdir}/*.la |
| 45 | + |
| 46 | +%clean |
| 47 | +rm -rf $RPM_BUILD_ROOT |
Index: trunk/tools/ts-specs/base-specs/apu.spec |
— | — | @@ -2,7 +2,6 @@ |
3 | 3 | Summary: Apache Portable Runtime utility functions |
4 | 4 | Version: 1.3.4 |
5 | 5 | Source: http://mirrors.dedipower.com/ftp.apache.org/apr/apr-util-%{version}.tar.gz |
6 | | -Source1: http://mirrors.dedipower.com/ftp.apache.org/apr/apr-iconv-1.2.1.tar.gz |
7 | 6 | |
8 | 7 | %prep |
9 | 8 | %setup -q -n apr-util-%{version} |
— | — | @@ -22,9 +21,10 @@ |
23 | 22 | --bindir=%{_bindir} \ |
24 | 23 | --with-apr=$APR_CONFIG \ |
25 | 24 | --includedir=$INCDIR \ |
26 | | - --with-ldap=ldap \ |
27 | | - --with-iconv=/opt/ts |
| 25 | + --with-ldap=ldap |
28 | 26 | |
| 27 | + #--with-iconv=/opt/ts |
| 28 | + |
29 | 29 | %build |
30 | 30 | CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
31 | 31 | if test "x$CPUS" = "x" -o $CPUS = 0; then |
Index: trunk/tools/ts-specs/patches/serf-01-cflags.diff |
— | — | @@ -0,0 +1,31 @@ |
| 2 | +--- Makefile.in.old Mon Feb 23 23:31:11 2009 |
| 3 | +@@ -84,22 +84,22 @@ |
| 4 | + test/test_ssl.lo: test/test_ssl.c $(HEADERS) |
| 5 | + |
| 6 | + $(TARGET_LIB): $(OBJECTS) |
| 7 | +- $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) $(LDFLAGS) -rpath $(libdir) -o $@ $^ $(LIBS) |
| 8 | ++ $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -rpath $(libdir) -o $@ $^ $(LIBS) |
| 9 | + |
| 10 | + test/serf_get: $(TARGET_LIB) test/serf_get.lo |
| 11 | +- $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) $(LDFLAGS) -static -o $@ $^ $(LIBS) |
| 12 | ++ $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -static -o $@ $^ $(LIBS) |
| 13 | + |
| 14 | + test/serf_response: $(TARGET_LIB) test/serf_response.lo |
| 15 | +- $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) $(LDFLAGS) -static -o $@ $^ $(LIBS) |
| 16 | ++ $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -static -o $@ $^ $(LIBS) |
| 17 | + |
| 18 | + test/serf_request: $(TARGET_LIB) test/serf_request.lo |
| 19 | +- $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) $(LDFLAGS) -static -o $@ $^ $(LIBS) |
| 20 | ++ $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -static -o $@ $^ $(LIBS) |
| 21 | + |
| 22 | + test/serf_spider: $(TARGET_LIB) test/serf_spider.lo |
| 23 | +- $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) $(LDFLAGS) -static -o $@ $^ $(LIBS) |
| 24 | ++ $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -static -o $@ $^ $(LIBS) |
| 25 | + |
| 26 | + test/test_all: $(TARGET_LIB) $(TEST_SUITE_OBJECTS) |
| 27 | +- $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) $(LDFLAGS) -static -o $@ $^ $(LIBS) |
| 28 | ++ $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -static -o $@ $^ $(LIBS) |
| 29 | + |
| 30 | + check: test/serf_response test/test_all |
| 31 | + @for i in $(TESTCASES); \ |
Index: trunk/tools/ts-specs/patches/subversion-01-iconv.diff |
— | — | @@ -0,0 +1,11 @@ |
| 2 | +--- subversion/include/svn_utf.h.old Mon Feb 23 22:24:11 2009 |
| 3 | +@@ -35,7 +35,7 @@ |
| 4 | + |
| 5 | + |
| 6 | + #ifndef AS400 |
| 7 | +-#define SVN_APR_LOCALE_CHARSET APR_LOCALE_CHARSET |
| 8 | ++#define SVN_APR_LOCALE_CHARSET "" |
| 9 | + #define SVN_APR_DEFAULT_CHARSET APR_DEFAULT_CHARSET |
| 10 | + #else |
| 11 | + /* APR_LOCALE_CHARSET and APR_DEFAULT_CHARSET are defined as ints on |
Index: trunk/tools/ts-specs/TSserf.spec |
— | — | @@ -0,0 +1,94 @@ |
| 2 | +%include Solaris.inc |
| 3 | + |
| 4 | +%ifarch amd64 sparcv9 |
| 5 | +%include arch64.inc |
| 6 | +%use serf_64 = serf.spec |
| 7 | +%endif |
| 8 | + |
| 9 | +%include base.inc |
| 10 | +%use serf = serf.spec |
| 11 | + |
| 12 | +SUNW_BaseDir: %{_basedir} |
| 13 | + |
| 14 | +Name: %{serf.name} |
| 15 | +Summary: %{serf.summary} |
| 16 | +Version: %{serf.version} |
| 17 | +License: Apache |
| 18 | +BuildRoot: %{_tmppath}/serf-%{version}-build |
| 19 | +%include default-depend.inc |
| 20 | + |
| 21 | +%package devel |
| 22 | +Summary: %{summary} - development files |
| 23 | +SUNW_BaseDir: %{_basedir} |
| 24 | +%include default-depend.inc |
| 25 | +Requires: %name |
| 26 | + |
| 27 | +%prep |
| 28 | +rm -rf %name-%version |
| 29 | +mkdir %name-%version |
| 30 | + |
| 31 | +%ifarch amd64 sparcv9 |
| 32 | +export APR_CONFIG=%{_prefix}/bin/%_arch64/apr-1-config |
| 33 | +export APR_UTIL_CONFIG=%{_prefix}/bin/%_arch64/apu-1-config |
| 34 | +export INCDIR=%{_includedir}/%_arch64 |
| 35 | +mkdir %name-%version/%_arch64 |
| 36 | +%serf_64.prep -d %name-%version/%_arch64 |
| 37 | +%endif |
| 38 | + |
| 39 | +mkdir %name-%version/%base_arch |
| 40 | +export APR_CONFIG=%{_prefix}/bin/apr-1-config |
| 41 | +export APR_UTIL_CONFIG=%{_prefix}/bin/apu-1-config |
| 42 | +export INCDIR=%{_includedir}/%base_arch |
| 43 | +%serf.prep -d %name-%version/%base_arch |
| 44 | + |
| 45 | +%build |
| 46 | +%ifarch amd64 sparcv9 |
| 47 | +export APR_CONFIG=%{_prefix}/bin/%_arch64/apr-1-config |
| 48 | +export APR_UTIL_CONFIG=%{_prefix}/bin/%_arch64/apu-1-config |
| 49 | +export INCDIR=%{_includedir}/%_arch64 |
| 50 | +%serf_64.build -d %name-%version/%_arch64 |
| 51 | +%endif |
| 52 | + |
| 53 | +export APR_CONFIG=%{_prefix}/bin/apr-1-config |
| 54 | +export APR_UTIL_CONFIG=%{_prefix}/bin/apu-1-config |
| 55 | +export INCDIR=%{_includedir}/%base_arch |
| 56 | +%serf.build -d %name-%version/%base_arch |
| 57 | + |
| 58 | +%install |
| 59 | +rm -rf $RPM_BUILD_ROOT |
| 60 | + |
| 61 | +%ifarch amd64 sparcv9 |
| 62 | +%serf_64.install -d %name-%version/%_arch64 |
| 63 | +%endif |
| 64 | + |
| 65 | +%serf.install -d %name-%version/%base_arch |
| 66 | + |
| 67 | +%clean |
| 68 | +rm -rf $RPM_BUILD_ROOT |
| 69 | + |
| 70 | +%files |
| 71 | +%defattr(-,root,bin) |
| 72 | +%dir %attr (0755, root, bin) %{_libdir} |
| 73 | +%{_libdir}/*.so.* |
| 74 | +%ifarch amd64 sparcv9 |
| 75 | +%dir %attr (0755, root, bin) %{_libdir}/%_arch64 |
| 76 | +%{_libdir}/%_arch64/*.so.* |
| 77 | +%endif |
| 78 | + |
| 79 | +%files devel |
| 80 | +%defattr(-,root,bin) |
| 81 | + |
| 82 | +%dir %attr (0755, root, bin) %{_includedir} |
| 83 | +%{_includedir}/* |
| 84 | +%dir %attr (0755, root, bin) %{_libdir} |
| 85 | +%{_libdir}/*.so |
| 86 | +%{_libdir}/*.la |
| 87 | +%ifarch amd64 sparcv9 |
| 88 | +%dir %attr (0755, root, bin) %{_libdir}/%{_arch64} |
| 89 | +%{_libdir}/%{_arch64}/*.so |
| 90 | +%{_libdir}/%{_arch64}/*.la |
| 91 | +%endif |
| 92 | + |
| 93 | +%changelog |
| 94 | +* Mon Feb 23 2009 - river@loreley.flyingparchment.org.uk |
| 95 | +- initial spec |