-
+Summary: A Fortran-callable Postscript plotting library
+Summary(pl.UTF-8): Działająca z Fortranem biblioteka rysująca w Postscripcie
Name: psplot
Version: 0.1
Release: 1
-URL: http://www.nova.edu/ocean/psplot.html
-Source0: ftp://student.ifpan.edu.pl/%{name}/%{name}-%{version}.tar.gz
-Source1: %{name}-Makefile
-Summary: A Fortran-callable Postscript plotting library
License: Freeware
Group: Libraries
-Group(de): Libraries
-Group(es): Bibliotecas
-Group(fr): Librairies
-Group(pl): Biblioteki
-Group(pt_BR): Bibliotecas
-Group(ru): âÉÂÌÉÏÔÅËÉ
-Group(uk): â¦Â̦ÏÔÅËÉ
-Buildrequires: gcc-g77
+Source0: ftp://student.ifpan.edu.pl/pub/psplot/%{name}-%{version}.tar.gz
+# Source0-md5: 3704836929eae06c9419b339d6e4c5c4
+Source1: %{name}-Makefile
+URL: http://www.nova.edu/ocean/psplot.html
+BuildRequires: gcc-g77
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
'artistic' features of Postscript have not beed addressed. This
package is a shared library.
+%description -l pl.UTF-8
+Biblioteka psplot zawiera wywoływalne z Fortrana procedury do
+produkcji plików postscriptowych. Ponieważ głównym zadaniem biblioteki
+są rysunki techniczne, wiele "artystycznych" możliwości Postscriptu
+nie jest wykorzystywanych. Ten pakiet zawiera bibliotekę
+współdzieloną.
+
%package devel
Summary: A Fortran-callable Postscript plotting library - header files
+Summary(pl.UTF-8): Pliki nagłówkowe do działającej z Fortranem biblioteki rysującej Postscript
Group: Development/Libraries
-Group(de): Entwicklung/Libraries
-Group(es): Desarrollo/Bibliotecas
-Group(fr): Development/Librairies
-Group(pl): Programowanie/Biblioteki
-Group(pt_BR): Desenvolvimento/Bibliotecas
-Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
-Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}-%{release}
%description devel
Header files for the psplot library.
-%package static
-Summary: A Fortran-callable Postscript plotting library - static version
-Group: Development/Libraries
-Group(de): Entwicklung/Libraries
-Group(es): Desarrollo/Bibliotecas
-Group(fr): Development/Librairies
-Group(pl): Programowanie/Biblioteki
-Group(pt_BR): Desenvolvimento/Bibliotecas
-Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
-Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
-Requires: %{name}-devel = %{version}
-
-%description static
-Static psplot libraries.
+%description devel -l pl.UTF-8
+Pliki nagłówkowe do biblioteki psplot.
%prep
%setup -q -n %{name}
%build
-cp %{SOURCE1} Makefile
+cp -f %{SOURCE1} Makefile
%{__make} "CFLAGS=%{rpmcflags}"
-mv libpsplot.so libpsplot.so.%{version}
-ln -s libpsplot.so.%{version} libpsplot.so
+
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_libdir}
-install libpsplot.so.%{version} $RPM_BUILD_ROOT%{_libdir}/lib%{name}.so.%{version}
-cp -a libpsplot.so $RPM_BUILD_ROOT%{_libdir}/lib%{name}.so
+install libpsplot.so $RPM_BUILD_ROOT%{_libdir}
install libpsplot.a $RPM_BUILD_ROOT%{_libdir}
-gzip -9nf grmana4.ps *.txt *.for
-
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
-
%clean
-#rm -rf $RPM_BUILD_ROOT
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/lib%{name}.so.*.*
-%files devel
-%defattr(644,root,root,755)
-%doc *.gz
-%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/lib%{name}.so
-%files static
+
+%files devel
%defattr(644,root,root,755)
+%doc grmana4.ps *.txt *.for
%{_libdir}/lib%{name}.a