Browse Source

povlay: update to 3.7.0.7

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@11396 ec354946-7b23-47d6-9f5a-488ba84defc7
ara_t 6 years ago
parent
commit
a4e6e0bce4
1 changed files with 52 additions and 49 deletions
  1. 52 49
      p/povray/povray-vl.spec

+ 52 - 49
p/povray/povray-vl.spec

@@ -1,17 +1,33 @@
-%define pkgversion 3.6
-
-Summary: A widely used ray tracing package.
-Name: povray
-Version: %{pkgversion}.1
-Release: 1%{?_dist_release}
-License: Other
-Group: Applications/Multimedia
-URL: http://www.povray.org
-Source: http://www.povray.org/redirect/www.povray.org/ftp/pub/povray/Official/Unix/povray-%{pkgversion}.tar.bz2
-#ExclusiveArch: %{ix86} ppc sparc ia64
-ExclusiveArch: %{ix86} ppc x86_64
+%define pkg_name    povray
+%define short_version 3.7
+%define pkg_version   3.7.0.7
+%define pkg_release 2%{?_dist_release}
+
+Summary: A widely used ray tracing package
+Summary(ja): 広く使用されているレイトレーシングソフトウェア
+Name:    %{pkg_name}
+Version: %{pkg_version}
+Release: %{pkg_release}
+
+License: AGPLv3+
+Group:   Applications/Multimedia
+URL:     http://www.povray.org/
+
+Source0: %{name}-%{version}.tar.gz
+
 Buildroot: %{_tmppath}/%{name}-%{version}-root
 
+BuildRequires: libjpeg-turbo-devel libpng-devel libtiff-devel
+BuildRequires: zlib-devel
+BuildRequires: libboost-devel
+BuildRequires: libboost-date-time
+BuildRequires: libboost-thread
+BuildRequires: OpenEXR-devel
+
+Vendor: Project Vine
+Distribution: Vine Linux
+
+
 %description
 A widely used ray tracing package, Persistence of Vision's Ray Tracer
 (POV-ray) is based on David Buck's original ray tracer, DKB-Trace.
@@ -26,41 +42,49 @@ illumination. Then you input the information to the raytracer program
 and wait (and wait and wait...raytracing isn't speedy) for its
 output (the image).
 
+
 %prep
-%setup
+%setup -q
 
 %build
-%configure --with-x COMPILED_BY="Vine Caves, Ltd. <info@vinecaves.com>"
-pushd libraries/tiff
-./configure.gnu
+pushd unix/
+./prebuild.sh
 popd
+
+%configure COMPILED_BY="Project Vine" CXXFLAGS="-std=c++11"
 %{__make} %{?_smp_mflags}
 
 %install
-%{__rm} -rf %{buildroot}
-%{__make} install DESTDIR=%{buildroot}
+%{__rm} -rf ${RPM_BUILD_ROOT}
+%{__make} install DESTDIR=${RPM_BUILD_ROOT}
+%{__rm} -rf ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{short_version}
 
-%{__rm} -rf %{buildroot}%{_docdir}/%{name}-%{pkgversion}
+%post -p %{_syssbindir}/ldconfig
 
-%post
-/sbin/ldconfig 2>/dev/null
-
-%postun
-/sbin/ldconfig 2>/dev/null
+%postun -p %{_syssbindir}/ldconfig
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+%{__rm} -rf ${RPM_BUILD_ROOT}
+
 
 %files
 %defattr(-,root,root)
-%doc AUTHORS ChangeLog COPYING INSTALL README
+%doc LICENSE README.md unix/AUTHORS unix/COPYING unix/ChangeLog unix/NEWS
 %doc doc/*
 %{_bindir}/*
 %{_mandir}/man?/*
-%{_datadir}/%{name}-%{pkgversion}
-%config(noreplace) %{_sysconfdir}/%{name}/%{pkgversion}/povray.*
+%{_datadir}/%{name}-%{short_version}
+%config(noreplace) %{_sysconfdir}/%{name}/%{short_version}/povray.*
+
 
 %changelog
+* Tue Jan 16 2018 Toshiaki Ara <ara_t@384.jp> 3.7.0.7-2
+- correct SPEC file name
+
+* Tue Jan 16 2018 Toshiaki Ara <ara_t@384.jp> 3.7.0.7-1
+- update to 3.7.0.7
+- delete old ChangeLog
+
 * Fri Oct 10 2008 Shu KONNO <owa@bg.wakwak.com> 3.6.1-1vl5
 - applied new versioning policy
 
@@ -83,24 +107,3 @@ rm -rf $RPM_BUILD_ROOT
 - 3.1g-1vl1
 - added a small patch for non-ix86 archtectures
 
-* Tue May 11 1999 Matt Wilson <msw@redhat.com>
-- fixed POVLIBDIR to point at /usr/lib/povray31
-
-* Wed Apr 28 1999 Jeff Johnson <jbj@redhat.com>
-- update to 3.1e.
-
-* Fri Oct 08 1998 Michael Maher <mike@redhat.com> 
-- fixed spec file, built for 5.2 powertools.
-
-* Thu May 21 1998 Michael Maher <mike@redhat.com>
-- checked spec file and source, rebuilt package.
-
-* Wed Dec  3 1997 Otto Hammersmith <otto@redhat.com>
-- fixed symlink problem
-
-* Tue Nov 18 1997 Otto Hammersmith <otto@redhat.com>
-- moved buildroot to /var/tmp
-
-* Wed Apr 30 1997 Michael Fulbright <msf@redhat.com>
-- Updated to version 3.01 and changed to use a Buildroot
-