SPECS: libprojectM.spec - up to 1.0 - patch for build static libra...
arvenil
arvenil at pld-linux.org
Thu Oct 11 22:29:56 CEST 2007
Author: arvenil Date: Thu Oct 11 20:29:56 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- up to 1.0
- patch for build static library
- builds but not tested if it works
---- Files affected:
SPECS:
libprojectM.spec (1.2 -> 1.3)
---- Diffs:
================================================================
Index: SPECS/libprojectM.spec
diff -u SPECS/libprojectM.spec:1.2 SPECS/libprojectM.spec:1.3
--- SPECS/libprojectM.spec:1.2 Tue Oct 2 00:30:54 2007
+++ SPECS/libprojectM.spec Thu Oct 11 22:29:51 2007
@@ -1,19 +1,24 @@
# $Revision$, $Date$
# TODO:
# - pl summary
+# - test if it works
#
%define _name projectM
Summary: Awesome music visualizer
Summary(pl.UTF-8): ImponujÄ…cy wizualizator muzyki
-Name: lib%{_name}
-Version: 0.99
+Name: libprojectM
+Version: 1.0
Release: 0.1
License: LGPL
Group: Libraries
-Source0: http://dl.sourceforge.net/xmms-projectm/%{name}-%{version}.tar.bz2
-# Source0-md5: 20dc0aa2af96340c3209c9795cc3217d
+Source0: http://dl.sourceforge.net/sourceforge/projectm/%{name}-%{version}.tar.bz2
+# Source0-md5: 66d2405fcb03efd4c82a0ea1989b4cbc
+Patch0: %{name}-static.patch
URL: http://projectm.sourceforge.net/
+BuildRequires: cmake
+BuildRequires: glew-devel
BuildRequires: ftgl-devel >= 2.1.2-3
+BuildRequires: pkgconfig
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -46,11 +51,19 @@
Statyczna biblioteka projectM.
%prep
-%setup -q -n %{name}
+%setup -q
+%patch0 -p1
+#workaround for library path
+%{__sed} -i \
+ -e 's#DESTINATION lib#DESTINATION %{_libdir}#' \
+ -e 's#lib/pkgconfig#%{_lib}/pkgconfig#' \
+ CMakeLists.txt
%build
-%configure
-%{__make}
+%cmake \
+ -DCMAKE_INSTALL_PREFIX=%{_prefix} \
+ .
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
@@ -67,22 +80,17 @@
%files
%defattr(644,root,root,755)
%doc ChangeLog
-%attr(755,root,root) %{_libdir}/libprojectM.so.*.*.*
+%attr(755,root,root) %{_libdir}/libprojectM.so
%dir %{_datadir}/%{_name}
-%{_datadir}/%{_name}/config
-%{_datadir}/%{_name}/config.fastcomputers
-%{_datadir}/%{_name}/config.slowcomputers
+%{_datadir}/%{_name}/config.inp
%dir %{_datadir}/%{_name}/fonts
%{_datadir}/%{_name}/fonts/*.ttf
%dir %{_datadir}/%{_name}/presets
-%{_datadir}/%{_name}/presets/*.milk
-
+%{_datadir}/%{_name}/presets/*
%files devel
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libprojectM.so
-%{_libdir}/libprojectM.la
-%{_includedir}/%{_name}
+%{_includedir}/%{name}
%{_pkgconfigdir}/libprojectM.pc
%files static
@@ -95,6 +103,11 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.3 2007/10/11 20:29:51 arvenil
+- up to 1.0
+- patch for build static library
+- builds but not tested if it works
+
Revision 1.2 2007/10/01 22:30:54 arvenil
- new URL
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/libprojectM.spec?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list