|
@@ -1,24 +1,30 @@
|
|
|
-Summary: An OpenGL to PostScript printing library
|
|
|
-Summary(ja): OpenGL から PostScript を出力するライブラリ
|
|
|
-Summary(pl): Biblioteka drukowania z OpenGL-a do PostScriptu
|
|
|
-Name: gl2ps
|
|
|
-Version: 1.3.9
|
|
|
-Release: 3%{?_dist_release}
|
|
|
-License: LGPLv2+ or GL2PS
|
|
|
-Group: System Environment/Libraries
|
|
|
-URL: http://www.geuz.org/gl2ps/
|
|
|
-
|
|
|
-Source0: http://www.geuz.org/gl2ps/src/%{name}-%{version}.tgz
|
|
|
+%define pkg_name gl2ps
|
|
|
+%define pkg_version 1.4.0
|
|
|
+%define pkg_release 1%{?_dist_release}
|
|
|
+
|
|
|
+Summary: An OpenGL to PostScript printing library
|
|
|
+Summary(ja): OpenGL から PostScript を出力するライブラリ
|
|
|
+Summary(pl): Biblioteka drukowania z OpenGL-a do PostScriptu
|
|
|
+Name: %{pkg_name}
|
|
|
+Version: %{pkg_version}
|
|
|
+Release: %{pkg_release}
|
|
|
+
|
|
|
+License: LGPLv2+ or GL2PS
|
|
|
+Group: System Environment/Libraries
|
|
|
+URL: http://www.geuz.org/gl2ps/
|
|
|
+
|
|
|
+Source0: http://www.geuz.org/gl2ps/src/%{name}-%{version}.tgz
|
|
|
|
|
|
# # Vine Patch
|
|
|
# Patch700: gl2ps-1.3.8-nostatic.patch
|
|
|
|
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
-BuildRequires: cmake >= 2.4
|
|
|
-BuildRequires: mesa-libGL-devel
|
|
|
-BuildRequires: libpng-devel
|
|
|
-BuildRequires: texlive
|
|
|
-BuildRequires: zlib-devel
|
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
+
|
|
|
+BuildRequires: cmake >= 2.4
|
|
|
+BuildRequires: mesa-libGL-devel
|
|
|
+BuildRequires: libpng-devel
|
|
|
+BuildRequires: zlib-devel
|
|
|
+
|
|
|
|
|
|
%description
|
|
|
GL2PS is a C library providing high quality vector output for any
|
|
@@ -66,11 +72,11 @@ wektorowych, takich jak xfig, cgm, wmf itp.
|
|
|
|
|
|
%package devel
|
|
|
Summary: Header files for GL2PS library
|
|
|
-Summary(ja): GL2PS ライブラリのヘッダファイル
|
|
|
-Summary(pl): Pliki nagłówkowe biblioteki GL2PS
|
|
|
-Group: Development/Libraries
|
|
|
-Requires: %{name} = %{version}-%{release}
|
|
|
-Requires: mesa-libGL-devel
|
|
|
+Summary(ja): GL2PS ライブラリのヘッダファイル
|
|
|
+Summary(pl): Pliki nagłówkowe biblioteki GL2PS
|
|
|
+Group: Development/Libraries
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
+Requires: mesa-libGL-devel
|
|
|
|
|
|
%description devel
|
|
|
Header files for GL2PS library.
|
|
@@ -81,30 +87,32 @@ GL2PSのヘッダーファイル
|
|
|
%description devel -l pl
|
|
|
Pliki nagłówkowe biblioteki GL2PS.
|
|
|
|
|
|
+
|
|
|
%prep
|
|
|
%setup -q -n %{name}-%{version}-source
|
|
|
# %patch700 -p1 -b .nostatic
|
|
|
|
|
|
%build
|
|
|
%cmake .
|
|
|
-make %{?_smp_mflags}
|
|
|
+%{__make} %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
|
-rm -rf %{buildroot}
|
|
|
-make DESTDIR=%{buildroot} install
|
|
|
+%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
|
+%{make_install}
|
|
|
|
|
|
-rm %{buildroot}%{_libdir}/libgl2ps.a
|
|
|
-rm -r %{buildroot}%{_docdir}/gl2ps
|
|
|
+%{__rm} ${RPM_BUILD_ROOT}%{_libdir}/libgl2ps.a
|
|
|
+%{__rm} -rf ${RPM_BUILD_ROOT}%{_docdir}/gl2ps
|
|
|
|
|
|
%clean
|
|
|
-rm -rf %{buildroot}
|
|
|
+%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
|
+
|
|
|
+%post -p %{_syssbindir}/ldconfig
|
|
|
+%postun -p %{_syssbindir}/ldconfig
|
|
|
|
|
|
-%post -p /sbin/ldconfig
|
|
|
-%postun -p /sbin/ldconfig
|
|
|
|
|
|
%files
|
|
|
%defattr(644,root,root,755)
|
|
|
-%doc COPYING.GL2PS COPYING.LGPL README.txt
|
|
|
+%doc COPYING.GL2PS COPYING.LGPL README.txt gl2psTest*.c
|
|
|
%attr(755,root,root) %{_libdir}/libgl2ps.so.*
|
|
|
|
|
|
%files devel
|
|
@@ -113,7 +121,12 @@ rm -rf %{buildroot}
|
|
|
%{_libdir}/libgl2ps.so
|
|
|
%{_includedir}/gl2ps.h
|
|
|
|
|
|
+
|
|
|
%changelog
|
|
|
+* Sat Jul 07 2018 Toshiaki Ara <ara_t@384.jp> 1.4.0-1
|
|
|
+- update to 1.4.0
|
|
|
+- delete BuildRequires: texlive
|
|
|
+
|
|
|
* Mon Apr 11 2016 Toshiaki Ara <ara_t@384.jp> 1.3.9-3
|
|
|
- merge with previous SPEC file
|
|
|
|