[packages/ptex] - up to 2.1.28
baggins
baggins at pld-linux.org
Sun Feb 26 14:28:12 CET 2017
commit b551737d9ae45429bd22cc2d6ff2fefcd302e792
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Feb 26 14:28:00 2017 +0100
- up to 2.1.28
ptex.spec | 38 ++++++++++++++++----------------------
1 file changed, 16 insertions(+), 22 deletions(-)
---
diff --git a/ptex.spec b/ptex.spec
index 02c40e4..7ee913c 100644
--- a/ptex.spec
+++ b/ptex.spec
@@ -5,15 +5,16 @@
Summary: Ptex - texture mapping system by Walt Disney Animation Studios
Summary(pl.UTF-8): Ptex - system odwzorowywania tekstur z Walt Disney Animation Studios
Name: ptex
-Version: 2.0.42
-Release: 3
+Version: 2.1.28
+Release: 1
License: BSD
Group: Libraries
# (not precisely: see github for releases, then fetch appropriate tarball)
#Source0Download: https://github.com/wdas/ptex
-Source0: https://github.com/wdas/ptex/tarball/v%{version}?/%{name}-%{version}.tar.gz
-# Source0-md5: 80181532ab9ef9dcc729344f45415c8b
+Source0: https://github.com/wdas/ptex/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: ce4eb665f686f8391968fa137113bc69
URL: http://ptex.us/
+BuildRequires: cmake
%{?with_apidocs:BuildRequires: doxygen}
BuildRequires: libstdc++-devel
BuildRequires: zlib-devel
@@ -82,34 +83,27 @@ API and internal documentation for Ptex library.
Dokumentacja API biblioteki Ptex.
%prep
-%setup -q -n wdas-%{name}-7e2cb22
+%setup -q
%build
-%{__make} -j1 -C src/ptex \
- CXX="%{__cxx}" \
- DEBUG="%{rpmcxxflags} %{rpmcppflags} -fPIC -DNDEBUG"
+mkdir build
+cd build
+%{cmake} ../ \
+ -DCMAKE_CXX_FLAGS_RELEASE="%{rpmcxxflags}"
-%{__make} -j1 -C src/utils \
- CXX="%{__cxx}" \
- DEBUG="%{rpmcxxflags} %{rpmcppflags} -DNDEBUG"
+%{__make}
%if %{with apidocs}
-# make doc generates source docs, not just API; invoke doxygen manually
-#%{__make} -C src/doc
-cd src/doc
-install -d ../../install/apidocs/ptex
-doxygen Doxyfile_API_only
+%{__make} doxygen
%endif
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} -C src/ptex install \
- INSTALLDIR=$RPM_BUILD_ROOT%{_prefix} \
- LIBDIR=%{_lib}
+%{__make} -C build install \
+ DESTDIR=$RPM_BUILD_ROOT
-%{__make} -C src/utils install \
- INSTALLDIR=$RPM_BUILD_ROOT%{_prefix}
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}
%clean
rm -rf $RPM_BUILD_ROOT
@@ -134,5 +128,5 @@ rm -rf $RPM_BUILD_ROOT
%if %{with apidocs}
%files apidocs
%defattr(644,root,root,755)
-%doc apidocs/*.{css,html,js,png}
+%doc src/doc/ptex/*.{css,html,js,png}
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ptex.git/commitdiff/b551737d9ae45429bd22cc2d6ff2fefcd302e792
More information about the pld-cvs-commit
mailing list