nfoview/nfoview.spec

60 lines
1.6 KiB
RPMSpec
Raw Normal View History

%define majver %(echo %version | cut -d. -f1-2)
Name: nfoview
Version: 1.9.5
Release: 1mamba
Summary: Viewer for NFO files
Group: Applications/Text
Vendor: openmamba
Distribution: openmamba
Packager: Stefano Cotta Ramusino <stefano.cotta@openmamba.org>
URL: http://home.gna.org/nfoview/
Source: http://download.gna.org/nfoview/%{majver}/nfoview-%{version}.tar.gz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython-devel
BuildRequires: python
## AUTOBUILDREQ-END
Requires: python >= %python_version
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildArch: noarch
%description
Viewer for NFO files.
%prep
%setup -q
%build
%{__python} setup.py build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \
-O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{_includedir}/python \
--install-lib=%{python_sitearch} \
--record=%{name}.filelist
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -f %{name}.filelist
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS ChangeLog README TODO
%changelog
* Sun Jun 19 2011 Automatic Build System <autodist@mambasoft.it> 1.9.5-1mamba
- automatic update by autodist
* Mon Apr 04 2011 Automatic Build System <autodist@mambasoft.it> 1.9.3-1mamba
- automatic update by autodist
* Tue Jan 25 2011 Automatic Build System <autodist@mambasoft.it> 1.9.2-1mamba
- update to 1.9.2
* Tue Apr 27 2010 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 1.9-1mamba
- package created by autospec