]> git.pld-linux.org Git - packages/tslib.git/commitdiff
- open patch to fix building auto/aidath/tslib-1_0-1
authortommat <tommat@pld-linux.org>
Tue, 15 Sep 2009 08:53:21 +0000 (08:53 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- ghost soname symlink

Changed files:
    tslib-open.patch -> 1.1
    tslib.spec -> 1.4

tslib-open.patch [new file with mode: 0644]
tslib.spec

diff --git a/tslib-open.patch b/tslib-open.patch
new file mode 100644 (file)
index 0000000..be4325c
--- /dev/null
@@ -0,0 +1,15 @@
+diff -Nur tslib-1.0/tests/ts_calibrate.c tslib-1.0.orig/tests/ts_calibrate.c
+--- tslib-1.0.orig/tests/ts_calibrate.c        2006-08-24 23:02:55.000000000 +0200
++++ tslib-1.0/tests/ts_calibrate.c     2009-09-15 10:47:14.000000000 +0200
+@@ -224,9 +224,9 @@
+               for (i = 0; i < 7; i++) printf("%d ", cal.a [i]);
+               printf("\n");
+               if ((calfile = getenv("TSLIB_CALIBFILE")) != NULL) {
+-                      cal_fd = open (calfile, O_CREAT | O_RDWR);
++                      cal_fd = open (calfile, O_CREAT | O_RDWR, 0644);
+               } else {
+-                      cal_fd = open ("/etc/pointercal", O_CREAT | O_RDWR);
++                      cal_fd = open ("/etc/pointercal", O_CREAT | O_RDWR, 0644);
+               }
+               sprintf (cal_buffer,"%d %d %d %d %d %d %d",
+                        cal.a[1], cal.a[2], cal.a[0],
index 0ccaea7f935c95f364a0f913b747a2293a1859fc..7218290f8249683663655878f16d835f18fca0b2 100644 (file)
@@ -7,6 +7,7 @@ License:        LGPL
 Group:         Libraries
 Source0:       http://download.berlios.de/tslib/%{name}-%{version}.tar.bz2
 # Source0-md5: 92b2eb55b1e4ef7e2c0347069389390e
+Patch0:                %{name}-open.patch
 URL:           http://tslib.berlios.de/
 BuildRequires: autoconf >= 2.57
 BuildRequires: automake
@@ -62,6 +63,7 @@ Statyczna biblioteka tslib.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__libtoolize}
@@ -92,6 +94,7 @@ rm -rf $RPM_BUILD_ROOT
 %doc AUTHORS ChangeLog README
 %attr(755,root,root) %{_bindir}/ts_*
 %attr(755,root,root) %{_libdir}/libts-*.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libts-*.so.?
 %dir %{_libdir}/ts
 %attr(755,root,root) %{_libdir}/ts/*.so
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ts.conf
This page took 0.07137 seconds and 4 git commands to generate.