]> git.pld-linux.org Git - packages/gl2ps.git/commitdiff
- updated to 1.3.6 auto/th/gl2ps-1_3_6-1
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 18 Aug 2011 16:03:08 +0000 (16:03 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added link patch

Changed files:
    gl2ps-link.patch -> 1.1
    gl2ps.spec -> 1.11

gl2ps-link.patch [new file with mode: 0644]
gl2ps.spec

diff --git a/gl2ps-link.patch b/gl2ps-link.patch
new file mode 100644 (file)
index 0000000..a4b8c36
--- /dev/null
@@ -0,0 +1,32 @@
+--- gl2ps-1.3.6-source/CMakeLists.txt.orig     2011-08-14 19:15:31.000000000 +0200
++++ gl2ps-1.3.6-source/CMakeLists.txt  2011-08-18 17:20:11.409530657 +0200
+@@ -107,7 +107,7 @@
+   set_target_properties(lib PROPERTIES OUTPUT_NAME gl2ps)
+   add_library(shared SHARED gl2ps.c gl2ps.h)
+-  target_link_libraries(shared ${EXTERNAL_LIBRARIES})
++  target_link_libraries(shared ${EXTERNAL_LIBRARIES} m)
+   set_target_properties(shared PROPERTIES OUTPUT_NAME gl2ps)
+   set_target_properties(shared PROPERTIES
+                         VERSION ${GL2PS_MAJOR_VERSION}.${GL2PS_MINOR_VERSION}.${GL2PS_PATCH_VERSION}
+@@ -116,7 +116,7 @@
+     set_target_properties(shared PROPERTIES COMPILE_FLAGS "-DGL2PSDLL -DGL2PSDLL_EXPORTS")
+   endif(MSVC)
+-  install(TARGETS lib shared DESTINATION lib)
++  install(TARGETS lib shared DESTINATION lib${LIB_SUFFIX})
+ endif(OPENGL_FOUND)
+ if(WIN32)
+@@ -134,9 +134,9 @@
+ if(GLUT_FOUND)
+   add_executable(gl2psTest WIN32 gl2psTest.c)
+-  target_link_libraries(gl2psTest lib ${EXTERNAL_LIBRARIES})
++  target_link_libraries(gl2psTest shared ${EXTERNAL_LIBRARIES})
+   add_executable(gl2psTestSimple WIN32 gl2psTestSimple.c)
+-  target_link_libraries(gl2psTestSimple lib ${EXTERNAL_LIBRARIES})
++  target_link_libraries(gl2psTestSimple shared ${EXTERNAL_LIBRARIES})
+ endif(GLUT_FOUND)
+ find_package(LATEX)
index 47fed606f1a108e48b8db42d12c54c1699fcf72f..324e807eb778c52f187334638d8d9d2253754de0 100644 (file)
@@ -1,16 +1,18 @@
 Summary:       GL2PS - an OpenGL to PostScript printing library
 Summary(pl.UTF-8):     GL2PS - biblioteka drukowania z OpenGL-a do PostScriptu
 Name:          gl2ps
-Version:       1.3.5
-Release:       4
+Version:       1.3.6
+Release:       1
 License:       LGPL v2+ or GP2PS License v2+ (see COPYING.GL2PS)
 Group:         Libraries
 Source0:       http://www.geuz.org/gl2ps/src/%{name}-%{version}.tgz
-# Source0-md5: 22e51ff57ecd35cb1cc22497a178a017
+# Source0-md5: 41eb8f4a143ef83de2fd8cd3423acf7a
+Patch0:                %{name}-link.patch
 URL:           http://www.geuz.org/gl2ps/
 BuildRequires: OpenGL-devel
-BuildRequires: cmake
+BuildRequires: cmake >= 2.4
 BuildRequires: libpng-devel
+BuildRequires: rpmbuild(macros) >= 1.603
 BuildRequires: zlib-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -75,12 +77,11 @@ Statyczna biblioteka GL2PS.
 
 %prep
 %setup -q -n %{name}-%{version}-source
+%patch0 -p1
 
 %build
-export CFLAGS="%{rpmcflags}"
-export CXXFLAGS="%{rpmcflags}"
-%{__cmake} . \
-       -DCMAKE_INSTALL_PREFIX="%{_prefix}"
+%cmake .
+
 %{__make}
 
 %install
@@ -90,10 +91,6 @@ install -d $RPM_BUILD_ROOT%{_libdir}
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-mv $RPM_BUILD_ROOT{%{_prefix}/lib/libgl2ps.so,%{_libdir}/libgl2ps.so.0.0.0}
-ln -s libgl2ps.so.0.0.0 $RPM_BUILD_ROOT%{_libdir}/libgl2ps.so
-[ -f $RPM_BUILD_ROOT%{_libdir}/libgl2ps.a ] || mv $RPM_BUILD_ROOT{%{_prefix}/lib,%{_libdir}}/libgl2ps.a
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -104,6 +101,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc COPYING.GL2PS README.txt TODO.txt
 %attr(755,root,root) %{_libdir}/libgl2ps.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libgl2ps.so.1
 
 %files devel
 %defattr(644,root,root,755)
This page took 0.058854 seconds and 4 git commands to generate.