packages: gl2ps/gl2ps.spec - switched build to cmake
gotar
gotar at pld-linux.org
Sat May 29 17:13:22 CEST 2010
Author: gotar Date: Sat May 29 15:13:22 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- switched build to cmake
---- Files affected:
packages/gl2ps:
gl2ps.spec (1.6 -> 1.7)
---- Diffs:
================================================================
Index: packages/gl2ps/gl2ps.spec
diff -u packages/gl2ps/gl2ps.spec:1.6 packages/gl2ps/gl2ps.spec:1.7
--- packages/gl2ps/gl2ps.spec:1.6 Sat May 29 17:08:50 2010
+++ packages/gl2ps/gl2ps.spec Sat May 29 17:13:17 2010
@@ -10,7 +10,7 @@
# Source0-md5: 22e51ff57ecd35cb1cc22497a178a017
URL: http://www.geuz.org/gl2ps/
BuildRequires: OpenGL-devel
-BuildRequires: libtool
+BuildRequires: cmake
BuildRequires: libpng-devel
BuildRequires: zlib-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -78,15 +78,21 @@
%setup -q -n %{name}-%{version}-source
%build
-libtool --mode=compile --tag=CC %{__cc} %{rpmcflags} -c -o gl2ps.lo gl2ps.c
-libtool --mode=link --tag=CC %{__cc} %{rpmldflags} -o libgl2ps.la gl2ps.lo -rpath %{_libdir} -lGL -lm
+export CFLAGS="%{rpmcflags}"
+export CXXFLAGS="%{rpmcflags}"
+%{__cmake} . \
+ -DCMAKE_INSTALL_PREFIX="%{_prefix}"
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}}
-libtool --mode=install install libgl2ps.la $RPM_BUILD_ROOT%{_libdir}
-install gl2ps.h $RPM_BUILD_ROOT%{_includedir}
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+mv $RPM_BUILD_ROOT%{_libdir}/libgl2ps.so{,.0.0.0}
+ln -s libgl2ps.so.0.0.0 $RPM_BUILD_ROOT%{_libdir}/libgl2ps.so
%clean
rm -rf $RPM_BUILD_ROOT
@@ -103,7 +109,6 @@
%defattr(644,root,root,755)
%doc gl2ps.pdf
%attr(755,root,root) %{_libdir}/libgl2ps.so
-%{_libdir}/libgl2ps.la
%{_includedir}/gl2ps.h
%files static
@@ -116,6 +121,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.7 2010/05/29 15:13:17 gotar
+- switched build to cmake
+
Revision 1.6 2010/05/29 15:08:50 gotar
- upgraded to 1.3.5
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gl2ps/gl2ps.spec?r1=1.6&r2=1.7&f=u
More information about the pld-cvs-commit
mailing list